mirror of
https://github.com/cline/cline.git
synced 2026-08-29 03:52:41 +08:00
fix(vscode): refresh PostHog identity effects
This commit is contained in:
@@ -34,7 +34,7 @@ export function CustomPostHogProvider({ children }: { children: ReactNode }) {
|
||||
autocapture: false,
|
||||
})
|
||||
setIsActive(true)
|
||||
}, [isSelfHostedOrUnknown])
|
||||
}, [isSelfHostedOrUnknown, isActive])
|
||||
|
||||
useEffect(() => {
|
||||
if (!isActive || !distinctId || !version) {
|
||||
@@ -76,7 +76,7 @@ export function CustomPostHogProvider({ children }: { children: ReactNode }) {
|
||||
// Then opt out of capturing other events
|
||||
posthog.opt_out_capturing()
|
||||
}
|
||||
}, [isActive, isTelemetryEnabled, distinctId, version])
|
||||
}, [isActive, isTelemetryEnabled, distinctId, version, userInfo?.email, userInfo?.displayName])
|
||||
|
||||
return <PostHogProvider client={posthog}>{children}</PostHogProvider>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user