Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: posthog events trigger in staging #3220

Merged
merged 3 commits into from
Dec 22, 2023
Merged

Conversation

rameshkumarchandra
Copy link
Collaborator

This PR contains the fix for PostHog events which are not getting triggered in staging and production.

@@ -48,7 +48,7 @@ const PosthogWrapper: FC<IPosthogWrapper> = (props) => {
});
}
// eslint-disable-next-line react-hooks/exhaustive-deps
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete this comment

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix any issue with exhaustive-deps

@@ -60,8 +59,7 @@ const PosthogWrapper: FC<IPosthogWrapper> = (props) => {
return () => {
router.events.off("routeChangeComplete", handleRouteChange);
};
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
}, [router.events]);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not required here.

@sriramveeraghanta sriramveeraghanta merged commit fe95193 into develop Dec 22, 2023
7 of 8 checks passed
@sriramveeraghanta sriramveeraghanta deleted the fix/posthog branch December 22, 2023 08:35
sriramveeraghanta added a commit that referenced this pull request Dec 22, 2023
fix: posthog events trigger in staging (#3220)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants