fix: posthog events trigger in staging (#3220)
* fix: posthog events trigger in staging * refactor: cleared comment lines for warnings, added dependancy values * refactor: removed unnecessary dependency
This commit is contained in:
parent
a86dafc11c
commit
fe9519314a
1 changed files with 2 additions and 3 deletions
|
|
@ -47,8 +47,7 @@ const PosthogWrapper: FC<IPosthogWrapper> = (props) => {
|
|||
capture_pageview: false, // Disable automatic pageview capture, as we capture manually
|
||||
});
|
||||
}
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, []);
|
||||
}, [posthogAPIKey, posthogHost]);
|
||||
|
||||
useEffect(() => {
|
||||
// Track page views
|
||||
|
|
@ -60,7 +59,7 @@ const PosthogWrapper: FC<IPosthogWrapper> = (props) => {
|
|||
return () => {
|
||||
router.events.off("routeChangeComplete", handleRouteChange);
|
||||
};
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, []);
|
||||
|
||||
if (posthogAPIKey) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue