mirror of
https://github.com/react/react-native.git
synced 2026-09-28 21:33:11 +08:00
Summary: Pull Request resolved: https://github.com/react/react-native/pull/57783 # 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. Reviewed By: antonk52 Differential Revision: D114407789 fbshipit-source-id: d63dd09180e6560a82d178610c7ae24b9e31b65e
18 lines
443 B
JavaScript
18 lines
443 B
JavaScript
/**
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @flow strict-local
|
|
* @format
|
|
*/
|
|
|
|
module.exports = {
|
|
enableFragmentRefs: true,
|
|
enableFragmentRefsInstanceHandles: true,
|
|
enableFragmentRefsTextNodes: true,
|
|
enableViewTransitionForPersistenceMode: true,
|
|
enableConditionalUseWarning: true,
|
|
};
|