[compiler] enablePreserveExistingMemo memoizes primitive-returning functions (#34343)

`@enablePreserveExistingMemoizationGuarantees` mode currently does not
guarantee memoization of primitive-returning functions. We're often able
to infer that a function returns a primitive based on how its result is
used, for example `foo() + 1` or `object[getIndex()]`, and by default we
do not currently memoize computation that produces a primitive. The
reasoning behind this is that the compiler is primarily focused on
stopping cascading updates — it's fine to recompute a primitive since we
can cheaply compare that primitive and avoid unnecessary downstream
recomputation. But we've gotten a lot of feedback that people find this
surprising, and that sometimes the computation can be expensive enough
that it should be memoized.

This PR changes `@enablePreserveExistingMemoizationGuarantees` mode to
ensure that primitive-returning functions get memoized. Other modes will
not memoize these functions. Separately from this we are considering
enabling this mode by default.

---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with [ReviewStack](https://reviewstack.dev/facebook/react/pull/34343).
* #34347
* #34346
* __->__ #34343
* #34335

DiffTrain build for [735e9ac54e](https://github.com/facebook/react/commit/735e9ac54e5b46e5a963e0e436330baf20fb04c2)
This commit is contained in:
josephsavona
2025-09-03 17:51:11 -07:00
parent 7f822e365f
commit aa31ab17b8
35 changed files with 96 additions and 90 deletions
+10 -4
View File
@@ -41508,7 +41508,8 @@ class CollectDependenciesVisitor extends ReactiveFunctionVisitor {
this.state = state;
this.options = {
memoizeJsxElements: !this.env.config.enableForest,
forceMemoizePrimitives: this.env.config.enableForest,
forceMemoizePrimitives: this.env.config.enableForest ||
this.env.config.enablePreserveExistingMemoizationGuarantees,
};
}
computeMemoizationInputs(value, lvalue) {
@@ -41596,9 +41597,14 @@ class CollectDependenciesVisitor extends ReactiveFunctionVisitor {
case 'JSXText':
case 'BinaryExpression':
case 'UnaryExpression': {
const level = options.forceMemoizePrimitives
? MemoizationLevel.Memoized
: MemoizationLevel.Never;
if (options.forceMemoizePrimitives) {
const level = MemoizationLevel.Memoized;
return {
lvalues: lvalue !== null ? [{ place: lvalue, level }] : [],
rvalues: [...eachReactiveValueOperand(value)],
};
}
const level = MemoizationLevel.Never;
return {
lvalues: lvalue !== null ? [{ place: lvalue, level }] : [],
rvalues: [],
+1 -1
View File
@@ -1 +1 @@
5d64f742114203e4fbdd605ce398696d18901f35
735e9ac54e5b46e5a963e0e436330baf20fb04c2
+1 -1
View File
@@ -1 +1 @@
5d64f742114203e4fbdd605ce398696d18901f35
735e9ac54e5b46e5a963e0e436330baf20fb04c2
+1 -1
View File
@@ -1418,7 +1418,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.2.0-www-classic-5d64f742-20250903";
exports.version = "19.2.0-www-classic-735e9ac5-20250903";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+1 -1
View File
@@ -1418,7 +1418,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.2.0-www-modern-5d64f742-20250903";
exports.version = "19.2.0-www-modern-735e9ac5-20250903";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+1 -1
View File
@@ -600,4 +600,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.2.0-www-classic-5d64f742-20250903";
exports.version = "19.2.0-www-classic-735e9ac5-20250903";
+1 -1
View File
@@ -600,4 +600,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.2.0-www-modern-5d64f742-20250903";
exports.version = "19.2.0-www-modern-735e9ac5-20250903";
@@ -604,7 +604,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.2.0-www-classic-5d64f742-20250903";
exports.version = "19.2.0-www-classic-735e9ac5-20250903";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -604,7 +604,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.2.0-www-modern-5d64f742-20250903";
exports.version = "19.2.0-www-modern-735e9ac5-20250903";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -19708,10 +19708,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.2.0-www-classic-5d64f742-20250903",
version: "19.2.0-www-classic-735e9ac5-20250903",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-5d64f742-20250903"
reconcilerVersion: "19.2.0-www-classic-735e9ac5-20250903"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -19745,7 +19745,7 @@ __DEV__ &&
exports.Shape = Shape;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.2.0-www-classic-5d64f742-20250903";
exports.version = "19.2.0-www-classic-735e9ac5-20250903";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+3 -3
View File
@@ -19479,10 +19479,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.2.0-www-modern-5d64f742-20250903",
version: "19.2.0-www-modern-735e9ac5-20250903",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-5d64f742-20250903"
reconcilerVersion: "19.2.0-www-modern-735e9ac5-20250903"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -19516,7 +19516,7 @@ __DEV__ &&
exports.Shape = Shape;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.2.0-www-modern-5d64f742-20250903";
exports.version = "19.2.0-www-modern-735e9ac5-20250903";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -11419,10 +11419,10 @@ var slice = Array.prototype.slice,
})(React.Component);
var internals$jscomp$inline_1631 = {
bundleType: 0,
version: "19.2.0-www-classic-5d64f742-20250903",
version: "19.2.0-www-classic-735e9ac5-20250903",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-5d64f742-20250903"
reconcilerVersion: "19.2.0-www-classic-735e9ac5-20250903"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1632 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -11448,4 +11448,4 @@ exports.RadialGradient = RadialGradient;
exports.Shape = TYPES.SHAPE;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.2.0-www-classic-5d64f742-20250903";
exports.version = "19.2.0-www-classic-735e9ac5-20250903";
@@ -11131,10 +11131,10 @@ var slice = Array.prototype.slice,
})(React.Component);
var internals$jscomp$inline_1604 = {
bundleType: 0,
version: "19.2.0-www-modern-5d64f742-20250903",
version: "19.2.0-www-modern-735e9ac5-20250903",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-5d64f742-20250903"
reconcilerVersion: "19.2.0-www-modern-735e9ac5-20250903"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1605 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -11160,4 +11160,4 @@ exports.RadialGradient = RadialGradient;
exports.Shape = TYPES.SHAPE;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.2.0-www-modern-5d64f742-20250903";
exports.version = "19.2.0-www-modern-735e9ac5-20250903";
@@ -32312,11 +32312,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-www-classic-5d64f742-20250903" !== isomorphicReactPackageVersion)
if ("19.2.0-www-classic-735e9ac5-20250903" !== 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.2.0-www-classic-5d64f742-20250903\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.2.0-www-classic-735e9ac5-20250903\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -32359,10 +32359,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.2.0-www-classic-5d64f742-20250903",
version: "19.2.0-www-classic-735e9ac5-20250903",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-5d64f742-20250903"
reconcilerVersion: "19.2.0-www-classic-735e9ac5-20250903"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -32974,7 +32974,7 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.2.0-www-classic-5d64f742-20250903";
exports.version = "19.2.0-www-classic-735e9ac5-20250903";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+5 -5
View File
@@ -32097,11 +32097,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-www-modern-5d64f742-20250903" !== isomorphicReactPackageVersion)
if ("19.2.0-www-modern-735e9ac5-20250903" !== 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.2.0-www-modern-5d64f742-20250903\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.2.0-www-modern-735e9ac5-20250903\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -32144,10 +32144,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.2.0-www-modern-5d64f742-20250903",
version: "19.2.0-www-modern-735e9ac5-20250903",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-5d64f742-20250903"
reconcilerVersion: "19.2.0-www-modern-735e9ac5-20250903"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -32759,7 +32759,7 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.2.0-www-modern-5d64f742-20250903";
exports.version = "19.2.0-www-modern-735e9ac5-20250903";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -19780,14 +19780,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_2114 = React.version;
if (
"19.2.0-www-classic-5d64f742-20250903" !==
"19.2.0-www-classic-735e9ac5-20250903" !==
isomorphicReactPackageVersion$jscomp$inline_2114
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2114,
"19.2.0-www-classic-5d64f742-20250903"
"19.2.0-www-classic-735e9ac5-20250903"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -19805,10 +19805,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2746 = {
bundleType: 0,
version: "19.2.0-www-classic-5d64f742-20250903",
version: "19.2.0-www-classic-735e9ac5-20250903",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-5d64f742-20250903"
reconcilerVersion: "19.2.0-www-classic-735e9ac5-20250903"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2747 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -20237,4 +20237,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.2.0-www-classic-5d64f742-20250903";
exports.version = "19.2.0-www-classic-735e9ac5-20250903";
@@ -19509,14 +19509,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_2104 = React.version;
if (
"19.2.0-www-modern-5d64f742-20250903" !==
"19.2.0-www-modern-735e9ac5-20250903" !==
isomorphicReactPackageVersion$jscomp$inline_2104
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2104,
"19.2.0-www-modern-5d64f742-20250903"
"19.2.0-www-modern-735e9ac5-20250903"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -19534,10 +19534,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2728 = {
bundleType: 0,
version: "19.2.0-www-modern-5d64f742-20250903",
version: "19.2.0-www-modern-735e9ac5-20250903",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-5d64f742-20250903"
reconcilerVersion: "19.2.0-www-modern-735e9ac5-20250903"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2729 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -19966,4 +19966,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.2.0-www-modern-5d64f742-20250903";
exports.version = "19.2.0-www-modern-735e9ac5-20250903";
@@ -21834,14 +21834,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_2361 = React.version;
if (
"19.2.0-www-classic-5d64f742-20250903" !==
"19.2.0-www-classic-735e9ac5-20250903" !==
isomorphicReactPackageVersion$jscomp$inline_2361
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2361,
"19.2.0-www-classic-5d64f742-20250903"
"19.2.0-www-classic-735e9ac5-20250903"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -21859,10 +21859,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2363 = {
bundleType: 0,
version: "19.2.0-www-classic-5d64f742-20250903",
version: "19.2.0-www-classic-735e9ac5-20250903",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-5d64f742-20250903"
reconcilerVersion: "19.2.0-www-classic-735e9ac5-20250903"
};
enableSchedulingProfiler &&
((internals$jscomp$inline_2363.getLaneLabelMap = getLaneLabelMap),
@@ -22295,7 +22295,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.2.0-www-classic-5d64f742-20250903";
exports.version = "19.2.0-www-classic-735e9ac5-20250903";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -21628,14 +21628,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_2351 = React.version;
if (
"19.2.0-www-modern-5d64f742-20250903" !==
"19.2.0-www-modern-735e9ac5-20250903" !==
isomorphicReactPackageVersion$jscomp$inline_2351
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2351,
"19.2.0-www-modern-5d64f742-20250903"
"19.2.0-www-modern-735e9ac5-20250903"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -21653,10 +21653,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2353 = {
bundleType: 0,
version: "19.2.0-www-modern-5d64f742-20250903",
version: "19.2.0-www-modern-735e9ac5-20250903",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-5d64f742-20250903"
reconcilerVersion: "19.2.0-www-modern-735e9ac5-20250903"
};
enableSchedulingProfiler &&
((internals$jscomp$inline_2353.getLaneLabelMap = getLaneLabelMap),
@@ -22089,7 +22089,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.2.0-www-modern-5d64f742-20250903";
exports.version = "19.2.0-www-modern-735e9ac5-20250903";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -10163,5 +10163,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.2.0-www-classic-5d64f742-20250903";
exports.version = "19.2.0-www-classic-735e9ac5-20250903";
})();
@@ -10092,5 +10092,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.2.0-www-modern-5d64f742-20250903";
exports.version = "19.2.0-www-modern-735e9ac5-20250903";
})();
@@ -6892,4 +6892,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.2.0-www-classic-5d64f742-20250903";
exports.version = "19.2.0-www-classic-735e9ac5-20250903";
@@ -6825,4 +6825,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.2.0-www-modern-5d64f742-20250903";
exports.version = "19.2.0-www-modern-735e9ac5-20250903";
@@ -32633,11 +32633,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-www-classic-5d64f742-20250903" !== isomorphicReactPackageVersion)
if ("19.2.0-www-classic-735e9ac5-20250903" !== 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.2.0-www-classic-5d64f742-20250903\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.2.0-www-classic-735e9ac5-20250903\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -32680,10 +32680,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.2.0-www-classic-5d64f742-20250903",
version: "19.2.0-www-classic-735e9ac5-20250903",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-5d64f742-20250903"
reconcilerVersion: "19.2.0-www-classic-735e9ac5-20250903"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -33461,5 +33461,5 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.2.0-www-classic-5d64f742-20250903";
exports.version = "19.2.0-www-classic-735e9ac5-20250903";
})();
@@ -32418,11 +32418,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-www-modern-5d64f742-20250903" !== isomorphicReactPackageVersion)
if ("19.2.0-www-modern-735e9ac5-20250903" !== 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.2.0-www-modern-5d64f742-20250903\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.2.0-www-modern-735e9ac5-20250903\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -32465,10 +32465,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.2.0-www-modern-5d64f742-20250903",
version: "19.2.0-www-modern-735e9ac5-20250903",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-5d64f742-20250903"
reconcilerVersion: "19.2.0-www-modern-735e9ac5-20250903"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -33246,5 +33246,5 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.2.0-www-modern-5d64f742-20250903";
exports.version = "19.2.0-www-modern-735e9ac5-20250903";
})();
@@ -20096,14 +20096,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_2143 = React.version;
if (
"19.2.0-www-classic-5d64f742-20250903" !==
"19.2.0-www-classic-735e9ac5-20250903" !==
isomorphicReactPackageVersion$jscomp$inline_2143
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2143,
"19.2.0-www-classic-5d64f742-20250903"
"19.2.0-www-classic-735e9ac5-20250903"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -20121,10 +20121,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2780 = {
bundleType: 0,
version: "19.2.0-www-classic-5d64f742-20250903",
version: "19.2.0-www-classic-735e9ac5-20250903",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-5d64f742-20250903"
reconcilerVersion: "19.2.0-www-classic-735e9ac5-20250903"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2781 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -20704,4 +20704,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.2.0-www-classic-5d64f742-20250903";
exports.version = "19.2.0-www-classic-735e9ac5-20250903";
@@ -19825,14 +19825,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_2133 = React.version;
if (
"19.2.0-www-modern-5d64f742-20250903" !==
"19.2.0-www-modern-735e9ac5-20250903" !==
isomorphicReactPackageVersion$jscomp$inline_2133
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2133,
"19.2.0-www-modern-5d64f742-20250903"
"19.2.0-www-modern-735e9ac5-20250903"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -19850,10 +19850,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2762 = {
bundleType: 0,
version: "19.2.0-www-modern-5d64f742-20250903",
version: "19.2.0-www-modern-735e9ac5-20250903",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-5d64f742-20250903"
reconcilerVersion: "19.2.0-www-modern-735e9ac5-20250903"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2763 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -20433,4 +20433,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.2.0-www-modern-5d64f742-20250903";
exports.version = "19.2.0-www-modern-735e9ac5-20250903";
@@ -22572,7 +22572,7 @@ __DEV__ &&
version: rendererVersion,
rendererPackageName: rendererPackageName,
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-5d64f742-20250903"
reconcilerVersion: "19.2.0-www-classic-735e9ac5-20250903"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -22352,7 +22352,7 @@ __DEV__ &&
version: rendererVersion,
rendererPackageName: rendererPackageName,
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-5d64f742-20250903"
reconcilerVersion: "19.2.0-www-modern-735e9ac5-20250903"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -14163,7 +14163,7 @@ module.exports = function ($$$config) {
version: rendererVersion,
rendererPackageName: rendererPackageName,
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-5d64f742-20250903"
reconcilerVersion: "19.2.0-www-classic-735e9ac5-20250903"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -13880,7 +13880,7 @@ module.exports = function ($$$config) {
version: rendererVersion,
rendererPackageName: rendererPackageName,
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-5d64f742-20250903"
reconcilerVersion: "19.2.0-www-modern-735e9ac5-20250903"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -15571,10 +15571,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.2.0-www-classic-5d64f742-20250903",
version: "19.2.0-www-classic-735e9ac5-20250903",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-5d64f742-20250903"
reconcilerVersion: "19.2.0-www-classic-735e9ac5-20250903"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -15709,5 +15709,5 @@ __DEV__ &&
exports.unstable_batchedUpdates = function (fn, a) {
return fn(a);
};
exports.version = "19.2.0-www-classic-5d64f742-20250903";
exports.version = "19.2.0-www-classic-735e9ac5-20250903";
})();
@@ -15571,10 +15571,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.2.0-www-modern-5d64f742-20250903",
version: "19.2.0-www-modern-735e9ac5-20250903",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-5d64f742-20250903"
reconcilerVersion: "19.2.0-www-modern-735e9ac5-20250903"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -15709,5 +15709,5 @@ __DEV__ &&
exports.unstable_batchedUpdates = function (fn, a) {
return fn(a);
};
exports.version = "19.2.0-www-modern-5d64f742-20250903";
exports.version = "19.2.0-www-modern-735e9ac5-20250903";
})();
+1 -1
View File
@@ -1 +1 @@
19.2.0-www-classic-5d64f742-20250903
19.2.0-www-classic-735e9ac5-20250903
+1 -1
View File
@@ -1 +1 @@
19.2.0-www-modern-5d64f742-20250903
19.2.0-www-modern-735e9ac5-20250903