Skip to content

Commit ed38c95

Browse files
committed
Move modern strict to experimental
1 parent 4d6c47b commit ed38c95

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/react/src/__tests__/ReactStrictMode-test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ describe('ReactStrictMode', () => {
123123
'render',
124124
'render',
125125
'componentDidMount',
126+
'componentWillUnmount',
127+
'componentDidMount',
126128
]);
127129

128130
log = [];

packages/shared/ReactFeatureFlags.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export const disableJavaScriptURLs = false;
147147
// Modern <StrictMode /> behaviour aligns more with what components
148148
// components will encounter in production, especially when used With <Offscreen />.
149149
// TODO: clean up legacy <StrictMode /> once tests pass WWW.
150-
export const useModernStrictMode = false;
150+
export const useModernStrictMode = __NEXT_MAJOR__;
151151

152152
// Not ready to break experimental yet.
153153
// Remove IE and MsApp specific workarounds for innerHTML

0 commit comments

Comments
 (0)