From 9c75cd5e84c4c524f42e65027cfd3dce746d6916 Mon Sep 17 00:00:00 2001 From: Jan Kassens Date: Mon, 18 Mar 2024 17:25:28 -0400 Subject: [PATCH] Set disableModulePatternComponents flag to __NEXT_MAJOR__ (#28579) --- packages/shared/ReactFeatureFlags.js | 2 +- packages/shared/forks/ReactFeatureFlags.test-renderer.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/shared/ReactFeatureFlags.js b/packages/shared/ReactFeatureFlags.js index c320acdc45cb4..2b34cf3cbee38 100644 --- a/packages/shared/ReactFeatureFlags.js +++ b/packages/shared/ReactFeatureFlags.js @@ -214,7 +214,7 @@ export const enableNewBooleanProps = __NEXT_MAJOR__; // when we plan to enable them. // ----------------------------------------------------------------------------- -export const disableModulePatternComponents = false; +export const disableModulePatternComponents = __NEXT_MAJOR__; export const enableUseRefAccessWarning = false; diff --git a/packages/shared/forks/ReactFeatureFlags.test-renderer.js b/packages/shared/forks/ReactFeatureFlags.test-renderer.js index b1dd230c472f5..5bc1d25034f7f 100644 --- a/packages/shared/forks/ReactFeatureFlags.test-renderer.js +++ b/packages/shared/forks/ReactFeatureFlags.test-renderer.js @@ -35,7 +35,6 @@ export const enableCreateEventHandleAPI = false; export const enableSuspenseCallback = false; export const enableTrustedTypesIntegration = false; export const disableTextareaChildren = false; -export const disableModulePatternComponents = false; export const enableSuspenseAvoidThisFallback = false; export const enableSuspenseAvoidThisFallbackFizz = false; export const enableCPUSuspense = false; @@ -101,6 +100,7 @@ export const enableBigIntSupport = __NEXT_MAJOR__; export const disableLegacyMode = __NEXT_MAJOR__; export const disableLegacyContext = __NEXT_MAJOR__; export const enableNewBooleanProps = __NEXT_MAJOR__; +export const disableModulePatternComponents = __NEXT_MAJOR__; // Flow magic to verify the exports of this file match the original version. ((((null: any): ExportsType): FeatureFlagsType): ExportsType);