Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

fix: posthog events trigger in staging (#3220)

Ramesh Kumar Chandrafe9519314afe
diff --git a/web/lib/wrappers/posthog-wrapper.tsx b/web/lib/wrappers/posthog-wrapper.tsx
index 1e7c35c0db..9c17ee2bd6 100644
--- a/web/lib/wrappers/posthog-wrapper.tsx
+++ b/web/lib/wrappers/posthog-wrapper.tsx
@@ -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) {