From ed38c952d694872aaae00c32b7439a8b9a679afc Mon Sep 17 00:00:00 2001 From: Ricky Hanlon Date: Mon, 29 Jan 2024 17:09:51 -0500 Subject: [PATCH] Move modern strict to experimental --- packages/react/src/__tests__/ReactStrictMode-test.js | 2 ++ packages/shared/ReactFeatureFlags.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/react/src/__tests__/ReactStrictMode-test.js b/packages/react/src/__tests__/ReactStrictMode-test.js index c0d392a61f2da..4b6403f9ad52f 100644 --- a/packages/react/src/__tests__/ReactStrictMode-test.js +++ b/packages/react/src/__tests__/ReactStrictMode-test.js @@ -123,6 +123,8 @@ describe('ReactStrictMode', () => { 'render', 'render', 'componentDidMount', + 'componentWillUnmount', + 'componentDidMount', ]); log = []; diff --git a/packages/shared/ReactFeatureFlags.js b/packages/shared/ReactFeatureFlags.js index 2645259e21244..c2e020c33d0df 100644 --- a/packages/shared/ReactFeatureFlags.js +++ b/packages/shared/ReactFeatureFlags.js @@ -147,7 +147,7 @@ export const disableJavaScriptURLs = false; // Modern behaviour aligns more with what components // components will encounter in production, especially when used With . // TODO: clean up legacy once tests pass WWW. -export const useModernStrictMode = false; +export const useModernStrictMode = __NEXT_MAJOR__; // Not ready to break experimental yet. // Remove IE and MsApp specific workarounds for innerHTML