Skip to content

Commit ae1889e

Browse files
committed
[tests] <StrictMode /> nested in tree is broken (#31825)
Adds a test that shows using <StrictMode /> anywhere outside of the root node will not fire strict effects. This works: ```js root.render( <StrictMode> <App> <Children /> </App> </StrictMode> ); ``` This does not fire strict effects on mount: ```js root.render( <App> <StrictMode> <Children /> </StrictMode> </App> ); ``` DiffTrain build for [e1d843f](e1d843f)
1 parent 9c3a23a commit ae1889e

32 files changed

+84
-84
lines changed

compiled/facebook-www/React-dev.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1942,7 +1942,7 @@ __DEV__ &&
19421942
exports.useTransition = function () {
19431943
return resolveDispatcher().useTransition();
19441944
};
1945-
exports.version = "19.1.0-www-classic-1e9ef39a-20241218";
1945+
exports.version = "19.1.0-www-classic-e1d843f4-20241218";
19461946
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
19471947
"function" ===
19481948
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-dev.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1942,7 +1942,7 @@ __DEV__ &&
19421942
exports.useTransition = function () {
19431943
return resolveDispatcher().useTransition();
19441944
};
1945-
exports.version = "19.1.0-www-modern-1e9ef39a-20241218";
1945+
exports.version = "19.1.0-www-modern-e1d843f4-20241218";
19461946
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
19471947
"function" ===
19481948
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-prod.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,4 +630,4 @@ exports.useSyncExternalStore = function (
630630
exports.useTransition = function () {
631631
return ReactSharedInternals.H.useTransition();
632632
};
633-
exports.version = "19.1.0-www-classic-1e9ef39a-20241218";
633+
exports.version = "19.1.0-www-classic-e1d843f4-20241218";

compiled/facebook-www/React-prod.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,4 +630,4 @@ exports.useSyncExternalStore = function (
630630
exports.useTransition = function () {
631631
return ReactSharedInternals.H.useTransition();
632632
};
633-
exports.version = "19.1.0-www-modern-1e9ef39a-20241218";
633+
exports.version = "19.1.0-www-modern-e1d843f4-20241218";

compiled/facebook-www/React-profiling.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ exports.useSyncExternalStore = function (
634634
exports.useTransition = function () {
635635
return ReactSharedInternals.H.useTransition();
636636
};
637-
exports.version = "19.1.0-www-classic-1e9ef39a-20241218";
637+
exports.version = "19.1.0-www-classic-e1d843f4-20241218";
638638
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
639639
"function" ===
640640
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-profiling.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ exports.useSyncExternalStore = function (
634634
exports.useTransition = function () {
635635
return ReactSharedInternals.H.useTransition();
636636
};
637-
exports.version = "19.1.0-www-modern-1e9ef39a-20241218";
637+
exports.version = "19.1.0-www-modern-e1d843f4-20241218";
638638
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
639639
"function" ===
640640
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/ReactART-dev.classic.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16870,10 +16870,10 @@ __DEV__ &&
1687016870
(function () {
1687116871
var internals = {
1687216872
bundleType: 1,
16873-
version: "19.1.0-www-classic-1e9ef39a-20241218",
16873+
version: "19.1.0-www-classic-e1d843f4-20241218",
1687416874
rendererPackageName: "react-art",
1687516875
currentDispatcherRef: ReactSharedInternals,
16876-
reconcilerVersion: "19.1.0-www-classic-1e9ef39a-20241218"
16876+
reconcilerVersion: "19.1.0-www-classic-e1d843f4-20241218"
1687716877
};
1687816878
internals.overrideHookState = overrideHookState;
1687916879
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -16907,7 +16907,7 @@ __DEV__ &&
1690716907
exports.Shape = Shape;
1690816908
exports.Surface = Surface;
1690916909
exports.Text = Text;
16910-
exports.version = "19.1.0-www-classic-1e9ef39a-20241218";
16910+
exports.version = "19.1.0-www-classic-e1d843f4-20241218";
1691116911
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
1691216912
"function" ===
1691316913
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/ReactART-dev.modern.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16633,10 +16633,10 @@ __DEV__ &&
1663316633
(function () {
1663416634
var internals = {
1663516635
bundleType: 1,
16636-
version: "19.1.0-www-modern-1e9ef39a-20241218",
16636+
version: "19.1.0-www-modern-e1d843f4-20241218",
1663716637
rendererPackageName: "react-art",
1663816638
currentDispatcherRef: ReactSharedInternals,
16639-
reconcilerVersion: "19.1.0-www-modern-1e9ef39a-20241218"
16639+
reconcilerVersion: "19.1.0-www-modern-e1d843f4-20241218"
1664016640
};
1664116641
internals.overrideHookState = overrideHookState;
1664216642
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -16670,7 +16670,7 @@ __DEV__ &&
1667016670
exports.Shape = Shape;
1667116671
exports.Surface = Surface;
1667216672
exports.Text = Text;
16673-
exports.version = "19.1.0-www-modern-1e9ef39a-20241218";
16673+
exports.version = "19.1.0-www-modern-e1d843f4-20241218";
1667416674
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
1667516675
"function" ===
1667616676
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/ReactART-prod.classic.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10757,10 +10757,10 @@ var slice = Array.prototype.slice,
1075710757
})(React.Component);
1075810758
var internals$jscomp$inline_1495 = {
1075910759
bundleType: 0,
10760-
version: "19.1.0-www-classic-1e9ef39a-20241218",
10760+
version: "19.1.0-www-classic-e1d843f4-20241218",
1076110761
rendererPackageName: "react-art",
1076210762
currentDispatcherRef: ReactSharedInternals,
10763-
reconcilerVersion: "19.1.0-www-classic-1e9ef39a-20241218"
10763+
reconcilerVersion: "19.1.0-www-classic-e1d843f4-20241218"
1076410764
};
1076510765
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1076610766
var hook$jscomp$inline_1496 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -10786,4 +10786,4 @@ exports.RadialGradient = RadialGradient;
1078610786
exports.Shape = TYPES.SHAPE;
1078710787
exports.Surface = Surface;
1078810788
exports.Text = Text;
10789-
exports.version = "19.1.0-www-classic-1e9ef39a-20241218";
10789+
exports.version = "19.1.0-www-classic-e1d843f4-20241218";

compiled/facebook-www/ReactART-prod.modern.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10473,10 +10473,10 @@ var slice = Array.prototype.slice,
1047310473
})(React.Component);
1047410474
var internals$jscomp$inline_1474 = {
1047510475
bundleType: 0,
10476-
version: "19.1.0-www-modern-1e9ef39a-20241218",
10476+
version: "19.1.0-www-modern-e1d843f4-20241218",
1047710477
rendererPackageName: "react-art",
1047810478
currentDispatcherRef: ReactSharedInternals,
10479-
reconcilerVersion: "19.1.0-www-modern-1e9ef39a-20241218"
10479+
reconcilerVersion: "19.1.0-www-modern-e1d843f4-20241218"
1048010480
};
1048110481
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1048210482
var hook$jscomp$inline_1475 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -10502,4 +10502,4 @@ exports.RadialGradient = RadialGradient;
1050210502
exports.Shape = TYPES.SHAPE;
1050310503
exports.Surface = Surface;
1050410504
exports.Text = Text;
10505-
exports.version = "19.1.0-www-modern-1e9ef39a-20241218";
10505+
exports.version = "19.1.0-www-modern-e1d843f4-20241218";

0 commit comments

Comments
 (0)