Skip to content

Commit

Permalink
dedupe useEffect dep
Browse files Browse the repository at this point in the history
  • Loading branch information
nileshgulia1 committed Jul 12, 2023
1 parent d7485fa commit 229b8af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MatomoAppExtra.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const MatomoAppExtra = ({ location, content }) => {
const action = pathname.split('/')[pathname.split('/').length - 1];
trackPageView({ href: pathname + query, documentTitle: action });
}
}, [href, pathname, title, baseUrl, query, location.search]);
}, [href, pathname, title, baseUrl, query]);

return <React.Fragment />;
};
Expand Down

0 comments on commit 229b8af

Please sign in to comment.