mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[Fresh] Always reset useMemoCache on Fast Refresh (#30700)
Stacked on https://github.com/facebook/react/pull/30662.
Alternative to https://github.com/facebook/react/pull/30663 and
https://github.com/facebook/react/pull/30677.
During a Fast Refresh, we always want to evict the memo cache, same as
we do with normal `useMemo`. The mechanism used by `useMemo` and other
Hooks is this module-level variable:
https://github.com/facebook/react/blob/fca5d655d78917400a2722287351c20938166669/packages/react-reconciler/src/ReactFiberHooks.js#L304-L307
which has DEV-only behavior as if the dependencies are always different:
https://github.com/facebook/react/blob/fca5d655d78917400a2722287351c20938166669/packages/react-reconciler/src/ReactFiberHooks.js#L451-L460
The `useMemoCache` Hook doesn't use a dependency array but conceptually
I think we want the same behavior.
## Test Plan
The test passes.
---------
Co-authored-by: Lauren Tan <poteto@users.noreply.github.com>
DiffTrain build for [7e8a06cf4c](https://github.com/facebook/react/commit/7e8a06cf4c628be45171da52c1a8e97f9869b7ee)
This commit is contained in:
@@ -1 +1 @@
|
||||
0ad0fac1dc11db8d5a6831987fb0324cd6d59498
|
||||
7e8a06cf4c628be45171da52c1a8e97f9869b7ee
|
||||
|
||||
@@ -1 +1 @@
|
||||
0ad0fac1dc11db8d5a6831987fb0324cd6d59498
|
||||
7e8a06cf4c628be45171da52c1a8e97f9869b7ee
|
||||
|
||||
@@ -2001,7 +2001,7 @@ __DEV__ &&
|
||||
exports.useTransition = function () {
|
||||
return resolveDispatcher().useTransition();
|
||||
};
|
||||
exports.version = "19.0.0-www-classic-0ad0fac1-20240814";
|
||||
exports.version = "19.0.0-www-classic-7e8a06cf-20240815";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -1981,7 +1981,7 @@ __DEV__ &&
|
||||
exports.useTransition = function () {
|
||||
return resolveDispatcher().useTransition();
|
||||
};
|
||||
exports.version = "19.0.0-www-modern-0ad0fac1-20240814";
|
||||
exports.version = "19.0.0-www-modern-7e8a06cf-20240815";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -665,4 +665,4 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactSharedInternals.H.useTransition();
|
||||
};
|
||||
exports.version = "19.0.0-www-classic-0ad0fac1-20240814";
|
||||
exports.version = "19.0.0-www-classic-7e8a06cf-20240815";
|
||||
|
||||
@@ -665,4 +665,4 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactSharedInternals.H.useTransition();
|
||||
};
|
||||
exports.version = "19.0.0-www-modern-0ad0fac1-20240814";
|
||||
exports.version = "19.0.0-www-modern-7e8a06cf-20240815";
|
||||
|
||||
@@ -669,7 +669,7 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactSharedInternals.H.useTransition();
|
||||
};
|
||||
exports.version = "19.0.0-www-classic-0ad0fac1-20240814";
|
||||
exports.version = "19.0.0-www-classic-7e8a06cf-20240815";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -669,7 +669,7 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactSharedInternals.H.useTransition();
|
||||
};
|
||||
exports.version = "19.0.0-www-modern-0ad0fac1-20240814";
|
||||
exports.version = "19.0.0-www-modern-7e8a06cf-20240815";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -4212,7 +4212,7 @@ __DEV__ &&
|
||||
(currentlyRenderingFiber$1.updateQueue = updateQueue));
|
||||
updateQueue.memoCache = memoCache;
|
||||
updateQueue = memoCache.data[memoCache.index];
|
||||
if (void 0 === updateQueue)
|
||||
if (void 0 === updateQueue || ignorePreviousDependencies)
|
||||
for (
|
||||
updateQueue = memoCache.data[memoCache.index] = Array(size),
|
||||
current = 0;
|
||||
@@ -16776,11 +16776,11 @@ __DEV__ &&
|
||||
(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.0.0-www-classic-0ad0fac1-20240814",
|
||||
version: "19.0.0-www-classic-7e8a06cf-20240815",
|
||||
rendererPackageName: "react-art",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: getInstanceFromNode,
|
||||
reconcilerVersion: "19.0.0-www-classic-0ad0fac1-20240814"
|
||||
reconcilerVersion: "19.0.0-www-classic-7e8a06cf-20240815"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -16814,7 +16814,7 @@ __DEV__ &&
|
||||
exports.Shape = Shape;
|
||||
exports.Surface = Surface;
|
||||
exports.Text = Text;
|
||||
exports.version = "19.0.0-www-classic-0ad0fac1-20240814";
|
||||
exports.version = "19.0.0-www-classic-7e8a06cf-20240815";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -4088,7 +4088,7 @@ __DEV__ &&
|
||||
(currentlyRenderingFiber$1.updateQueue = updateQueue));
|
||||
updateQueue.memoCache = memoCache;
|
||||
updateQueue = memoCache.data[memoCache.index];
|
||||
if (void 0 === updateQueue)
|
||||
if (void 0 === updateQueue || ignorePreviousDependencies)
|
||||
for (
|
||||
updateQueue = memoCache.data[memoCache.index] = Array(size),
|
||||
current = 0;
|
||||
@@ -16189,11 +16189,11 @@ __DEV__ &&
|
||||
(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.0.0-www-modern-0ad0fac1-20240814",
|
||||
version: "19.0.0-www-modern-7e8a06cf-20240815",
|
||||
rendererPackageName: "react-art",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: getInstanceFromNode,
|
||||
reconcilerVersion: "19.0.0-www-modern-0ad0fac1-20240814"
|
||||
reconcilerVersion: "19.0.0-www-modern-7e8a06cf-20240815"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -16227,7 +16227,7 @@ __DEV__ &&
|
||||
exports.Shape = Shape;
|
||||
exports.Surface = Surface;
|
||||
exports.Text = Text;
|
||||
exports.version = "19.0.0-www-modern-0ad0fac1-20240814";
|
||||
exports.version = "19.0.0-www-modern-7e8a06cf-20240815";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -10618,13 +10618,13 @@ var slice = Array.prototype.slice,
|
||||
})(React.Component);
|
||||
var internals$jscomp$inline_1361 = {
|
||||
bundleType: 0,
|
||||
version: "19.0.0-www-classic-0ad0fac1-20240814",
|
||||
version: "19.0.0-www-classic-7e8a06cf-20240815",
|
||||
rendererPackageName: "react-art",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: function () {
|
||||
return null;
|
||||
},
|
||||
reconcilerVersion: "19.0.0-www-classic-0ad0fac1-20240814"
|
||||
reconcilerVersion: "19.0.0-www-classic-7e8a06cf-20240815"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_1362 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -10650,4 +10650,4 @@ exports.RadialGradient = RadialGradient;
|
||||
exports.Shape = TYPES.SHAPE;
|
||||
exports.Surface = Surface;
|
||||
exports.Text = Text;
|
||||
exports.version = "19.0.0-www-classic-0ad0fac1-20240814";
|
||||
exports.version = "19.0.0-www-classic-7e8a06cf-20240815";
|
||||
|
||||
@@ -10132,13 +10132,13 @@ var slice = Array.prototype.slice,
|
||||
})(React.Component);
|
||||
var internals$jscomp$inline_1353 = {
|
||||
bundleType: 0,
|
||||
version: "19.0.0-www-modern-0ad0fac1-20240814",
|
||||
version: "19.0.0-www-modern-7e8a06cf-20240815",
|
||||
rendererPackageName: "react-art",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: function () {
|
||||
return null;
|
||||
},
|
||||
reconcilerVersion: "19.0.0-www-modern-0ad0fac1-20240814"
|
||||
reconcilerVersion: "19.0.0-www-modern-7e8a06cf-20240815"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_1354 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -10164,4 +10164,4 @@ exports.RadialGradient = RadialGradient;
|
||||
exports.Shape = TYPES.SHAPE;
|
||||
exports.Surface = Surface;
|
||||
exports.Text = Text;
|
||||
exports.version = "19.0.0-www-modern-0ad0fac1-20240814";
|
||||
exports.version = "19.0.0-www-modern-7e8a06cf-20240815";
|
||||
|
||||
@@ -6006,7 +6006,7 @@ __DEV__ &&
|
||||
(currentlyRenderingFiber$1.updateQueue = updateQueue));
|
||||
updateQueue.memoCache = memoCache;
|
||||
updateQueue = memoCache.data[memoCache.index];
|
||||
if (void 0 === updateQueue)
|
||||
if (void 0 === updateQueue || ignorePreviousDependencies)
|
||||
for (
|
||||
updateQueue = memoCache.data[memoCache.index] = Array(size),
|
||||
current = 0;
|
||||
@@ -27528,11 +27528,11 @@ __DEV__ &&
|
||||
: flushSyncErrorInBuildsThatSupportLegacyMode;
|
||||
(function () {
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.0.0-www-classic-0ad0fac1-20240814" !== isomorphicReactPackageVersion)
|
||||
if ("19.0.0-www-classic-7e8a06cf-20240815" !== 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-0ad0fac1-20240814\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-dom: 19.0.0-www-classic-7e8a06cf-20240815\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
})();
|
||||
("function" === typeof Map &&
|
||||
@@ -27576,11 +27576,11 @@ __DEV__ &&
|
||||
!(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.0.0-www-classic-0ad0fac1-20240814",
|
||||
version: "19.0.0-www-classic-7e8a06cf-20240815",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: getClosestInstanceFromNode,
|
||||
reconcilerVersion: "19.0.0-www-classic-0ad0fac1-20240814"
|
||||
reconcilerVersion: "19.0.0-www-classic-7e8a06cf-20240815"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -28233,7 +28233,7 @@ __DEV__ &&
|
||||
exports.useFormStatus = function () {
|
||||
return resolveDispatcher().useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.0.0-www-classic-0ad0fac1-20240814";
|
||||
exports.version = "19.0.0-www-classic-7e8a06cf-20240815";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -5864,7 +5864,7 @@ __DEV__ &&
|
||||
(currentlyRenderingFiber$1.updateQueue = updateQueue));
|
||||
updateQueue.memoCache = memoCache;
|
||||
updateQueue = memoCache.data[memoCache.index];
|
||||
if (void 0 === updateQueue)
|
||||
if (void 0 === updateQueue || ignorePreviousDependencies)
|
||||
for (
|
||||
updateQueue = memoCache.data[memoCache.index] = Array(size),
|
||||
current = 0;
|
||||
@@ -26613,11 +26613,11 @@ __DEV__ &&
|
||||
return_targetInst = null;
|
||||
(function () {
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.0.0-www-modern-0ad0fac1-20240814" !== isomorphicReactPackageVersion)
|
||||
if ("19.0.0-www-modern-7e8a06cf-20240815" !== 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-0ad0fac1-20240814\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-dom: 19.0.0-www-modern-7e8a06cf-20240815\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
})();
|
||||
("function" === typeof Map &&
|
||||
@@ -26660,11 +26660,11 @@ __DEV__ &&
|
||||
!(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.0.0-www-modern-0ad0fac1-20240814",
|
||||
version: "19.0.0-www-modern-7e8a06cf-20240815",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: getClosestInstanceFromNode,
|
||||
reconcilerVersion: "19.0.0-www-modern-0ad0fac1-20240814"
|
||||
reconcilerVersion: "19.0.0-www-modern-7e8a06cf-20240815"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -27269,7 +27269,7 @@ __DEV__ &&
|
||||
exports.useFormStatus = function () {
|
||||
return resolveDispatcher().useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.0.0-www-modern-0ad0fac1-20240814";
|
||||
exports.version = "19.0.0-www-modern-7e8a06cf-20240815";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -17170,14 +17170,14 @@ function getCrossOriginStringAs(as, input) {
|
||||
}
|
||||
var isomorphicReactPackageVersion$jscomp$inline_1753 = React.version;
|
||||
if (
|
||||
"19.0.0-www-classic-0ad0fac1-20240814" !==
|
||||
"19.0.0-www-classic-7e8a06cf-20240815" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_1753
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_1753,
|
||||
"19.0.0-www-classic-0ad0fac1-20240814"
|
||||
"19.0.0-www-classic-7e8a06cf-20240815"
|
||||
)
|
||||
);
|
||||
function flushSyncFromReconciler(fn) {
|
||||
@@ -17222,11 +17222,11 @@ Internals.Events = [
|
||||
];
|
||||
var internals$jscomp$inline_2208 = {
|
||||
bundleType: 0,
|
||||
version: "19.0.0-www-classic-0ad0fac1-20240814",
|
||||
version: "19.0.0-www-classic-7e8a06cf-20240815",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: getClosestInstanceFromNode,
|
||||
reconcilerVersion: "19.0.0-www-classic-0ad0fac1-20240814"
|
||||
reconcilerVersion: "19.0.0-www-classic-7e8a06cf-20240815"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2209 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -17682,4 +17682,4 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.0.0-www-classic-0ad0fac1-20240814";
|
||||
exports.version = "19.0.0-www-classic-7e8a06cf-20240815";
|
||||
|
||||
@@ -16544,14 +16544,14 @@ function getCrossOriginStringAs(as, input) {
|
||||
}
|
||||
var isomorphicReactPackageVersion$jscomp$inline_1724 = React.version;
|
||||
if (
|
||||
"19.0.0-www-modern-0ad0fac1-20240814" !==
|
||||
"19.0.0-www-modern-7e8a06cf-20240815" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_1724
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_1724,
|
||||
"19.0.0-www-modern-0ad0fac1-20240814"
|
||||
"19.0.0-www-modern-7e8a06cf-20240815"
|
||||
)
|
||||
);
|
||||
Internals.findDOMNode = function (componentOrElement) {
|
||||
@@ -16569,11 +16569,11 @@ Internals.Events = [
|
||||
];
|
||||
var internals$jscomp$inline_2199 = {
|
||||
bundleType: 0,
|
||||
version: "19.0.0-www-modern-0ad0fac1-20240814",
|
||||
version: "19.0.0-www-modern-7e8a06cf-20240815",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: getClosestInstanceFromNode,
|
||||
reconcilerVersion: "19.0.0-www-modern-0ad0fac1-20240814"
|
||||
reconcilerVersion: "19.0.0-www-modern-7e8a06cf-20240815"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2200 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -16936,4 +16936,4 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.0.0-www-modern-0ad0fac1-20240814";
|
||||
exports.version = "19.0.0-www-modern-7e8a06cf-20240815";
|
||||
|
||||
@@ -17949,14 +17949,14 @@ function getCrossOriginStringAs(as, input) {
|
||||
}
|
||||
var isomorphicReactPackageVersion$jscomp$inline_1841 = React.version;
|
||||
if (
|
||||
"19.0.0-www-classic-0ad0fac1-20240814" !==
|
||||
"19.0.0-www-classic-7e8a06cf-20240815" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_1841
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_1841,
|
||||
"19.0.0-www-classic-0ad0fac1-20240814"
|
||||
"19.0.0-www-classic-7e8a06cf-20240815"
|
||||
)
|
||||
);
|
||||
function flushSyncFromReconciler(fn) {
|
||||
@@ -18001,11 +18001,11 @@ Internals.Events = [
|
||||
];
|
||||
var internals$jscomp$inline_1848 = {
|
||||
bundleType: 0,
|
||||
version: "19.0.0-www-classic-0ad0fac1-20240814",
|
||||
version: "19.0.0-www-classic-7e8a06cf-20240815",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: getClosestInstanceFromNode,
|
||||
reconcilerVersion: "19.0.0-www-classic-0ad0fac1-20240814"
|
||||
reconcilerVersion: "19.0.0-www-classic-7e8a06cf-20240815"
|
||||
};
|
||||
enableSchedulingProfiler &&
|
||||
((internals$jscomp$inline_1848.getLaneLabelMap = getLaneLabelMap),
|
||||
@@ -18464,7 +18464,7 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.0.0-www-classic-0ad0fac1-20240814";
|
||||
exports.version = "19.0.0-www-classic-7e8a06cf-20240815";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -17306,14 +17306,14 @@ function getCrossOriginStringAs(as, input) {
|
||||
}
|
||||
var isomorphicReactPackageVersion$jscomp$inline_1812 = React.version;
|
||||
if (
|
||||
"19.0.0-www-modern-0ad0fac1-20240814" !==
|
||||
"19.0.0-www-modern-7e8a06cf-20240815" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_1812
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_1812,
|
||||
"19.0.0-www-modern-0ad0fac1-20240814"
|
||||
"19.0.0-www-modern-7e8a06cf-20240815"
|
||||
)
|
||||
);
|
||||
Internals.findDOMNode = function (componentOrElement) {
|
||||
@@ -17331,11 +17331,11 @@ Internals.Events = [
|
||||
];
|
||||
var internals$jscomp$inline_1814 = {
|
||||
bundleType: 0,
|
||||
version: "19.0.0-www-modern-0ad0fac1-20240814",
|
||||
version: "19.0.0-www-modern-7e8a06cf-20240815",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: getClosestInstanceFromNode,
|
||||
reconcilerVersion: "19.0.0-www-modern-0ad0fac1-20240814"
|
||||
reconcilerVersion: "19.0.0-www-modern-7e8a06cf-20240815"
|
||||
};
|
||||
enableSchedulingProfiler &&
|
||||
((internals$jscomp$inline_1814.getLaneLabelMap = getLaneLabelMap),
|
||||
@@ -17701,7 +17701,7 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.0.0-www-modern-0ad0fac1-20240814";
|
||||
exports.version = "19.0.0-www-modern-7e8a06cf-20240815";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -8945,5 +8945,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.0.0-www-classic-0ad0fac1-20240814";
|
||||
exports.version = "19.0.0-www-classic-7e8a06cf-20240815";
|
||||
})();
|
||||
|
||||
@@ -8765,5 +8765,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.0.0-www-modern-0ad0fac1-20240814";
|
||||
exports.version = "19.0.0-www-modern-7e8a06cf-20240815";
|
||||
})();
|
||||
|
||||
@@ -5878,4 +5878,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.0.0-www-classic-0ad0fac1-20240814";
|
||||
exports.version = "19.0.0-www-classic-7e8a06cf-20240815";
|
||||
|
||||
@@ -5791,4 +5791,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.0.0-www-modern-0ad0fac1-20240814";
|
||||
exports.version = "19.0.0-www-modern-7e8a06cf-20240815";
|
||||
|
||||
@@ -6047,7 +6047,7 @@ __DEV__ &&
|
||||
(currentlyRenderingFiber$1.updateQueue = updateQueue));
|
||||
updateQueue.memoCache = memoCache;
|
||||
updateQueue = memoCache.data[memoCache.index];
|
||||
if (void 0 === updateQueue)
|
||||
if (void 0 === updateQueue || ignorePreviousDependencies)
|
||||
for (
|
||||
updateQueue = memoCache.data[memoCache.index] = Array(size),
|
||||
current = 0;
|
||||
@@ -27862,11 +27862,11 @@ __DEV__ &&
|
||||
: flushSyncErrorInBuildsThatSupportLegacyMode;
|
||||
(function () {
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.0.0-www-classic-0ad0fac1-20240814" !== isomorphicReactPackageVersion)
|
||||
if ("19.0.0-www-classic-7e8a06cf-20240815" !== 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-0ad0fac1-20240814\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-dom: 19.0.0-www-classic-7e8a06cf-20240815\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
})();
|
||||
("function" === typeof Map &&
|
||||
@@ -27910,11 +27910,11 @@ __DEV__ &&
|
||||
!(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.0.0-www-classic-0ad0fac1-20240814",
|
||||
version: "19.0.0-www-classic-7e8a06cf-20240815",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: getClosestInstanceFromNode,
|
||||
reconcilerVersion: "19.0.0-www-classic-0ad0fac1-20240814"
|
||||
reconcilerVersion: "19.0.0-www-classic-7e8a06cf-20240815"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -28733,5 +28733,5 @@ __DEV__ &&
|
||||
exports.useFormStatus = function () {
|
||||
return resolveDispatcher().useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.0.0-www-classic-0ad0fac1-20240814";
|
||||
exports.version = "19.0.0-www-classic-7e8a06cf-20240815";
|
||||
})();
|
||||
|
||||
@@ -5905,7 +5905,7 @@ __DEV__ &&
|
||||
(currentlyRenderingFiber$1.updateQueue = updateQueue));
|
||||
updateQueue.memoCache = memoCache;
|
||||
updateQueue = memoCache.data[memoCache.index];
|
||||
if (void 0 === updateQueue)
|
||||
if (void 0 === updateQueue || ignorePreviousDependencies)
|
||||
for (
|
||||
updateQueue = memoCache.data[memoCache.index] = Array(size),
|
||||
current = 0;
|
||||
@@ -26947,11 +26947,11 @@ __DEV__ &&
|
||||
return_targetInst = null;
|
||||
(function () {
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.0.0-www-modern-0ad0fac1-20240814" !== isomorphicReactPackageVersion)
|
||||
if ("19.0.0-www-modern-7e8a06cf-20240815" !== 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-0ad0fac1-20240814\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-dom: 19.0.0-www-modern-7e8a06cf-20240815\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
})();
|
||||
("function" === typeof Map &&
|
||||
@@ -26994,11 +26994,11 @@ __DEV__ &&
|
||||
!(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.0.0-www-modern-0ad0fac1-20240814",
|
||||
version: "19.0.0-www-modern-7e8a06cf-20240815",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: getClosestInstanceFromNode,
|
||||
reconcilerVersion: "19.0.0-www-modern-0ad0fac1-20240814"
|
||||
reconcilerVersion: "19.0.0-www-modern-7e8a06cf-20240815"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -27769,5 +27769,5 @@ __DEV__ &&
|
||||
exports.useFormStatus = function () {
|
||||
return resolveDispatcher().useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.0.0-www-modern-0ad0fac1-20240814";
|
||||
exports.version = "19.0.0-www-modern-7e8a06cf-20240815";
|
||||
})();
|
||||
|
||||
@@ -17499,14 +17499,14 @@ function getCrossOriginStringAs(as, input) {
|
||||
}
|
||||
var isomorphicReactPackageVersion$jscomp$inline_1783 = React.version;
|
||||
if (
|
||||
"19.0.0-www-classic-0ad0fac1-20240814" !==
|
||||
"19.0.0-www-classic-7e8a06cf-20240815" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_1783
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_1783,
|
||||
"19.0.0-www-classic-0ad0fac1-20240814"
|
||||
"19.0.0-www-classic-7e8a06cf-20240815"
|
||||
)
|
||||
);
|
||||
function flushSyncFromReconciler(fn) {
|
||||
@@ -17551,11 +17551,11 @@ Internals.Events = [
|
||||
];
|
||||
var internals$jscomp$inline_2243 = {
|
||||
bundleType: 0,
|
||||
version: "19.0.0-www-classic-0ad0fac1-20240814",
|
||||
version: "19.0.0-www-classic-7e8a06cf-20240815",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: getClosestInstanceFromNode,
|
||||
reconcilerVersion: "19.0.0-www-classic-0ad0fac1-20240814"
|
||||
reconcilerVersion: "19.0.0-www-classic-7e8a06cf-20240815"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2244 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -18162,4 +18162,4 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.0.0-www-classic-0ad0fac1-20240814";
|
||||
exports.version = "19.0.0-www-classic-7e8a06cf-20240815";
|
||||
|
||||
@@ -16873,14 +16873,14 @@ function getCrossOriginStringAs(as, input) {
|
||||
}
|
||||
var isomorphicReactPackageVersion$jscomp$inline_1754 = React.version;
|
||||
if (
|
||||
"19.0.0-www-modern-0ad0fac1-20240814" !==
|
||||
"19.0.0-www-modern-7e8a06cf-20240815" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_1754
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_1754,
|
||||
"19.0.0-www-modern-0ad0fac1-20240814"
|
||||
"19.0.0-www-modern-7e8a06cf-20240815"
|
||||
)
|
||||
);
|
||||
Internals.findDOMNode = function (componentOrElement) {
|
||||
@@ -16898,11 +16898,11 @@ Internals.Events = [
|
||||
];
|
||||
var internals$jscomp$inline_2234 = {
|
||||
bundleType: 0,
|
||||
version: "19.0.0-www-modern-0ad0fac1-20240814",
|
||||
version: "19.0.0-www-modern-7e8a06cf-20240815",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: getClosestInstanceFromNode,
|
||||
reconcilerVersion: "19.0.0-www-modern-0ad0fac1-20240814"
|
||||
reconcilerVersion: "19.0.0-www-modern-7e8a06cf-20240815"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2235 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -17416,4 +17416,4 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.0.0-www-modern-0ad0fac1-20240814";
|
||||
exports.version = "19.0.0-www-modern-7e8a06cf-20240815";
|
||||
|
||||
@@ -4380,7 +4380,7 @@ __DEV__ &&
|
||||
(currentlyRenderingFiber$1.updateQueue = updateQueue));
|
||||
updateQueue.memoCache = memoCache;
|
||||
updateQueue = memoCache.data[memoCache.index];
|
||||
if (void 0 === updateQueue)
|
||||
if (void 0 === updateQueue || ignorePreviousDependencies)
|
||||
for (
|
||||
updateQueue = memoCache.data[memoCache.index] = Array(size),
|
||||
current = 0;
|
||||
@@ -19009,7 +19009,7 @@ __DEV__ &&
|
||||
rendererPackageName: rendererPackageName,
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: getInstanceFromNode,
|
||||
reconcilerVersion: "19.0.0-www-classic-0ad0fac1-20240814"
|
||||
reconcilerVersion: "19.0.0-www-classic-7e8a06cf-20240815"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
@@ -4270,7 +4270,7 @@ __DEV__ &&
|
||||
(currentlyRenderingFiber$1.updateQueue = updateQueue));
|
||||
updateQueue.memoCache = memoCache;
|
||||
updateQueue = memoCache.data[memoCache.index];
|
||||
if (void 0 === updateQueue)
|
||||
if (void 0 === updateQueue || ignorePreviousDependencies)
|
||||
for (
|
||||
updateQueue = memoCache.data[memoCache.index] = Array(size),
|
||||
current = 0;
|
||||
@@ -18371,7 +18371,7 @@ __DEV__ &&
|
||||
rendererPackageName: rendererPackageName,
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: getInstanceFromNode,
|
||||
reconcilerVersion: "19.0.0-www-modern-0ad0fac1-20240814"
|
||||
reconcilerVersion: "19.0.0-www-modern-7e8a06cf-20240815"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
@@ -12649,7 +12649,7 @@ module.exports = function ($$$config) {
|
||||
rendererPackageName: rendererPackageName,
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: getInstanceFromNode,
|
||||
reconcilerVersion: "19.0.0-www-classic-0ad0fac1-20240814"
|
||||
reconcilerVersion: "19.0.0-www-classic-7e8a06cf-20240815"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
@@ -12142,7 +12142,7 @@ module.exports = function ($$$config) {
|
||||
rendererPackageName: rendererPackageName,
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: getInstanceFromNode,
|
||||
reconcilerVersion: "19.0.0-www-modern-0ad0fac1-20240814"
|
||||
reconcilerVersion: "19.0.0-www-modern-7e8a06cf-20240815"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
@@ -3837,7 +3837,7 @@ __DEV__ &&
|
||||
(currentlyRenderingFiber$1.updateQueue = updateQueue));
|
||||
updateQueue.memoCache = memoCache;
|
||||
updateQueue = memoCache.data[memoCache.index];
|
||||
if (void 0 === updateQueue)
|
||||
if (void 0 === updateQueue || ignorePreviousDependencies)
|
||||
for (
|
||||
updateQueue = memoCache.data[memoCache.index] = Array(size),
|
||||
current = 0;
|
||||
@@ -14810,11 +14810,11 @@ __DEV__ &&
|
||||
(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.0.0-www-classic-0ad0fac1-20240814",
|
||||
version: "19.0.0-www-classic-7e8a06cf-20240815",
|
||||
rendererPackageName: "react-test-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: getInstanceFromNode,
|
||||
reconcilerVersion: "19.0.0-www-classic-0ad0fac1-20240814"
|
||||
reconcilerVersion: "19.0.0-www-classic-7e8a06cf-20240815"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -14949,5 +14949,5 @@ __DEV__ &&
|
||||
exports.unstable_batchedUpdates = function (fn, a) {
|
||||
return fn(a);
|
||||
};
|
||||
exports.version = "19.0.0-www-classic-0ad0fac1-20240814";
|
||||
exports.version = "19.0.0-www-classic-7e8a06cf-20240815";
|
||||
})();
|
||||
|
||||
@@ -3837,7 +3837,7 @@ __DEV__ &&
|
||||
(currentlyRenderingFiber$1.updateQueue = updateQueue));
|
||||
updateQueue.memoCache = memoCache;
|
||||
updateQueue = memoCache.data[memoCache.index];
|
||||
if (void 0 === updateQueue)
|
||||
if (void 0 === updateQueue || ignorePreviousDependencies)
|
||||
for (
|
||||
updateQueue = memoCache.data[memoCache.index] = Array(size),
|
||||
current = 0;
|
||||
@@ -14810,11 +14810,11 @@ __DEV__ &&
|
||||
(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.0.0-www-modern-0ad0fac1-20240814",
|
||||
version: "19.0.0-www-modern-7e8a06cf-20240815",
|
||||
rendererPackageName: "react-test-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: getInstanceFromNode,
|
||||
reconcilerVersion: "19.0.0-www-modern-0ad0fac1-20240814"
|
||||
reconcilerVersion: "19.0.0-www-modern-7e8a06cf-20240815"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -14949,5 +14949,5 @@ __DEV__ &&
|
||||
exports.unstable_batchedUpdates = function (fn, a) {
|
||||
return fn(a);
|
||||
};
|
||||
exports.version = "19.0.0-www-modern-0ad0fac1-20240814";
|
||||
exports.version = "19.0.0-www-modern-7e8a06cf-20240815";
|
||||
})();
|
||||
|
||||
@@ -1 +1 @@
|
||||
19.0.0-www-classic-0ad0fac1-20240814
|
||||
19.0.0-www-classic-7e8a06cf-20240815
|
||||
@@ -1 +1 @@
|
||||
19.0.0-www-modern-0ad0fac1-20240814
|
||||
19.0.0-www-modern-7e8a06cf-20240815
|
||||
Reference in New Issue
Block a user