Skip to content

Commit

Permalink
Reduce risk of leaving shipped Hooks as nullable on Dispatcher (#32068)
Browse files Browse the repository at this point in the history
DiffTrain build for [886c5ad](886c5ad)
  • Loading branch information
eps1lon committed Jan 14, 2025
1 parent 606b9ea commit ca9dd07
Show file tree
Hide file tree
Showing 36 changed files with 122 additions and 86 deletions.
2 changes: 1 addition & 1 deletion compiled/facebook-www/REVISION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
f0edf41e3ee00fbc97873b72b66d62d0f26185b1
886c5ad936428f168e50e077bd37fe9472ff8d3e
2 changes: 1 addition & 1 deletion compiled/facebook-www/REVISION_TRANSFORMS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
f0edf41e3ee00fbc97873b72b66d62d0f26185b1
886c5ad936428f168e50e077bd37fe9472ff8d3e
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 @@ -1947,7 +1947,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.1.0-www-classic-f0edf41e-20250115";
exports.version = "19.1.0-www-classic-886c5ad9-20250115";
"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 @@ -1947,7 +1947,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.1.0-www-modern-f0edf41e-20250115";
exports.version = "19.1.0-www-modern-886c5ad9-20250115";
"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-f0edf41e-20250115";
exports.version = "19.1.0-www-classic-886c5ad9-20250115";
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-f0edf41e-20250115";
exports.version = "19.1.0-www-modern-886c5ad9-20250115";
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-f0edf41e-20250115";
exports.version = "19.1.0-www-classic-886c5ad9-20250115";
"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-f0edf41e-20250115";
exports.version = "19.1.0-www-modern-886c5ad9-20250115";
"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 @@ -16945,10 +16945,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.1.0-www-classic-f0edf41e-20250115",
version: "19.1.0-www-classic-886c5ad9-20250115",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-classic-f0edf41e-20250115"
reconcilerVersion: "19.1.0-www-classic-886c5ad9-20250115"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
Expand Down Expand Up @@ -16982,7 +16982,7 @@ __DEV__ &&
exports.Shape = Shape;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.1.0-www-classic-f0edf41e-20250115";
exports.version = "19.1.0-www-classic-886c5ad9-20250115";
"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 @@ -16717,10 +16717,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.1.0-www-modern-f0edf41e-20250115",
version: "19.1.0-www-modern-886c5ad9-20250115",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-modern-f0edf41e-20250115"
reconcilerVersion: "19.1.0-www-modern-886c5ad9-20250115"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
Expand Down Expand Up @@ -16754,7 +16754,7 @@ __DEV__ &&
exports.Shape = Shape;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.1.0-www-modern-f0edf41e-20250115";
exports.version = "19.1.0-www-modern-886c5ad9-20250115";
"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 @@ -10830,10 +10830,10 @@ var slice = Array.prototype.slice,
})(React.Component);
var internals$jscomp$inline_1514 = {
bundleType: 0,
version: "19.1.0-www-classic-f0edf41e-20250115",
version: "19.1.0-www-classic-886c5ad9-20250115",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-classic-f0edf41e-20250115"
reconcilerVersion: "19.1.0-www-classic-886c5ad9-20250115"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1515 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand All @@ -10859,4 +10859,4 @@ exports.RadialGradient = RadialGradient;
exports.Shape = TYPES.SHAPE;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.1.0-www-classic-f0edf41e-20250115";
exports.version = "19.1.0-www-classic-886c5ad9-20250115";
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 @@ -10550,10 +10550,10 @@ var slice = Array.prototype.slice,
})(React.Component);
var internals$jscomp$inline_1487 = {
bundleType: 0,
version: "19.1.0-www-modern-f0edf41e-20250115",
version: "19.1.0-www-modern-886c5ad9-20250115",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-modern-f0edf41e-20250115"
reconcilerVersion: "19.1.0-www-modern-886c5ad9-20250115"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1488 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand All @@ -10579,4 +10579,4 @@ exports.RadialGradient = RadialGradient;
exports.Shape = TYPES.SHAPE;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.1.0-www-modern-f0edf41e-20250115";
exports.version = "19.1.0-www-modern-886c5ad9-20250115";
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 @@ -27431,11 +27431,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.1.0-www-classic-f0edf41e-20250115" !== isomorphicReactPackageVersion)
if ("19.1.0-www-classic-886c5ad9-20250115" !== 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-f0edf41e-20250115\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.1.0-www-classic-886c5ad9-20250115\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
Expand Down Expand Up @@ -27478,10 +27478,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.1.0-www-classic-f0edf41e-20250115",
version: "19.1.0-www-classic-886c5ad9-20250115",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-classic-f0edf41e-20250115"
reconcilerVersion: "19.1.0-www-classic-886c5ad9-20250115"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
Expand Down Expand Up @@ -28079,7 +28079,7 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.1.0-www-classic-f0edf41e-20250115";
exports.version = "19.1.0-www-classic-886c5ad9-20250115";
"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 @@ -27217,11 +27217,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.1.0-www-modern-f0edf41e-20250115" !== isomorphicReactPackageVersion)
if ("19.1.0-www-modern-886c5ad9-20250115" !== 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-f0edf41e-20250115\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.1.0-www-modern-886c5ad9-20250115\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
Expand Down Expand Up @@ -27264,10 +27264,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.1.0-www-modern-f0edf41e-20250115",
version: "19.1.0-www-modern-886c5ad9-20250115",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-modern-f0edf41e-20250115"
reconcilerVersion: "19.1.0-www-modern-886c5ad9-20250115"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
Expand Down Expand Up @@ -27865,7 +27865,7 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.1.0-www-modern-f0edf41e-20250115";
exports.version = "19.1.0-www-modern-886c5ad9-20250115";
"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 @@ -17308,14 +17308,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1798 = React.version;
if (
"19.1.0-www-classic-f0edf41e-20250115" !==
"19.1.0-www-classic-886c5ad9-20250115" !==
isomorphicReactPackageVersion$jscomp$inline_1798
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1798,
"19.1.0-www-classic-f0edf41e-20250115"
"19.1.0-www-classic-886c5ad9-20250115"
)
);
Internals.findDOMNode = function (componentOrElement) {
Expand All @@ -17333,10 +17333,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2330 = {
bundleType: 0,
version: "19.1.0-www-classic-f0edf41e-20250115",
version: "19.1.0-www-classic-886c5ad9-20250115",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-classic-f0edf41e-20250115"
reconcilerVersion: "19.1.0-www-classic-886c5ad9-20250115"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2331 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down Expand Up @@ -17700,4 +17700,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.1.0-www-classic-f0edf41e-20250115";
exports.version = "19.1.0-www-classic-886c5ad9-20250115";
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 @@ -17044,14 +17044,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1788 = React.version;
if (
"19.1.0-www-modern-f0edf41e-20250115" !==
"19.1.0-www-modern-886c5ad9-20250115" !==
isomorphicReactPackageVersion$jscomp$inline_1788
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1788,
"19.1.0-www-modern-f0edf41e-20250115"
"19.1.0-www-modern-886c5ad9-20250115"
)
);
Internals.findDOMNode = function (componentOrElement) {
Expand All @@ -17069,10 +17069,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2312 = {
bundleType: 0,
version: "19.1.0-www-modern-f0edf41e-20250115",
version: "19.1.0-www-modern-886c5ad9-20250115",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-modern-f0edf41e-20250115"
reconcilerVersion: "19.1.0-www-modern-886c5ad9-20250115"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2313 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down Expand Up @@ -17436,4 +17436,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.1.0-www-modern-f0edf41e-20250115";
exports.version = "19.1.0-www-modern-886c5ad9-20250115";
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 @@ -17995,14 +17995,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1895 = React.version;
if (
"19.1.0-www-classic-f0edf41e-20250115" !==
"19.1.0-www-classic-886c5ad9-20250115" !==
isomorphicReactPackageVersion$jscomp$inline_1895
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1895,
"19.1.0-www-classic-f0edf41e-20250115"
"19.1.0-www-classic-886c5ad9-20250115"
)
);
Internals.findDOMNode = function (componentOrElement) {
Expand All @@ -18020,10 +18020,10 @@ Internals.Events = [
];
var internals$jscomp$inline_1897 = {
bundleType: 0,
version: "19.1.0-www-classic-f0edf41e-20250115",
version: "19.1.0-www-classic-886c5ad9-20250115",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-classic-f0edf41e-20250115"
reconcilerVersion: "19.1.0-www-classic-886c5ad9-20250115"
};
enableSchedulingProfiler &&
((internals$jscomp$inline_1897.getLaneLabelMap = getLaneLabelMap),
Expand Down Expand Up @@ -18390,7 +18390,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.1.0-www-classic-f0edf41e-20250115";
exports.version = "19.1.0-www-classic-886c5ad9-20250115";
"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 @@ -17730,14 +17730,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1885 = React.version;
if (
"19.1.0-www-modern-f0edf41e-20250115" !==
"19.1.0-www-modern-886c5ad9-20250115" !==
isomorphicReactPackageVersion$jscomp$inline_1885
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1885,
"19.1.0-www-modern-f0edf41e-20250115"
"19.1.0-www-modern-886c5ad9-20250115"
)
);
Internals.findDOMNode = function (componentOrElement) {
Expand All @@ -17755,10 +17755,10 @@ Internals.Events = [
];
var internals$jscomp$inline_1887 = {
bundleType: 0,
version: "19.1.0-www-modern-f0edf41e-20250115",
version: "19.1.0-www-modern-886c5ad9-20250115",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-modern-f0edf41e-20250115"
reconcilerVersion: "19.1.0-www-modern-886c5ad9-20250115"
};
enableSchedulingProfiler &&
((internals$jscomp$inline_1887.getLaneLabelMap = getLaneLabelMap),
Expand Down Expand Up @@ -18125,7 +18125,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.1.0-www-modern-f0edf41e-20250115";
exports.version = "19.1.0-www-modern-886c5ad9-20250115";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
8 changes: 7 additions & 1 deletion compiled/facebook-www/ReactDOMServer-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -4042,6 +4042,9 @@ __DEV__ &&
null === thenableState && (thenableState = []);
return trackUsedThenable(thenableState, thenable, index);
}
function unsupportedRefresh() {
throw Error("Cache cannot be refreshed during server rendering.");
}
function noop$1() {}
function disabledLog() {}
function disableLogs() {
Expand Down Expand Up @@ -9072,6 +9075,9 @@ __DEV__ &&
data[i] = REACT_MEMO_CACHE_SENTINEL;
return data;
},
useCacheRefresh: function () {
return unsupportedRefresh;
},
useEffectEvent: function () {
return throwOnUseEffectEventCall;
}
Expand Down Expand Up @@ -9156,5 +9162,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-f0edf41e-20250115";
exports.version = "19.1.0-www-classic-886c5ad9-20250115";
})();
Loading

0 comments on commit ca9dd07

Please sign in to comment.