From f329138bfa41c3b3b13f738a58eb762e2726832d Mon Sep 17 00:00:00 2001 From: jtgi Date: Thu, 7 Mar 2024 14:44:42 +0900 Subject: [PATCH] gm --- app/lib/posthog.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/lib/posthog.tsx b/app/lib/posthog.tsx index de473fb..c262f4d 100644 --- a/app/lib/posthog.tsx +++ b/app/lib/posthog.tsx @@ -25,11 +25,11 @@ export function usePosthog(props: { user: User | null; enabled: boolean }) { name: props.user.name, }); } - }, [enabled, props.user]); + }, [props.enabled, props.user]); useEffect(() => { if (enabled) { posthog.capture("$pageview"); } - }, [enabled, location]); + }, [props.enabled, location]); }