Skip to content

Commit 6a16981

Browse files
hoxyqfacebook-github-bot
authored andcommitted
Add enableConditionalUseWarning React feature flag
Summary: # Changelog: [Internal] Adds the `enableConditionalUseWarning` dynamic React feature flag, which the React renderer reads from `ReactNativeInternalFeatureFlags`. The flag gates the new warning for conditional use of `use()` based on cache state: https://react.dev/warnings/conditional-use-of-use This is a dev-only warning, I don't see any reasons to control this via gk. Differential Revision: D114407789
1 parent db11646 commit 6a16981

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

private/react-native-fantom/runtime/mocks/ReactNativeInternalFeatureFlags.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ module.exports = {
1313
enableFragmentRefsInstanceHandles: true,
1414
enableFragmentRefsTextNodes: true,
1515
enableViewTransitionForPersistenceMode: true,
16+
enableConditionalUseWarning: true,
1617
};

0 commit comments

Comments
 (0)