-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Revert "Wait to experiment until state is hydrated" #9491
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -86,17 +86,12 @@ const App = () => { | |
| const [useProviderSignupView, setUseProviderSignupView] = useState(false) | ||
|
|
||
| // Check PostHog feature flag for provider signup view | ||
| // Wait for telemetry to be initialized before checking feature flags | ||
| useEffect(() => { | ||
| if (!didHydrateState || telemetrySetting === "disabled") { | ||
| return | ||
| } | ||
|
|
||
| posthog.onFeatureFlags(function () { | ||
| // Feature flag for new provider-focused welcome view | ||
| setUseProviderSignupView(posthog?.getFeatureFlag("welcome-provider-signup") === "test") | ||
| }) | ||
| }, [didHydrateState, telemetrySetting]) | ||
| }, []) | ||
|
Comment on lines
89
to
+94
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removing the Fix it with Roo Code or mention @roomote and request a fix. |
||
|
|
||
| // Create a persistent state manager | ||
| const marketplaceStateManager = useMemo(() => new MarketplaceViewStateManager(), []) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reverting these guards means PostHog feature flag checks will now run regardless of the user's telemetry preferences. When users have
telemetrySetting === "disabled", this effect will still query PostHog, potentially violating their privacy settings. The original PR #9488 specifically added thetelemetrySetting === "disabled"check to respect user preferences.Fix it with Roo Code or mention @roomote and request a fix.