Repository navigation
fix(browser-sdk): start automatic feedback when the first user ID arrives - #848
Merged
Merged
Conversation
roncohen
force-pushed
the
fix/auto-feedback-late-user
branch
from
November 30, 2026 21:29
50b2d4f to
6cce24d
Compare
…he first user arrives
roncohen
enabled auto-merge
December 1, 2026 06:40
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
A Browser SDK client only set up automatic feedback surveys if it was created with a user. If an app created the client before sign-in and set the user later with
setContext()orupdateUser(), surveys never showed. This affects the React, Vue and React Native SDKs too, since they use the Browser client.Fix
enableAutoFeedback, the prompt handler, position and translations). Offline, server-side and mobile behavior are unchanged.initialize(),initialize()opens the connection as usual.Tests
New cases in
test/feedback-context.test.ts:initialize();enableAutoFeedback: falsestaying off.All three cases fail without the fix. The Browser SDK suite passes, apart from the two release tests that need the React and Node packages built locally.
OpenFeature Browser provider
#847 made the provider stop its client and start a new one when the first user ID arrived, so that feedback would start. With this fix, the provider just updates the existing client's context, so that restart and its bootstrap handling are removed.