Skip to content

Commit

Permalink
Turn on useModernStrictMode in test renderers (#31769)
Browse files Browse the repository at this point in the history
It's on everywhere else, let's turn this on so we can remove it.

Probably should have been turned on in the test renderer for 19.

DiffTrain build for [8dab592](8dab592)
  • Loading branch information
rickhanlonii committed Dec 17, 2024
1 parent cd62d05 commit 2fceb0b
Show file tree
Hide file tree
Showing 34 changed files with 750 additions and 732 deletions.
2 changes: 1 addition & 1 deletion compiled/facebook-www/REVISION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
909ed63e0adc162a95a4704d3ed07a956dcf9cd1
8dab5920e019950874bcc9061480dd78c849e1d7
2 changes: 1 addition & 1 deletion compiled/facebook-www/REVISION_TRANSFORMS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
909ed63e0adc162a95a4704d3ed07a956dcf9cd1
8dab5920e019950874bcc9061480dd78c849e1d7
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -1942,7 +1942,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.1.0-www-classic-909ed63e-20241216";
exports.version = "19.1.0-www-classic-8dab5920-20241216";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -1942,7 +1942,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.1.0-www-modern-909ed63e-20241216";
exports.version = "19.1.0-www-modern-8dab5920-20241216";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-prod.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -630,4 +630,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.1.0-www-classic-909ed63e-20241216";
exports.version = "19.1.0-www-classic-8dab5920-20241216";
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-prod.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -630,4 +630,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.1.0-www-modern-909ed63e-20241216";
exports.version = "19.1.0-www-modern-8dab5920-20241216";
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-profiling.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.1.0-www-classic-909ed63e-20241216";
exports.version = "19.1.0-www-classic-8dab5920-20241216";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-profiling.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.1.0-www-modern-909ed63e-20241216";
exports.version = "19.1.0-www-modern-8dab5920-20241216";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
6 changes: 3 additions & 3 deletions compiled/facebook-www/ReactART-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -16904,10 +16904,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.1.0-www-classic-909ed63e-20241216",
version: "19.1.0-www-classic-8dab5920-20241216",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-classic-909ed63e-20241216"
reconcilerVersion: "19.1.0-www-classic-8dab5920-20241216"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
Expand Down Expand Up @@ -16941,7 +16941,7 @@ __DEV__ &&
exports.Shape = Shape;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.1.0-www-classic-909ed63e-20241216";
exports.version = "19.1.0-www-classic-8dab5920-20241216";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
6 changes: 3 additions & 3 deletions compiled/facebook-www/ReactART-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -16667,10 +16667,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.1.0-www-modern-909ed63e-20241216",
version: "19.1.0-www-modern-8dab5920-20241216",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-modern-909ed63e-20241216"
reconcilerVersion: "19.1.0-www-modern-8dab5920-20241216"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
Expand Down Expand Up @@ -16704,7 +16704,7 @@ __DEV__ &&
exports.Shape = Shape;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.1.0-www-modern-909ed63e-20241216";
exports.version = "19.1.0-www-modern-8dab5920-20241216";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
6 changes: 3 additions & 3 deletions compiled/facebook-www/ReactART-prod.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -10759,10 +10759,10 @@ var slice = Array.prototype.slice,
})(React.Component);
var internals$jscomp$inline_1493 = {
bundleType: 0,
version: "19.1.0-www-classic-909ed63e-20241216",
version: "19.1.0-www-classic-8dab5920-20241216",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-classic-909ed63e-20241216"
reconcilerVersion: "19.1.0-www-classic-8dab5920-20241216"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1494 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand All @@ -10788,4 +10788,4 @@ exports.RadialGradient = RadialGradient;
exports.Shape = TYPES.SHAPE;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.1.0-www-classic-909ed63e-20241216";
exports.version = "19.1.0-www-classic-8dab5920-20241216";
6 changes: 3 additions & 3 deletions compiled/facebook-www/ReactART-prod.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -10475,10 +10475,10 @@ var slice = Array.prototype.slice,
})(React.Component);
var internals$jscomp$inline_1472 = {
bundleType: 0,
version: "19.1.0-www-modern-909ed63e-20241216",
version: "19.1.0-www-modern-8dab5920-20241216",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-modern-909ed63e-20241216"
reconcilerVersion: "19.1.0-www-modern-8dab5920-20241216"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1473 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand All @@ -10504,4 +10504,4 @@ exports.RadialGradient = RadialGradient;
exports.Shape = TYPES.SHAPE;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.1.0-www-modern-909ed63e-20241216";
exports.version = "19.1.0-www-modern-8dab5920-20241216";
10 changes: 5 additions & 5 deletions compiled/facebook-www/ReactDOM-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -27379,11 +27379,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.1.0-www-classic-909ed63e-20241216" !== isomorphicReactPackageVersion)
if ("19.1.0-www-classic-8dab5920-20241216" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-dom: 19.1.0-www-classic-909ed63e-20241216\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.1.0-www-classic-8dab5920-20241216\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
Expand Down Expand Up @@ -27426,10 +27426,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.1.0-www-classic-909ed63e-20241216",
version: "19.1.0-www-classic-8dab5920-20241216",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-classic-909ed63e-20241216"
reconcilerVersion: "19.1.0-www-classic-8dab5920-20241216"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
Expand Down Expand Up @@ -28036,7 +28036,7 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.1.0-www-classic-909ed63e-20241216";
exports.version = "19.1.0-www-classic-8dab5920-20241216";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
10 changes: 5 additions & 5 deletions compiled/facebook-www/ReactDOM-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -27158,11 +27158,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.1.0-www-modern-909ed63e-20241216" !== isomorphicReactPackageVersion)
if ("19.1.0-www-modern-8dab5920-20241216" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-dom: 19.1.0-www-modern-909ed63e-20241216\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.1.0-www-modern-8dab5920-20241216\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
Expand Down Expand Up @@ -27205,10 +27205,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.1.0-www-modern-909ed63e-20241216",
version: "19.1.0-www-modern-8dab5920-20241216",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-modern-909ed63e-20241216"
reconcilerVersion: "19.1.0-www-modern-8dab5920-20241216"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
Expand Down Expand Up @@ -27815,7 +27815,7 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.1.0-www-modern-909ed63e-20241216";
exports.version = "19.1.0-www-modern-8dab5920-20241216";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
10 changes: 5 additions & 5 deletions compiled/facebook-www/ReactDOM-prod.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -17216,14 +17216,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1765 = React.version;
if (
"19.1.0-www-classic-909ed63e-20241216" !==
"19.1.0-www-classic-8dab5920-20241216" !==
isomorphicReactPackageVersion$jscomp$inline_1765
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1765,
"19.1.0-www-classic-909ed63e-20241216"
"19.1.0-www-classic-8dab5920-20241216"
)
);
Internals.findDOMNode = function (componentOrElement) {
Expand All @@ -17241,10 +17241,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2299 = {
bundleType: 0,
version: "19.1.0-www-classic-909ed63e-20241216",
version: "19.1.0-www-classic-8dab5920-20241216",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-classic-909ed63e-20241216"
reconcilerVersion: "19.1.0-www-classic-8dab5920-20241216"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2300 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down Expand Up @@ -17609,4 +17609,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.1.0-www-classic-909ed63e-20241216";
exports.version = "19.1.0-www-classic-8dab5920-20241216";
10 changes: 5 additions & 5 deletions compiled/facebook-www/ReactDOM-prod.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -16947,14 +16947,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1755 = React.version;
if (
"19.1.0-www-modern-909ed63e-20241216" !==
"19.1.0-www-modern-8dab5920-20241216" !==
isomorphicReactPackageVersion$jscomp$inline_1755
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1755,
"19.1.0-www-modern-909ed63e-20241216"
"19.1.0-www-modern-8dab5920-20241216"
)
);
Internals.findDOMNode = function (componentOrElement) {
Expand All @@ -16972,10 +16972,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2281 = {
bundleType: 0,
version: "19.1.0-www-modern-909ed63e-20241216",
version: "19.1.0-www-modern-8dab5920-20241216",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-modern-909ed63e-20241216"
reconcilerVersion: "19.1.0-www-modern-8dab5920-20241216"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2282 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down Expand Up @@ -17340,4 +17340,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.1.0-www-modern-909ed63e-20241216";
exports.version = "19.1.0-www-modern-8dab5920-20241216";
10 changes: 5 additions & 5 deletions compiled/facebook-www/ReactDOM-profiling.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -17905,14 +17905,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1858 = React.version;
if (
"19.1.0-www-classic-909ed63e-20241216" !==
"19.1.0-www-classic-8dab5920-20241216" !==
isomorphicReactPackageVersion$jscomp$inline_1858
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1858,
"19.1.0-www-classic-909ed63e-20241216"
"19.1.0-www-classic-8dab5920-20241216"
)
);
Internals.findDOMNode = function (componentOrElement) {
Expand All @@ -17930,10 +17930,10 @@ Internals.Events = [
];
var internals$jscomp$inline_1860 = {
bundleType: 0,
version: "19.1.0-www-classic-909ed63e-20241216",
version: "19.1.0-www-classic-8dab5920-20241216",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-classic-909ed63e-20241216"
reconcilerVersion: "19.1.0-www-classic-8dab5920-20241216"
};
enableSchedulingProfiler &&
((internals$jscomp$inline_1860.getLaneLabelMap = getLaneLabelMap),
Expand Down Expand Up @@ -18301,7 +18301,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.1.0-www-classic-909ed63e-20241216";
exports.version = "19.1.0-www-classic-8dab5920-20241216";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
10 changes: 5 additions & 5 deletions compiled/facebook-www/ReactDOM-profiling.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -17635,14 +17635,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1848 = React.version;
if (
"19.1.0-www-modern-909ed63e-20241216" !==
"19.1.0-www-modern-8dab5920-20241216" !==
isomorphicReactPackageVersion$jscomp$inline_1848
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1848,
"19.1.0-www-modern-909ed63e-20241216"
"19.1.0-www-modern-8dab5920-20241216"
)
);
Internals.findDOMNode = function (componentOrElement) {
Expand All @@ -17660,10 +17660,10 @@ Internals.Events = [
];
var internals$jscomp$inline_1850 = {
bundleType: 0,
version: "19.1.0-www-modern-909ed63e-20241216",
version: "19.1.0-www-modern-8dab5920-20241216",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-modern-909ed63e-20241216"
reconcilerVersion: "19.1.0-www-modern-8dab5920-20241216"
};
enableSchedulingProfiler &&
((internals$jscomp$inline_1850.getLaneLabelMap = getLaneLabelMap),
Expand Down Expand Up @@ -18031,7 +18031,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.1.0-www-modern-909ed63e-20241216";
exports.version = "19.1.0-www-modern-8dab5920-20241216";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
2 changes: 1 addition & 1 deletion compiled/facebook-www/ReactDOMServer-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -9150,5 +9150,5 @@ __DEV__ &&
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
);
};
exports.version = "19.1.0-www-classic-909ed63e-20241216";
exports.version = "19.1.0-www-classic-8dab5920-20241216";
})();
2 changes: 1 addition & 1 deletion compiled/facebook-www/ReactDOMServer-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -8976,5 +8976,5 @@ __DEV__ &&
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
);
};
exports.version = "19.1.0-www-modern-909ed63e-20241216";
exports.version = "19.1.0-www-modern-8dab5920-20241216";
})();
2 changes: 1 addition & 1 deletion compiled/facebook-www/ReactDOMServer-prod.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -5898,4 +5898,4 @@ exports.renderToString = function (children, options) {
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
);
};
exports.version = "19.1.0-www-classic-909ed63e-20241216";
exports.version = "19.1.0-www-classic-8dab5920-20241216";
2 changes: 1 addition & 1 deletion compiled/facebook-www/ReactDOMServer-prod.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -5810,4 +5810,4 @@ exports.renderToString = function (children, options) {
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
);
};
exports.version = "19.1.0-www-modern-909ed63e-20241216";
exports.version = "19.1.0-www-modern-8dab5920-20241216";
Loading

0 comments on commit 2fceb0b

Please sign in to comment.