Repository navigation
feat!: remove the fallbackFlags option - #838
Merged
Merged
Conversation
roncohen
enabled auto-merge
November 28, 2026 19:04
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.
Removes
fallbackFlagsfrom the Browser and Node SDKs before 2.0.0, which also removes it from the React, Vue and React Native providers.In v2 the default passed to a flag read already covers it:
useFlag("huddles", true)returnstruewhenever the flag has no value, including offline and when the first fetch fails. On the server, fallback providers keep evaluating flags when Reflag can't be reached, andgetFlag(key, default)covers flags with no value.FallbackFlagOverrideis no longer exported.static, are unchanged.fallbackFlagsto the React Native provider is an error.Adds a major changeset; the packages are already going to 2.0.0, so the planned versions don't change.
Tests: browser-sdk 277, node-sdk 286, react-sdk 27, vue-sdk 15, react-native-sdk 15, all passing; type tests, lint and format pass.