-
Notifications
You must be signed in to change notification settings - Fork 24.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pass default values for feature flags to overrides providers (#46533)
Summary: Pull Request resolved: #46533 Changelog: [internal] When defining overrides for feature flags, it's common to have this pattern: ```javascript myFeatureFlag: () => someCondition ? value : defaultValueForFlag ``` But it's not always obvious how to get the default value defined in the feature flag system. This modifies the API so we receive the default value as a parameter to simplify the logic: ```javascript myFeatureFlag: (defaultValueForFlag) => someCondition ? value : defaultValueForFlag ``` Reviewed By: mdvacca, rshest Differential Revision: D62853299 fbshipit-source-id: 9421e31d00662e2a23f1e3fb43bdc9f5cf03fdf3
- Loading branch information
1 parent
958d35f
commit 89f824b
Showing
4 changed files
with
26 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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