Skip to content

Commit

Permalink
Fix unstable_useContextWithBailout incorrect dispatcher assignment (#…
Browse files Browse the repository at this point in the history
…30673)

Fixing a mistaken copy from another dispatcher property assignment

DiffTrain build for [d48603a](d48603a)
  • Loading branch information
jackpope committed Aug 13, 2024
1 parent 3221ff0 commit b903fc0
Show file tree
Hide file tree
Showing 34 changed files with 142 additions and 158 deletions.
2 changes: 1 addition & 1 deletion compiled/facebook-www/REVISION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
65903583d2ab45aea45bdd23ed0b5dc214ff3c1c
d48603a52564675ce02152fff245e38b6816da47
2 changes: 1 addition & 1 deletion compiled/facebook-www/REVISION_TRANSFORMS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
65903583d2ab45aea45bdd23ed0b5dc214ff3c1c
d48603a52564675ce02152fff245e38b6816da47
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 @@ -2001,7 +2001,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.0.0-www-classic-65903583-20240805";
exports.version = "19.0.0-www-classic-d48603a5-20240813";
"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 @@ -1981,7 +1981,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.0.0-www-modern-65903583-20240805";
exports.version = "19.0.0-www-modern-d48603a5-20240813";
"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 @@ -665,4 +665,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-www-classic-65903583-20240805";
exports.version = "19.0.0-www-classic-d48603a5-20240813";
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 @@ -665,4 +665,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-www-modern-65903583-20240805";
exports.version = "19.0.0-www-modern-d48603a5-20240813";
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 @@ -669,7 +669,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-www-classic-65903583-20240805";
exports.version = "19.0.0-www-classic-d48603a5-20240813";
"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 @@ -669,7 +669,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-www-modern-65903583-20240805";
exports.version = "19.0.0-www-modern-d48603a5-20240813";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
22 changes: 10 additions & 12 deletions compiled/facebook-www/ReactART-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -15919,15 +15919,13 @@ __DEV__ &&
mountHookTypesDev();
return mountOptimistic(passthrough);
};
HooksDispatcherOnUpdateInDEV.unstable_useContextWithBailout = function (
context,
select
) {
currentHookNameInDev = "useContext";
warnInvalidHookAccess();
mountHookTypesDev();
return unstable_useContextWithBailout(context, select);
};
InvalidNestedHooksDispatcherOnMountInDEV.unstable_useContextWithBailout =
function (context, select) {
currentHookNameInDev = "useContext";
warnInvalidHookAccess();
mountHookTypesDev();
return unstable_useContextWithBailout(context, select);
};
InvalidNestedHooksDispatcherOnUpdateInDEV = {
readContext: function (context) {
warnInvalidContextAccess();
Expand Down Expand Up @@ -16778,11 +16776,11 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.0.0-www-classic-65903583-20240805",
version: "19.0.0-www-classic-d48603a5-20240813",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getInstanceFromNode,
reconcilerVersion: "19.0.0-www-classic-65903583-20240805"
reconcilerVersion: "19.0.0-www-classic-d48603a5-20240813"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
Expand Down Expand Up @@ -16816,7 +16814,7 @@ __DEV__ &&
exports.Shape = Shape;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.0.0-www-classic-65903583-20240805";
exports.version = "19.0.0-www-classic-d48603a5-20240813";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
22 changes: 10 additions & 12 deletions compiled/facebook-www/ReactART-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -15323,15 +15323,13 @@ __DEV__ &&
mountHookTypesDev();
return mountOptimistic(passthrough);
};
HooksDispatcherOnUpdateInDEV.unstable_useContextWithBailout = function (
context,
select
) {
currentHookNameInDev = "useContext";
warnInvalidHookAccess();
mountHookTypesDev();
return unstable_useContextWithBailout(context, select);
};
InvalidNestedHooksDispatcherOnMountInDEV.unstable_useContextWithBailout =
function (context, select) {
currentHookNameInDev = "useContext";
warnInvalidHookAccess();
mountHookTypesDev();
return unstable_useContextWithBailout(context, select);
};
InvalidNestedHooksDispatcherOnUpdateInDEV = {
readContext: function (context) {
warnInvalidContextAccess();
Expand Down Expand Up @@ -16191,11 +16189,11 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.0.0-www-modern-65903583-20240805",
version: "19.0.0-www-modern-d48603a5-20240813",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getInstanceFromNode,
reconcilerVersion: "19.0.0-www-modern-65903583-20240805"
reconcilerVersion: "19.0.0-www-modern-d48603a5-20240813"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
Expand Down Expand Up @@ -16229,7 +16227,7 @@ __DEV__ &&
exports.Shape = Shape;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.0.0-www-modern-65903583-20240805";
exports.version = "19.0.0-www-modern-d48603a5-20240813";
"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 @@ -10618,13 +10618,13 @@ var slice = Array.prototype.slice,
})(React.Component);
var internals$jscomp$inline_1361 = {
bundleType: 0,
version: "19.0.0-www-classic-65903583-20240805",
version: "19.0.0-www-classic-d48603a5-20240813",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: function () {
return null;
},
reconcilerVersion: "19.0.0-www-classic-65903583-20240805"
reconcilerVersion: "19.0.0-www-classic-d48603a5-20240813"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1362 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand All @@ -10650,4 +10650,4 @@ exports.RadialGradient = RadialGradient;
exports.Shape = TYPES.SHAPE;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.0.0-www-classic-65903583-20240805";
exports.version = "19.0.0-www-classic-d48603a5-20240813";
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 @@ -10132,13 +10132,13 @@ var slice = Array.prototype.slice,
})(React.Component);
var internals$jscomp$inline_1353 = {
bundleType: 0,
version: "19.0.0-www-modern-65903583-20240805",
version: "19.0.0-www-modern-d48603a5-20240813",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: function () {
return null;
},
reconcilerVersion: "19.0.0-www-modern-65903583-20240805"
reconcilerVersion: "19.0.0-www-modern-d48603a5-20240813"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1354 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand All @@ -10164,4 +10164,4 @@ exports.RadialGradient = RadialGradient;
exports.Shape = TYPES.SHAPE;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.0.0-www-modern-65903583-20240805";
exports.version = "19.0.0-www-modern-d48603a5-20240813";
26 changes: 12 additions & 14 deletions compiled/facebook-www/ReactDOM-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -26054,15 +26054,13 @@ __DEV__ &&
mountHookTypesDev();
return mountOptimistic(passthrough);
};
HooksDispatcherOnUpdateInDEV.unstable_useContextWithBailout = function (
context,
select
) {
currentHookNameInDev = "useContext";
warnInvalidHookAccess();
mountHookTypesDev();
return unstable_useContextWithBailout(context, select);
};
InvalidNestedHooksDispatcherOnMountInDEV.unstable_useContextWithBailout =
function (context, select) {
currentHookNameInDev = "useContext";
warnInvalidHookAccess();
mountHookTypesDev();
return unstable_useContextWithBailout(context, select);
};
InvalidNestedHooksDispatcherOnUpdateInDEV = {
readContext: function (context) {
warnInvalidContextAccess();
Expand Down Expand Up @@ -27530,11 +27528,11 @@ __DEV__ &&
: flushSyncErrorInBuildsThatSupportLegacyMode;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.0.0-www-classic-65903583-20240805" !== isomorphicReactPackageVersion)
if ("19.0.0-www-classic-d48603a5-20240813" !== 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.0.0-www-classic-65903583-20240805\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.0.0-www-classic-d48603a5-20240813\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
Expand Down Expand Up @@ -27578,11 +27576,11 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.0.0-www-classic-65903583-20240805",
version: "19.0.0-www-classic-d48603a5-20240813",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getClosestInstanceFromNode,
reconcilerVersion: "19.0.0-www-classic-65903583-20240805"
reconcilerVersion: "19.0.0-www-classic-d48603a5-20240813"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
Expand Down Expand Up @@ -28235,7 +28233,7 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.0.0-www-classic-65903583-20240805";
exports.version = "19.0.0-www-classic-d48603a5-20240813";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
26 changes: 12 additions & 14 deletions compiled/facebook-www/ReactDOM-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -25141,15 +25141,13 @@ __DEV__ &&
mountHookTypesDev();
return mountOptimistic(passthrough);
};
HooksDispatcherOnUpdateInDEV.unstable_useContextWithBailout = function (
context,
select
) {
currentHookNameInDev = "useContext";
warnInvalidHookAccess();
mountHookTypesDev();
return unstable_useContextWithBailout(context, select);
};
InvalidNestedHooksDispatcherOnMountInDEV.unstable_useContextWithBailout =
function (context, select) {
currentHookNameInDev = "useContext";
warnInvalidHookAccess();
mountHookTypesDev();
return unstable_useContextWithBailout(context, select);
};
InvalidNestedHooksDispatcherOnUpdateInDEV = {
readContext: function (context) {
warnInvalidContextAccess();
Expand Down Expand Up @@ -26615,11 +26613,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.0.0-www-modern-65903583-20240805" !== isomorphicReactPackageVersion)
if ("19.0.0-www-modern-d48603a5-20240813" !== 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.0.0-www-modern-65903583-20240805\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.0.0-www-modern-d48603a5-20240813\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
Expand Down Expand Up @@ -26662,11 +26660,11 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.0.0-www-modern-65903583-20240805",
version: "19.0.0-www-modern-d48603a5-20240813",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getClosestInstanceFromNode,
reconcilerVersion: "19.0.0-www-modern-65903583-20240805"
reconcilerVersion: "19.0.0-www-modern-d48603a5-20240813"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
Expand Down Expand Up @@ -27271,7 +27269,7 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.0.0-www-modern-65903583-20240805";
exports.version = "19.0.0-www-modern-d48603a5-20240813";
"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 @@ -17170,14 +17170,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1753 = React.version;
if (
"19.0.0-www-classic-65903583-20240805" !==
"19.0.0-www-classic-d48603a5-20240813" !==
isomorphicReactPackageVersion$jscomp$inline_1753
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1753,
"19.0.0-www-classic-65903583-20240805"
"19.0.0-www-classic-d48603a5-20240813"
)
);
function flushSyncFromReconciler(fn) {
Expand Down Expand Up @@ -17222,11 +17222,11 @@ Internals.Events = [
];
var internals$jscomp$inline_2208 = {
bundleType: 0,
version: "19.0.0-www-classic-65903583-20240805",
version: "19.0.0-www-classic-d48603a5-20240813",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getClosestInstanceFromNode,
reconcilerVersion: "19.0.0-www-classic-65903583-20240805"
reconcilerVersion: "19.0.0-www-classic-d48603a5-20240813"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2209 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down Expand Up @@ -17682,4 +17682,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-www-classic-65903583-20240805";
exports.version = "19.0.0-www-classic-d48603a5-20240813";
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 @@ -16544,14 +16544,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1724 = React.version;
if (
"19.0.0-www-modern-65903583-20240805" !==
"19.0.0-www-modern-d48603a5-20240813" !==
isomorphicReactPackageVersion$jscomp$inline_1724
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1724,
"19.0.0-www-modern-65903583-20240805"
"19.0.0-www-modern-d48603a5-20240813"
)
);
Internals.findDOMNode = function (componentOrElement) {
Expand All @@ -16569,11 +16569,11 @@ Internals.Events = [
];
var internals$jscomp$inline_2199 = {
bundleType: 0,
version: "19.0.0-www-modern-65903583-20240805",
version: "19.0.0-www-modern-d48603a5-20240813",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
findFiberByHostInstance: getClosestInstanceFromNode,
reconcilerVersion: "19.0.0-www-modern-65903583-20240805"
reconcilerVersion: "19.0.0-www-modern-d48603a5-20240813"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2200 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down Expand Up @@ -16936,4 +16936,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-www-modern-65903583-20240805";
exports.version = "19.0.0-www-modern-d48603a5-20240813";
Loading

0 comments on commit b903fc0

Please sign in to comment.