[compiler][bugfix] Don't insert hook guards in retry pipeline (#32665)

Fixing bug from https://github.com/facebook/react/pull/32164 -- prior to
this PR, we inserted hook guards even for functions that bailed out of
compilation.

DiffTrain build for [0962f684a0](https://github.com/facebook/react/commit/0962f684a066df4fd2a7db7489cb1984799ad674)
This commit is contained in:
mofeiZ
2025-03-20 14:45:02 -07:00
parent 56171beb3b
commit 40af6fd39b
35 changed files with 100 additions and 94 deletions
+14 -8
View File
@@ -41898,7 +41898,7 @@ function codegenFunction(fn, { uniqueIdentifiers, fbtOperands, }) {
}
const compiled = compileResult.unwrap();
const hookGuard = fn.env.config.enableEmitHookGuards;
if (hookGuard != null) {
if (hookGuard != null && fn.env.isInferredMemoEnabled) {
compiled.body = libExports.blockStatement([
createHookGuard(hookGuard, compiled.body.body, GuardKind.PushHookGuard, GuardKind.PopHookGuard),
]);
@@ -41925,7 +41925,9 @@ function codegenFunction(fn, { uniqueIdentifiers, fbtOperands, }) {
compiled.body.body.unshift(...preface);
}
const emitInstrumentForget = fn.env.config.enableEmitInstrumentForget;
if (emitInstrumentForget != null && fn.id != null) {
if (emitInstrumentForget != null &&
fn.id != null &&
fn.env.isInferredMemoEnabled) {
let gating;
if (emitInstrumentForget.gating != null &&
emitInstrumentForget.globalGating != null) {
@@ -42136,7 +42138,7 @@ function codegenBlockNoReset(cx, block) {
return libExports.blockStatement(statements);
}
function wrapCacheDep(cx, value) {
if (cx.env.config.enableEmitFreeze != null) {
if (cx.env.config.enableEmitFreeze != null && cx.env.isInferredMemoEnabled) {
return libExports.conditionalExpression(libExports.identifier('true'), libExports.callExpression(libExports.identifier(cx.env.config.enableEmitFreeze.importSpecifierName), [value, libExports.stringLiteral(cx.fnName)]), value);
}
else {
@@ -42826,13 +42828,13 @@ function createHookGuard(guard, stmts, before, after) {
}
return libExports.tryStatement(libExports.blockStatement([createHookGuardImpl(before), ...stmts]), null, libExports.blockStatement([createHookGuardImpl(after)]));
}
function createCallExpression(config, callee, args, loc, isHook) {
function createCallExpression(env, callee, args, loc, isHook) {
const callExpr = libExports.callExpression(callee, args);
if (loc != null && loc != GeneratedSource) {
callExpr.loc = loc;
}
const hookGuard = config.enableEmitHookGuards;
if (hookGuard != null && isHook) {
const hookGuard = env.config.enableEmitHookGuards;
if (hookGuard != null && isHook && env.isInferredMemoEnabled) {
const iife = libExports.functionExpression(null, [], libExports.blockStatement([
createHookGuard(hookGuard, [libExports.returnStatement(callExpr)], GuardKind.AllowHook, GuardKind.DisallowHook),
]));
@@ -42924,7 +42926,7 @@ function codegenInstructionValue(cx, instrValue) {
const isHook = getHookKind(cx.env, instrValue.callee.identifier) != null;
const callee = codegenPlaceToExpression(cx, instrValue.callee);
const args = instrValue.args.map(arg => codegenArgument(cx, arg));
value = createCallExpression(cx.env.config, callee, args, instrValue.loc, isHook);
value = createCallExpression(cx.env, callee, args, instrValue.loc, isHook);
break;
}
case 'OptionalExpression': {
@@ -42983,7 +42985,7 @@ function codegenInstructionValue(cx, instrValue) {
suggestions: null,
});
const args = instrValue.args.map(arg => codegenArgument(cx, arg));
value = createCallExpression(cx.env.config, memberExpr, args, instrValue.loc, isHook);
value = createCallExpression(cx.env, memberExpr, args, instrValue.loc, isHook);
break;
}
case 'NewExpression': {
@@ -54175,6 +54177,10 @@ function compileProgram(program, pass) {
kind: 'compile',
compiledFn: compileFn(fn, environment, fnType, 'no_inferred_memo', useMemoCacheIdentifier.name, pass.opts.logger, pass.filename, pass.code),
};
if (!compileResult.compiledFn.hasFireRewrite &&
!compileResult.compiledFn.hasLoweredContextAccess) {
return null;
}
}
catch (err) {
if (err instanceof CompilerError) {
+1 -1
View File
@@ -1 +1 @@
b630219b1377f3117036b1c6118676c16fdb21b7
0962f684a066df4fd2a7db7489cb1984799ad674
+1 -1
View File
@@ -1 +1 @@
b630219b1377f3117036b1c6118676c16fdb21b7
0962f684a066df4fd2a7db7489cb1984799ad674
+1 -1
View File
@@ -1510,7 +1510,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.1.0-www-classic-b630219b-20250320";
exports.version = "19.1.0-www-classic-0962f684-20250320";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+1 -1
View File
@@ -1510,7 +1510,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.1.0-www-modern-b630219b-20250320";
exports.version = "19.1.0-www-modern-0962f684-20250320";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+1 -1
View File
@@ -641,4 +641,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.1.0-www-classic-b630219b-20250320";
exports.version = "19.1.0-www-classic-0962f684-20250320";
+1 -1
View File
@@ -641,4 +641,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.1.0-www-modern-b630219b-20250320";
exports.version = "19.1.0-www-modern-0962f684-20250320";
@@ -645,7 +645,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.1.0-www-classic-b630219b-20250320";
exports.version = "19.1.0-www-classic-0962f684-20250320";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -645,7 +645,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.1.0-www-modern-b630219b-20250320";
exports.version = "19.1.0-www-modern-0962f684-20250320";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -18529,10 +18529,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.1.0-www-classic-b630219b-20250320",
version: "19.1.0-www-classic-0962f684-20250320",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-classic-b630219b-20250320"
reconcilerVersion: "19.1.0-www-classic-0962f684-20250320"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -18566,7 +18566,7 @@ __DEV__ &&
exports.Shape = Shape;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.1.0-www-classic-b630219b-20250320";
exports.version = "19.1.0-www-classic-0962f684-20250320";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+3 -3
View File
@@ -18301,10 +18301,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.1.0-www-modern-b630219b-20250320",
version: "19.1.0-www-modern-0962f684-20250320",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-modern-b630219b-20250320"
reconcilerVersion: "19.1.0-www-modern-0962f684-20250320"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -18338,7 +18338,7 @@ __DEV__ &&
exports.Shape = Shape;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.1.0-www-modern-b630219b-20250320";
exports.version = "19.1.0-www-modern-0962f684-20250320";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -11332,10 +11332,10 @@ var slice = Array.prototype.slice,
})(React.Component);
var internals$jscomp$inline_1583 = {
bundleType: 0,
version: "19.1.0-www-classic-b630219b-20250320",
version: "19.1.0-www-classic-0962f684-20250320",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-classic-b630219b-20250320"
reconcilerVersion: "19.1.0-www-classic-0962f684-20250320"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1584 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -11361,4 +11361,4 @@ exports.RadialGradient = RadialGradient;
exports.Shape = TYPES.SHAPE;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.1.0-www-classic-b630219b-20250320";
exports.version = "19.1.0-www-classic-0962f684-20250320";
@@ -11045,10 +11045,10 @@ var slice = Array.prototype.slice,
})(React.Component);
var internals$jscomp$inline_1556 = {
bundleType: 0,
version: "19.1.0-www-modern-b630219b-20250320",
version: "19.1.0-www-modern-0962f684-20250320",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-modern-b630219b-20250320"
reconcilerVersion: "19.1.0-www-modern-0962f684-20250320"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1557 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -11074,4 +11074,4 @@ exports.RadialGradient = RadialGradient;
exports.Shape = TYPES.SHAPE;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.1.0-www-modern-b630219b-20250320";
exports.version = "19.1.0-www-modern-0962f684-20250320";
@@ -30273,11 +30273,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.1.0-www-classic-b630219b-20250320" !== isomorphicReactPackageVersion)
if ("19.1.0-www-classic-0962f684-20250320" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-dom: 19.1.0-www-classic-b630219b-20250320\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.1.0-www-classic-0962f684-20250320\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -30320,10 +30320,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.1.0-www-classic-b630219b-20250320",
version: "19.1.0-www-classic-0962f684-20250320",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-classic-b630219b-20250320"
reconcilerVersion: "19.1.0-www-classic-0962f684-20250320"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -30921,7 +30921,7 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.1.0-www-classic-b630219b-20250320";
exports.version = "19.1.0-www-classic-0962f684-20250320";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+5 -5
View File
@@ -30059,11 +30059,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.1.0-www-modern-b630219b-20250320" !== isomorphicReactPackageVersion)
if ("19.1.0-www-modern-0962f684-20250320" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-dom: 19.1.0-www-modern-b630219b-20250320\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.1.0-www-modern-0962f684-20250320\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -30106,10 +30106,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.1.0-www-modern-b630219b-20250320",
version: "19.1.0-www-modern-0962f684-20250320",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-modern-b630219b-20250320"
reconcilerVersion: "19.1.0-www-modern-0962f684-20250320"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -30707,7 +30707,7 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.1.0-www-modern-b630219b-20250320";
exports.version = "19.1.0-www-modern-0962f684-20250320";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -18997,14 +18997,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1971 = React.version;
if (
"19.1.0-www-classic-b630219b-20250320" !==
"19.1.0-www-classic-0962f684-20250320" !==
isomorphicReactPackageVersion$jscomp$inline_1971
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1971,
"19.1.0-www-classic-b630219b-20250320"
"19.1.0-www-classic-0962f684-20250320"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -19022,10 +19022,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2559 = {
bundleType: 0,
version: "19.1.0-www-classic-b630219b-20250320",
version: "19.1.0-www-classic-0962f684-20250320",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-classic-b630219b-20250320"
reconcilerVersion: "19.1.0-www-classic-0962f684-20250320"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2560 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -19389,4 +19389,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.1.0-www-classic-b630219b-20250320";
exports.version = "19.1.0-www-classic-0962f684-20250320";
@@ -18726,14 +18726,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1961 = React.version;
if (
"19.1.0-www-modern-b630219b-20250320" !==
"19.1.0-www-modern-0962f684-20250320" !==
isomorphicReactPackageVersion$jscomp$inline_1961
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1961,
"19.1.0-www-modern-b630219b-20250320"
"19.1.0-www-modern-0962f684-20250320"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -18751,10 +18751,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2541 = {
bundleType: 0,
version: "19.1.0-www-modern-b630219b-20250320",
version: "19.1.0-www-modern-0962f684-20250320",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-modern-b630219b-20250320"
reconcilerVersion: "19.1.0-www-modern-0962f684-20250320"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2542 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -19118,4 +19118,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.1.0-www-modern-b630219b-20250320";
exports.version = "19.1.0-www-modern-0962f684-20250320";
@@ -20739,14 +20739,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_2131 = React.version;
if (
"19.1.0-www-classic-b630219b-20250320" !==
"19.1.0-www-classic-0962f684-20250320" !==
isomorphicReactPackageVersion$jscomp$inline_2131
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2131,
"19.1.0-www-classic-b630219b-20250320"
"19.1.0-www-classic-0962f684-20250320"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -20764,10 +20764,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2133 = {
bundleType: 0,
version: "19.1.0-www-classic-b630219b-20250320",
version: "19.1.0-www-classic-0962f684-20250320",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-classic-b630219b-20250320"
reconcilerVersion: "19.1.0-www-classic-0962f684-20250320"
};
enableSchedulingProfiler &&
((internals$jscomp$inline_2133.getLaneLabelMap = getLaneLabelMap),
@@ -21134,7 +21134,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.1.0-www-classic-b630219b-20250320";
exports.version = "19.1.0-www-classic-0962f684-20250320";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -20537,14 +20537,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_2121 = React.version;
if (
"19.1.0-www-modern-b630219b-20250320" !==
"19.1.0-www-modern-0962f684-20250320" !==
isomorphicReactPackageVersion$jscomp$inline_2121
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2121,
"19.1.0-www-modern-b630219b-20250320"
"19.1.0-www-modern-0962f684-20250320"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -20562,10 +20562,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2123 = {
bundleType: 0,
version: "19.1.0-www-modern-b630219b-20250320",
version: "19.1.0-www-modern-0962f684-20250320",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-modern-b630219b-20250320"
reconcilerVersion: "19.1.0-www-modern-0962f684-20250320"
};
enableSchedulingProfiler &&
((internals$jscomp$inline_2123.getLaneLabelMap = getLaneLabelMap),
@@ -20932,7 +20932,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.1.0-www-modern-b630219b-20250320";
exports.version = "19.1.0-www-modern-0962f684-20250320";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -9421,5 +9421,5 @@ __DEV__ &&
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
);
};
exports.version = "19.1.0-www-classic-b630219b-20250320";
exports.version = "19.1.0-www-classic-0962f684-20250320";
})();
@@ -9350,5 +9350,5 @@ __DEV__ &&
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
);
};
exports.version = "19.1.0-www-modern-b630219b-20250320";
exports.version = "19.1.0-www-modern-0962f684-20250320";
})();
@@ -6203,4 +6203,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.1.0-www-classic-b630219b-20250320";
exports.version = "19.1.0-www-classic-0962f684-20250320";
@@ -6115,4 +6115,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.1.0-www-modern-b630219b-20250320";
exports.version = "19.1.0-www-modern-0962f684-20250320";
@@ -30594,11 +30594,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.1.0-www-classic-b630219b-20250320" !== isomorphicReactPackageVersion)
if ("19.1.0-www-classic-0962f684-20250320" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-dom: 19.1.0-www-classic-b630219b-20250320\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.1.0-www-classic-0962f684-20250320\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -30641,10 +30641,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.1.0-www-classic-b630219b-20250320",
version: "19.1.0-www-classic-0962f684-20250320",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-classic-b630219b-20250320"
reconcilerVersion: "19.1.0-www-classic-0962f684-20250320"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -31408,5 +31408,5 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.1.0-www-classic-b630219b-20250320";
exports.version = "19.1.0-www-classic-0962f684-20250320";
})();
@@ -30380,11 +30380,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.1.0-www-modern-b630219b-20250320" !== isomorphicReactPackageVersion)
if ("19.1.0-www-modern-0962f684-20250320" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-dom: 19.1.0-www-modern-b630219b-20250320\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.1.0-www-modern-0962f684-20250320\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -30427,10 +30427,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.1.0-www-modern-b630219b-20250320",
version: "19.1.0-www-modern-0962f684-20250320",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-modern-b630219b-20250320"
reconcilerVersion: "19.1.0-www-modern-0962f684-20250320"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -31194,5 +31194,5 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.1.0-www-modern-b630219b-20250320";
exports.version = "19.1.0-www-modern-0962f684-20250320";
})();
@@ -19313,14 +19313,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_2000 = React.version;
if (
"19.1.0-www-classic-b630219b-20250320" !==
"19.1.0-www-classic-0962f684-20250320" !==
isomorphicReactPackageVersion$jscomp$inline_2000
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2000,
"19.1.0-www-classic-b630219b-20250320"
"19.1.0-www-classic-0962f684-20250320"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -19338,10 +19338,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2593 = {
bundleType: 0,
version: "19.1.0-www-classic-b630219b-20250320",
version: "19.1.0-www-classic-0962f684-20250320",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-classic-b630219b-20250320"
reconcilerVersion: "19.1.0-www-classic-0962f684-20250320"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2594 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -19856,4 +19856,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.1.0-www-classic-b630219b-20250320";
exports.version = "19.1.0-www-classic-0962f684-20250320";
@@ -19042,14 +19042,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1990 = React.version;
if (
"19.1.0-www-modern-b630219b-20250320" !==
"19.1.0-www-modern-0962f684-20250320" !==
isomorphicReactPackageVersion$jscomp$inline_1990
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1990,
"19.1.0-www-modern-b630219b-20250320"
"19.1.0-www-modern-0962f684-20250320"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -19067,10 +19067,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2575 = {
bundleType: 0,
version: "19.1.0-www-modern-b630219b-20250320",
version: "19.1.0-www-modern-0962f684-20250320",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-modern-b630219b-20250320"
reconcilerVersion: "19.1.0-www-modern-0962f684-20250320"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2576 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -19585,4 +19585,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.1.0-www-modern-b630219b-20250320";
exports.version = "19.1.0-www-modern-0962f684-20250320";
@@ -21240,7 +21240,7 @@ __DEV__ &&
version: rendererVersion,
rendererPackageName: rendererPackageName,
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-classic-b630219b-20250320"
reconcilerVersion: "19.1.0-www-classic-0962f684-20250320"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -21021,7 +21021,7 @@ __DEV__ &&
version: rendererVersion,
rendererPackageName: rendererPackageName,
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-modern-b630219b-20250320"
reconcilerVersion: "19.1.0-www-modern-0962f684-20250320"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -13939,7 +13939,7 @@ module.exports = function ($$$config) {
version: rendererVersion,
rendererPackageName: rendererPackageName,
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-classic-b630219b-20250320"
reconcilerVersion: "19.1.0-www-classic-0962f684-20250320"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -13656,7 +13656,7 @@ module.exports = function ($$$config) {
version: rendererVersion,
rendererPackageName: rendererPackageName,
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-modern-b630219b-20250320"
reconcilerVersion: "19.1.0-www-modern-0962f684-20250320"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -15075,10 +15075,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.1.0-www-classic-b630219b-20250320",
version: "19.1.0-www-classic-0962f684-20250320",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-classic-b630219b-20250320"
reconcilerVersion: "19.1.0-www-classic-0962f684-20250320"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -15213,5 +15213,5 @@ __DEV__ &&
exports.unstable_batchedUpdates = function (fn, a) {
return fn(a);
};
exports.version = "19.1.0-www-classic-b630219b-20250320";
exports.version = "19.1.0-www-classic-0962f684-20250320";
})();
@@ -15075,10 +15075,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.1.0-www-modern-b630219b-20250320",
version: "19.1.0-www-modern-0962f684-20250320",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-modern-b630219b-20250320"
reconcilerVersion: "19.1.0-www-modern-0962f684-20250320"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -15213,5 +15213,5 @@ __DEV__ &&
exports.unstable_batchedUpdates = function (fn, a) {
return fn(a);
};
exports.version = "19.1.0-www-modern-b630219b-20250320";
exports.version = "19.1.0-www-modern-0962f684-20250320";
})();
+1 -1
View File
@@ -1 +1 @@
19.1.0-www-classic-b630219b-20250320
19.1.0-www-classic-0962f684-20250320
+1 -1
View File
@@ -1 +1 @@
19.1.0-www-modern-b630219b-20250320
19.1.0-www-modern-0962f684-20250320