From 91f571289e61d034200bf7a6affadef461b13f58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Norte?= Date: Fri, 15 Mar 2024 17:48:32 +0000 Subject: [PATCH] Revert rollout state of enableCache in React Native to next major only --- packages/shared/forks/ReactFeatureFlags.native-oss.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/shared/forks/ReactFeatureFlags.native-oss.js b/packages/shared/forks/ReactFeatureFlags.native-oss.js index acc051edcc661..60581ea148ab0 100644 --- a/packages/shared/forks/ReactFeatureFlags.native-oss.js +++ b/packages/shared/forks/ReactFeatureFlags.native-oss.js @@ -10,6 +10,13 @@ import typeof * as FeatureFlagsType from 'shared/ReactFeatureFlags'; import typeof * as ExportsType from './ReactFeatureFlags.native-oss'; +// ----------------------------------------------------------------------------- +// Ready for next major. +// +// Alias __NEXT_MAJOR__ to false for easier skimming. +// ----------------------------------------------------------------------------- +const __NEXT_MAJOR__ = false; + export const debugRenderPhaseSideEffectsForStrictMode = __DEV__; export const enableDebugTracing = false; export const enableAsyncDebugInfo = false; @@ -18,7 +25,7 @@ export const enableProfilerTimer = __PROFILE__; export const enableProfilerCommitHooks = __PROFILE__; export const enableProfilerNestedUpdatePhase = __PROFILE__; export const enableUpdaterTracking = __PROFILE__; -export const enableCache = true; +export const enableCache = __NEXT_MAJOR__; export const enableLegacyCache = false; export const enableCacheElement = true; export const enableFetchInstrumentation = false;