forked from github/plane
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
@ -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…
Reference in New Issue
Block a user