mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[compiler][bugfix] Returned functions are not always frozen (#33047)
Fixes an edge case in React Compiler's effects inference model.
Returned values should only be typed as 'frozen' if they are (1) local
and (2) not a function expression which may capture and mutate this
function's outer context. See test fixtures for details
---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with [ReviewStack](https://reviewstack.dev/facebook/react/pull/33047).
* #32765
* #32747
* __->__ #33047
DiffTrain build for [12f4cb85c5](https://github.com/facebook/react/commit/12f4cb85c5847758ece81fc95b7eaedc1fb9ebd0)
This commit is contained in:
@@ -45941,7 +45941,7 @@ function getWriteErrorReason(abstractValue) {
|
||||
}
|
||||
}
|
||||
|
||||
var _InferenceState_values, _InferenceState_variables;
|
||||
var _InferenceState_isFunctionExpression, _InferenceState_values, _InferenceState_variables;
|
||||
const UndefinedValue = {
|
||||
kind: 'Primitive',
|
||||
loc: GeneratedSource,
|
||||
@@ -45949,7 +45949,7 @@ const UndefinedValue = {
|
||||
};
|
||||
function inferReferenceEffects(fn, options = { isFunctionExpression: false }) {
|
||||
var _a;
|
||||
const initialState = InferenceState.empty(fn.env);
|
||||
const initialState = InferenceState.empty(fn.env, options.isFunctionExpression);
|
||||
const value = {
|
||||
kind: 'Primitive',
|
||||
loc: fn.loc,
|
||||
@@ -46070,15 +46070,20 @@ function inferReferenceEffects(fn, options = { isFunctionExpression: false }) {
|
||||
}
|
||||
}
|
||||
class InferenceState {
|
||||
constructor(env, values, variables) {
|
||||
constructor(env, isFunctionExpression, values, variables) {
|
||||
_InferenceState_isFunctionExpression.set(this, void 0);
|
||||
_InferenceState_values.set(this, void 0);
|
||||
_InferenceState_variables.set(this, void 0);
|
||||
this.env = env;
|
||||
__classPrivateFieldSet(this, _InferenceState_isFunctionExpression, isFunctionExpression, "f");
|
||||
__classPrivateFieldSet(this, _InferenceState_values, values, "f");
|
||||
__classPrivateFieldSet(this, _InferenceState_variables, variables, "f");
|
||||
}
|
||||
static empty(env) {
|
||||
return new InferenceState(env, new Map(), new Map());
|
||||
static empty(env, isFunctionExpression) {
|
||||
return new InferenceState(env, isFunctionExpression, new Map(), new Map());
|
||||
}
|
||||
get isFunctionExpression() {
|
||||
return __classPrivateFieldGet(this, _InferenceState_isFunctionExpression, "f");
|
||||
}
|
||||
initialize(value, kind) {
|
||||
CompilerError.invariant(value.kind !== 'LoadLocal', {
|
||||
@@ -46332,11 +46337,11 @@ class InferenceState {
|
||||
return null;
|
||||
}
|
||||
else {
|
||||
return new InferenceState(this.env, nextValues !== null && nextValues !== void 0 ? nextValues : new Map(__classPrivateFieldGet(this, _InferenceState_values, "f")), nextVariables !== null && nextVariables !== void 0 ? nextVariables : new Map(__classPrivateFieldGet(this, _InferenceState_variables, "f")));
|
||||
return new InferenceState(this.env, __classPrivateFieldGet(this, _InferenceState_isFunctionExpression, "f"), nextValues !== null && nextValues !== void 0 ? nextValues : new Map(__classPrivateFieldGet(this, _InferenceState_values, "f")), nextVariables !== null && nextVariables !== void 0 ? nextVariables : new Map(__classPrivateFieldGet(this, _InferenceState_variables, "f")));
|
||||
}
|
||||
}
|
||||
clone() {
|
||||
return new InferenceState(this.env, new Map(__classPrivateFieldGet(this, _InferenceState_values, "f")), new Map(__classPrivateFieldGet(this, _InferenceState_variables, "f")));
|
||||
return new InferenceState(this.env, __classPrivateFieldGet(this, _InferenceState_isFunctionExpression, "f"), new Map(__classPrivateFieldGet(this, _InferenceState_values, "f")), new Map(__classPrivateFieldGet(this, _InferenceState_variables, "f")));
|
||||
}
|
||||
debug() {
|
||||
const result = { values: {}, variables: {} };
|
||||
@@ -46373,7 +46378,7 @@ class InferenceState {
|
||||
}
|
||||
}
|
||||
}
|
||||
_InferenceState_values = new WeakMap(), _InferenceState_variables = new WeakMap();
|
||||
_InferenceState_isFunctionExpression = new WeakMap(), _InferenceState_values = new WeakMap(), _InferenceState_variables = new WeakMap();
|
||||
function inferParam(param, initialState, paramKind) {
|
||||
let value;
|
||||
let place;
|
||||
@@ -47064,7 +47069,9 @@ function inferBlock(env, state, block, functionEffects) {
|
||||
let effect;
|
||||
if (block.terminal.kind === 'return' || block.terminal.kind === 'throw') {
|
||||
if (state.isDefined(operand) &&
|
||||
state.kind(operand).kind === ValueKind.Context) {
|
||||
((operand.identifier.type.kind === 'Function' &&
|
||||
state.isFunctionExpression) ||
|
||||
state.kind(operand).kind === ValueKind.Context)) {
|
||||
effect = Effect.ConditionallyMutate;
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -1 +1 @@
|
||||
49ea8bf5698f017022517be79f5f53e6f6a4dad3
|
||||
12f4cb85c5847758ece81fc95b7eaedc1fb9ebd0
|
||||
|
||||
@@ -1 +1 @@
|
||||
49ea8bf5698f017022517be79f5f53e6f6a4dad3
|
||||
12f4cb85c5847758ece81fc95b7eaedc1fb9ebd0
|
||||
|
||||
@@ -1538,7 +1538,7 @@ __DEV__ &&
|
||||
exports.useTransition = function () {
|
||||
return resolveDispatcher().useTransition();
|
||||
};
|
||||
exports.version = "19.2.0-www-classic-49ea8bf5-20250430";
|
||||
exports.version = "19.2.0-www-classic-12f4cb85-20250430";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -1538,7 +1538,7 @@ __DEV__ &&
|
||||
exports.useTransition = function () {
|
||||
return resolveDispatcher().useTransition();
|
||||
};
|
||||
exports.version = "19.2.0-www-modern-49ea8bf5-20250430";
|
||||
exports.version = "19.2.0-www-modern-12f4cb85-20250430";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -636,4 +636,4 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactSharedInternals.H.useTransition();
|
||||
};
|
||||
exports.version = "19.2.0-www-classic-49ea8bf5-20250430";
|
||||
exports.version = "19.2.0-www-classic-12f4cb85-20250430";
|
||||
|
||||
@@ -636,4 +636,4 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactSharedInternals.H.useTransition();
|
||||
};
|
||||
exports.version = "19.2.0-www-modern-49ea8bf5-20250430";
|
||||
exports.version = "19.2.0-www-modern-12f4cb85-20250430";
|
||||
|
||||
@@ -640,7 +640,7 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactSharedInternals.H.useTransition();
|
||||
};
|
||||
exports.version = "19.2.0-www-classic-49ea8bf5-20250430";
|
||||
exports.version = "19.2.0-www-classic-12f4cb85-20250430";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -640,7 +640,7 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactSharedInternals.H.useTransition();
|
||||
};
|
||||
exports.version = "19.2.0-www-modern-49ea8bf5-20250430";
|
||||
exports.version = "19.2.0-www-modern-12f4cb85-20250430";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -19014,10 +19014,10 @@ __DEV__ &&
|
||||
(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.2.0-www-classic-49ea8bf5-20250430",
|
||||
version: "19.2.0-www-classic-12f4cb85-20250430",
|
||||
rendererPackageName: "react-art",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-www-classic-49ea8bf5-20250430"
|
||||
reconcilerVersion: "19.2.0-www-classic-12f4cb85-20250430"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -19051,7 +19051,7 @@ __DEV__ &&
|
||||
exports.Shape = Shape;
|
||||
exports.Surface = Surface;
|
||||
exports.Text = Text;
|
||||
exports.version = "19.2.0-www-classic-49ea8bf5-20250430";
|
||||
exports.version = "19.2.0-www-classic-12f4cb85-20250430";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -18786,10 +18786,10 @@ __DEV__ &&
|
||||
(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.2.0-www-modern-49ea8bf5-20250430",
|
||||
version: "19.2.0-www-modern-12f4cb85-20250430",
|
||||
rendererPackageName: "react-art",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-www-modern-49ea8bf5-20250430"
|
||||
reconcilerVersion: "19.2.0-www-modern-12f4cb85-20250430"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -18823,7 +18823,7 @@ __DEV__ &&
|
||||
exports.Shape = Shape;
|
||||
exports.Surface = Surface;
|
||||
exports.Text = Text;
|
||||
exports.version = "19.2.0-www-modern-49ea8bf5-20250430";
|
||||
exports.version = "19.2.0-www-modern-12f4cb85-20250430";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -11412,10 +11412,10 @@ var slice = Array.prototype.slice,
|
||||
})(React.Component);
|
||||
var internals$jscomp$inline_1619 = {
|
||||
bundleType: 0,
|
||||
version: "19.2.0-www-classic-49ea8bf5-20250430",
|
||||
version: "19.2.0-www-classic-12f4cb85-20250430",
|
||||
rendererPackageName: "react-art",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-www-classic-49ea8bf5-20250430"
|
||||
reconcilerVersion: "19.2.0-www-classic-12f4cb85-20250430"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_1620 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -11441,4 +11441,4 @@ exports.RadialGradient = RadialGradient;
|
||||
exports.Shape = TYPES.SHAPE;
|
||||
exports.Surface = Surface;
|
||||
exports.Text = Text;
|
||||
exports.version = "19.2.0-www-classic-49ea8bf5-20250430";
|
||||
exports.version = "19.2.0-www-classic-12f4cb85-20250430";
|
||||
|
||||
@@ -11125,10 +11125,10 @@ var slice = Array.prototype.slice,
|
||||
})(React.Component);
|
||||
var internals$jscomp$inline_1592 = {
|
||||
bundleType: 0,
|
||||
version: "19.2.0-www-modern-49ea8bf5-20250430",
|
||||
version: "19.2.0-www-modern-12f4cb85-20250430",
|
||||
rendererPackageName: "react-art",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-www-modern-49ea8bf5-20250430"
|
||||
reconcilerVersion: "19.2.0-www-modern-12f4cb85-20250430"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_1593 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -11154,4 +11154,4 @@ exports.RadialGradient = RadialGradient;
|
||||
exports.Shape = TYPES.SHAPE;
|
||||
exports.Surface = Surface;
|
||||
exports.Text = Text;
|
||||
exports.version = "19.2.0-www-modern-49ea8bf5-20250430";
|
||||
exports.version = "19.2.0-www-modern-12f4cb85-20250430";
|
||||
|
||||
@@ -31126,11 +31126,11 @@ __DEV__ &&
|
||||
return_targetInst = null;
|
||||
(function () {
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.2.0-www-classic-49ea8bf5-20250430" !== isomorphicReactPackageVersion)
|
||||
if ("19.2.0-www-classic-12f4cb85-20250430" !== 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-49ea8bf5-20250430\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-dom: 19.2.0-www-classic-12f4cb85-20250430\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
})();
|
||||
("function" === typeof Map &&
|
||||
@@ -31173,10 +31173,10 @@ __DEV__ &&
|
||||
!(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.2.0-www-classic-49ea8bf5-20250430",
|
||||
version: "19.2.0-www-classic-12f4cb85-20250430",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-www-classic-49ea8bf5-20250430"
|
||||
reconcilerVersion: "19.2.0-www-classic-12f4cb85-20250430"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -31774,7 +31774,7 @@ __DEV__ &&
|
||||
exports.useFormStatus = function () {
|
||||
return resolveDispatcher().useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.2.0-www-classic-49ea8bf5-20250430";
|
||||
exports.version = "19.2.0-www-classic-12f4cb85-20250430";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -30912,11 +30912,11 @@ __DEV__ &&
|
||||
return_targetInst = null;
|
||||
(function () {
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.2.0-www-modern-49ea8bf5-20250430" !== isomorphicReactPackageVersion)
|
||||
if ("19.2.0-www-modern-12f4cb85-20250430" !== 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-49ea8bf5-20250430\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-dom: 19.2.0-www-modern-12f4cb85-20250430\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
})();
|
||||
("function" === typeof Map &&
|
||||
@@ -30959,10 +30959,10 @@ __DEV__ &&
|
||||
!(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.2.0-www-modern-49ea8bf5-20250430",
|
||||
version: "19.2.0-www-modern-12f4cb85-20250430",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-www-modern-49ea8bf5-20250430"
|
||||
reconcilerVersion: "19.2.0-www-modern-12f4cb85-20250430"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -31560,7 +31560,7 @@ __DEV__ &&
|
||||
exports.useFormStatus = function () {
|
||||
return resolveDispatcher().useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.2.0-www-modern-49ea8bf5-20250430";
|
||||
exports.version = "19.2.0-www-modern-12f4cb85-20250430";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -19446,14 +19446,14 @@ function getCrossOriginStringAs(as, input) {
|
||||
}
|
||||
var isomorphicReactPackageVersion$jscomp$inline_2029 = React.version;
|
||||
if (
|
||||
"19.2.0-www-classic-49ea8bf5-20250430" !==
|
||||
"19.2.0-www-classic-12f4cb85-20250430" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_2029
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_2029,
|
||||
"19.2.0-www-classic-49ea8bf5-20250430"
|
||||
"19.2.0-www-classic-12f4cb85-20250430"
|
||||
)
|
||||
);
|
||||
Internals.findDOMNode = function (componentOrElement) {
|
||||
@@ -19471,10 +19471,10 @@ Internals.Events = [
|
||||
];
|
||||
var internals$jscomp$inline_2635 = {
|
||||
bundleType: 0,
|
||||
version: "19.2.0-www-classic-49ea8bf5-20250430",
|
||||
version: "19.2.0-www-classic-12f4cb85-20250430",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-www-classic-49ea8bf5-20250430"
|
||||
reconcilerVersion: "19.2.0-www-classic-12f4cb85-20250430"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2636 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -19838,4 +19838,4 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.2.0-www-classic-49ea8bf5-20250430";
|
||||
exports.version = "19.2.0-www-classic-12f4cb85-20250430";
|
||||
|
||||
@@ -19175,14 +19175,14 @@ function getCrossOriginStringAs(as, input) {
|
||||
}
|
||||
var isomorphicReactPackageVersion$jscomp$inline_2019 = React.version;
|
||||
if (
|
||||
"19.2.0-www-modern-49ea8bf5-20250430" !==
|
||||
"19.2.0-www-modern-12f4cb85-20250430" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_2019
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_2019,
|
||||
"19.2.0-www-modern-49ea8bf5-20250430"
|
||||
"19.2.0-www-modern-12f4cb85-20250430"
|
||||
)
|
||||
);
|
||||
Internals.findDOMNode = function (componentOrElement) {
|
||||
@@ -19200,10 +19200,10 @@ Internals.Events = [
|
||||
];
|
||||
var internals$jscomp$inline_2617 = {
|
||||
bundleType: 0,
|
||||
version: "19.2.0-www-modern-49ea8bf5-20250430",
|
||||
version: "19.2.0-www-modern-12f4cb85-20250430",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-www-modern-49ea8bf5-20250430"
|
||||
reconcilerVersion: "19.2.0-www-modern-12f4cb85-20250430"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2618 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -19567,4 +19567,4 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.2.0-www-modern-49ea8bf5-20250430";
|
||||
exports.version = "19.2.0-www-modern-12f4cb85-20250430";
|
||||
|
||||
@@ -21420,14 +21420,14 @@ function getCrossOriginStringAs(as, input) {
|
||||
}
|
||||
var isomorphicReactPackageVersion$jscomp$inline_2273 = React.version;
|
||||
if (
|
||||
"19.2.0-www-classic-49ea8bf5-20250430" !==
|
||||
"19.2.0-www-classic-12f4cb85-20250430" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_2273
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_2273,
|
||||
"19.2.0-www-classic-49ea8bf5-20250430"
|
||||
"19.2.0-www-classic-12f4cb85-20250430"
|
||||
)
|
||||
);
|
||||
Internals.findDOMNode = function (componentOrElement) {
|
||||
@@ -21445,10 +21445,10 @@ Internals.Events = [
|
||||
];
|
||||
var internals$jscomp$inline_2275 = {
|
||||
bundleType: 0,
|
||||
version: "19.2.0-www-classic-49ea8bf5-20250430",
|
||||
version: "19.2.0-www-classic-12f4cb85-20250430",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-www-classic-49ea8bf5-20250430"
|
||||
reconcilerVersion: "19.2.0-www-classic-12f4cb85-20250430"
|
||||
};
|
||||
enableSchedulingProfiler &&
|
||||
((internals$jscomp$inline_2275.getLaneLabelMap = getLaneLabelMap),
|
||||
@@ -21815,7 +21815,7 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.2.0-www-classic-49ea8bf5-20250430";
|
||||
exports.version = "19.2.0-www-classic-12f4cb85-20250430";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -21218,14 +21218,14 @@ function getCrossOriginStringAs(as, input) {
|
||||
}
|
||||
var isomorphicReactPackageVersion$jscomp$inline_2263 = React.version;
|
||||
if (
|
||||
"19.2.0-www-modern-49ea8bf5-20250430" !==
|
||||
"19.2.0-www-modern-12f4cb85-20250430" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_2263
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_2263,
|
||||
"19.2.0-www-modern-49ea8bf5-20250430"
|
||||
"19.2.0-www-modern-12f4cb85-20250430"
|
||||
)
|
||||
);
|
||||
Internals.findDOMNode = function (componentOrElement) {
|
||||
@@ -21243,10 +21243,10 @@ Internals.Events = [
|
||||
];
|
||||
var internals$jscomp$inline_2265 = {
|
||||
bundleType: 0,
|
||||
version: "19.2.0-www-modern-49ea8bf5-20250430",
|
||||
version: "19.2.0-www-modern-12f4cb85-20250430",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-www-modern-49ea8bf5-20250430"
|
||||
reconcilerVersion: "19.2.0-www-modern-12f4cb85-20250430"
|
||||
};
|
||||
enableSchedulingProfiler &&
|
||||
((internals$jscomp$inline_2265.getLaneLabelMap = getLaneLabelMap),
|
||||
@@ -21613,7 +21613,7 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.2.0-www-modern-49ea8bf5-20250430";
|
||||
exports.version = "19.2.0-www-modern-12f4cb85-20250430";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -9511,5 +9511,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-49ea8bf5-20250430";
|
||||
exports.version = "19.2.0-www-classic-12f4cb85-20250430";
|
||||
})();
|
||||
|
||||
@@ -9440,5 +9440,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-49ea8bf5-20250430";
|
||||
exports.version = "19.2.0-www-modern-12f4cb85-20250430";
|
||||
})();
|
||||
|
||||
@@ -6268,4 +6268,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-49ea8bf5-20250430";
|
||||
exports.version = "19.2.0-www-classic-12f4cb85-20250430";
|
||||
|
||||
@@ -6180,4 +6180,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-49ea8bf5-20250430";
|
||||
exports.version = "19.2.0-www-modern-12f4cb85-20250430";
|
||||
|
||||
@@ -31447,11 +31447,11 @@ __DEV__ &&
|
||||
return_targetInst = null;
|
||||
(function () {
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.2.0-www-classic-49ea8bf5-20250430" !== isomorphicReactPackageVersion)
|
||||
if ("19.2.0-www-classic-12f4cb85-20250430" !== 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-49ea8bf5-20250430\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-dom: 19.2.0-www-classic-12f4cb85-20250430\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
})();
|
||||
("function" === typeof Map &&
|
||||
@@ -31494,10 +31494,10 @@ __DEV__ &&
|
||||
!(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.2.0-www-classic-49ea8bf5-20250430",
|
||||
version: "19.2.0-www-classic-12f4cb85-20250430",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-www-classic-49ea8bf5-20250430"
|
||||
reconcilerVersion: "19.2.0-www-classic-12f4cb85-20250430"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -32261,5 +32261,5 @@ __DEV__ &&
|
||||
exports.useFormStatus = function () {
|
||||
return resolveDispatcher().useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.2.0-www-classic-49ea8bf5-20250430";
|
||||
exports.version = "19.2.0-www-classic-12f4cb85-20250430";
|
||||
})();
|
||||
|
||||
@@ -31233,11 +31233,11 @@ __DEV__ &&
|
||||
return_targetInst = null;
|
||||
(function () {
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.2.0-www-modern-49ea8bf5-20250430" !== isomorphicReactPackageVersion)
|
||||
if ("19.2.0-www-modern-12f4cb85-20250430" !== 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-49ea8bf5-20250430\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-dom: 19.2.0-www-modern-12f4cb85-20250430\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
})();
|
||||
("function" === typeof Map &&
|
||||
@@ -31280,10 +31280,10 @@ __DEV__ &&
|
||||
!(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.2.0-www-modern-49ea8bf5-20250430",
|
||||
version: "19.2.0-www-modern-12f4cb85-20250430",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-www-modern-49ea8bf5-20250430"
|
||||
reconcilerVersion: "19.2.0-www-modern-12f4cb85-20250430"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -32047,5 +32047,5 @@ __DEV__ &&
|
||||
exports.useFormStatus = function () {
|
||||
return resolveDispatcher().useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.2.0-www-modern-49ea8bf5-20250430";
|
||||
exports.version = "19.2.0-www-modern-12f4cb85-20250430";
|
||||
})();
|
||||
|
||||
@@ -19762,14 +19762,14 @@ function getCrossOriginStringAs(as, input) {
|
||||
}
|
||||
var isomorphicReactPackageVersion$jscomp$inline_2058 = React.version;
|
||||
if (
|
||||
"19.2.0-www-classic-49ea8bf5-20250430" !==
|
||||
"19.2.0-www-classic-12f4cb85-20250430" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_2058
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_2058,
|
||||
"19.2.0-www-classic-49ea8bf5-20250430"
|
||||
"19.2.0-www-classic-12f4cb85-20250430"
|
||||
)
|
||||
);
|
||||
Internals.findDOMNode = function (componentOrElement) {
|
||||
@@ -19787,10 +19787,10 @@ Internals.Events = [
|
||||
];
|
||||
var internals$jscomp$inline_2669 = {
|
||||
bundleType: 0,
|
||||
version: "19.2.0-www-classic-49ea8bf5-20250430",
|
||||
version: "19.2.0-www-classic-12f4cb85-20250430",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-www-classic-49ea8bf5-20250430"
|
||||
reconcilerVersion: "19.2.0-www-classic-12f4cb85-20250430"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2670 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -20305,4 +20305,4 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.2.0-www-classic-49ea8bf5-20250430";
|
||||
exports.version = "19.2.0-www-classic-12f4cb85-20250430";
|
||||
|
||||
@@ -19491,14 +19491,14 @@ function getCrossOriginStringAs(as, input) {
|
||||
}
|
||||
var isomorphicReactPackageVersion$jscomp$inline_2048 = React.version;
|
||||
if (
|
||||
"19.2.0-www-modern-49ea8bf5-20250430" !==
|
||||
"19.2.0-www-modern-12f4cb85-20250430" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_2048
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_2048,
|
||||
"19.2.0-www-modern-49ea8bf5-20250430"
|
||||
"19.2.0-www-modern-12f4cb85-20250430"
|
||||
)
|
||||
);
|
||||
Internals.findDOMNode = function (componentOrElement) {
|
||||
@@ -19516,10 +19516,10 @@ Internals.Events = [
|
||||
];
|
||||
var internals$jscomp$inline_2651 = {
|
||||
bundleType: 0,
|
||||
version: "19.2.0-www-modern-49ea8bf5-20250430",
|
||||
version: "19.2.0-www-modern-12f4cb85-20250430",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-www-modern-49ea8bf5-20250430"
|
||||
reconcilerVersion: "19.2.0-www-modern-12f4cb85-20250430"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2652 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -20034,4 +20034,4 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.2.0-www-modern-49ea8bf5-20250430";
|
||||
exports.version = "19.2.0-www-modern-12f4cb85-20250430";
|
||||
|
||||
@@ -21845,7 +21845,7 @@ __DEV__ &&
|
||||
version: rendererVersion,
|
||||
rendererPackageName: rendererPackageName,
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-www-classic-49ea8bf5-20250430"
|
||||
reconcilerVersion: "19.2.0-www-classic-12f4cb85-20250430"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
@@ -21626,7 +21626,7 @@ __DEV__ &&
|
||||
version: rendererVersion,
|
||||
rendererPackageName: rendererPackageName,
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-www-modern-49ea8bf5-20250430"
|
||||
reconcilerVersion: "19.2.0-www-modern-12f4cb85-20250430"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
@@ -14088,7 +14088,7 @@ module.exports = function ($$$config) {
|
||||
version: rendererVersion,
|
||||
rendererPackageName: rendererPackageName,
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-www-classic-49ea8bf5-20250430"
|
||||
reconcilerVersion: "19.2.0-www-classic-12f4cb85-20250430"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
@@ -13805,7 +13805,7 @@ module.exports = function ($$$config) {
|
||||
version: rendererVersion,
|
||||
rendererPackageName: rendererPackageName,
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-www-modern-49ea8bf5-20250430"
|
||||
reconcilerVersion: "19.2.0-www-modern-12f4cb85-20250430"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
@@ -15341,10 +15341,10 @@ __DEV__ &&
|
||||
(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.2.0-www-classic-49ea8bf5-20250430",
|
||||
version: "19.2.0-www-classic-12f4cb85-20250430",
|
||||
rendererPackageName: "react-test-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-www-classic-49ea8bf5-20250430"
|
||||
reconcilerVersion: "19.2.0-www-classic-12f4cb85-20250430"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -15479,5 +15479,5 @@ __DEV__ &&
|
||||
exports.unstable_batchedUpdates = function (fn, a) {
|
||||
return fn(a);
|
||||
};
|
||||
exports.version = "19.2.0-www-classic-49ea8bf5-20250430";
|
||||
exports.version = "19.2.0-www-classic-12f4cb85-20250430";
|
||||
})();
|
||||
|
||||
@@ -15341,10 +15341,10 @@ __DEV__ &&
|
||||
(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.2.0-www-modern-49ea8bf5-20250430",
|
||||
version: "19.2.0-www-modern-12f4cb85-20250430",
|
||||
rendererPackageName: "react-test-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-www-modern-49ea8bf5-20250430"
|
||||
reconcilerVersion: "19.2.0-www-modern-12f4cb85-20250430"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -15479,5 +15479,5 @@ __DEV__ &&
|
||||
exports.unstable_batchedUpdates = function (fn, a) {
|
||||
return fn(a);
|
||||
};
|
||||
exports.version = "19.2.0-www-modern-49ea8bf5-20250430";
|
||||
exports.version = "19.2.0-www-modern-12f4cb85-20250430";
|
||||
})();
|
||||
|
||||
@@ -1 +1 @@
|
||||
19.2.0-www-classic-49ea8bf5-20250430
|
||||
19.2.0-www-classic-12f4cb85-20250430
|
||||
@@ -1 +1 @@
|
||||
19.2.0-www-modern-49ea8bf5-20250430
|
||||
19.2.0-www-modern-12f4cb85-20250430
|
||||
Reference in New Issue
Block a user