Skip to content

Commit 2c83cca

Browse files
committed
[compiler][bugfix] Fix hoisting of let declarations (#32724)
(Found when compiling Meta React code) Let variable declarations and reassignments are currently rewritten to `StoreLocal <varName>` instructions, which each translates to a new `const varName` declaration in codegen. ```js // Example input function useHook() { const getX = () => x; let x = CONSTANT1; if (cond) { x += CONSTANT2; } return <Stringify getX={getX} /> } // Compiled output, prior to this PR import { c as _c } from "react/compiler-runtime"; function useHook() { const $ = _c(1); let t0; if ($[0] === Symbol.for("react.memo_cache_sentinel")) { const getX = () => x; let x = CONSTANT1; if (cond) { let x = x + CONSTANT2; x; } t0 = <Stringify getX={getX} />; $[0] = t0; } else { t0 = $[0]; } return t0; } ``` This also manifests as a babel internal error when replacing the original function declaration with the compiler output. The below compilation output fails with `Duplicate declaration "x" (This is an error on an internal node. Probably an internal error.)`. ```js // example input let x = CONSTANT1; if (cond) { x += CONSTANT2; x = CONSTANT3; } // current output let x = CONSTANT1; if (playheadDragState) { let x = x + CONSTANT2 x; let x = CONSTANT3; } ``` DiffTrain build for [254dc4d](254dc4d)
1 parent 1f2af3a commit 2c83cca

35 files changed

+131
-95
lines changed

compiled/eslint-plugin-react-hooks/index.js

Lines changed: 45 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44581,6 +44581,8 @@ function pruneHoistedContexts(fn) {
4458144581
const hoistedIdentifiers = new Map();
4458244582
visitReactiveFunction(fn, new Visitor$8(), hoistedIdentifiers);
4458344583
}
44584+
const REWRITTEN_HOISTED_CONST = Symbol('REWRITTEN_HOISTED_CONST');
44585+
const REWRITTEN_HOISTED_LET = Symbol('REWRITTEN_HOISTED_LET');
4458444586
let Visitor$8 = class Visitor extends ReactiveFunctionTransform {
4458544587
transformInstruction(instruction, state) {
4458644588
this.visitInstruction(instruction, state);
@@ -44599,16 +44601,50 @@ let Visitor$8 = class Visitor extends ReactiveFunctionTransform {
4459944601
state.set(instruction.value.lvalue.place.identifier.declarationId, InstructionKind.Function);
4460044602
return { kind: 'remove' };
4460144603
}
44602-
if (instruction.value.kind === 'StoreContext' &&
44603-
state.has(instruction.value.lvalue.place.identifier.declarationId)) {
44604+
if (instruction.value.kind === 'StoreContext') {
4460444605
const kind = state.get(instruction.value.lvalue.place.identifier.declarationId);
44605-
return {
44606-
kind: 'replace',
44607-
value: {
44608-
kind: 'instruction',
44609-
instruction: Object.assign(Object.assign({}, instruction), { value: Object.assign(Object.assign({}, instruction.value), { lvalue: Object.assign(Object.assign({}, instruction.value.lvalue), { kind }), type: null, kind: 'StoreLocal' }) }),
44610-
},
44611-
};
44606+
if (kind != null) {
44607+
CompilerError.invariant(kind !== REWRITTEN_HOISTED_CONST, {
44608+
reason: 'Expected exactly one store to a hoisted const variable',
44609+
loc: instruction.loc,
44610+
});
44611+
if (kind === InstructionKind.Const ||
44612+
kind === InstructionKind.Function) {
44613+
state.set(instruction.value.lvalue.place.identifier.declarationId, REWRITTEN_HOISTED_CONST);
44614+
return {
44615+
kind: 'replace',
44616+
value: {
44617+
kind: 'instruction',
44618+
instruction: Object.assign(Object.assign({}, instruction), { value: Object.assign(Object.assign({}, instruction.value), { lvalue: Object.assign(Object.assign({}, instruction.value.lvalue), { kind }), type: null, kind: 'StoreLocal' }) }),
44619+
},
44620+
};
44621+
}
44622+
else if (kind !== REWRITTEN_HOISTED_LET) {
44623+
state.set(instruction.value.lvalue.place.identifier.declarationId, REWRITTEN_HOISTED_LET);
44624+
return {
44625+
kind: 'replace-many',
44626+
value: [
44627+
{
44628+
kind: 'instruction',
44629+
instruction: {
44630+
id: instruction.id,
44631+
lvalue: null,
44632+
value: {
44633+
kind: 'DeclareContext',
44634+
lvalue: {
44635+
kind: InstructionKind.Let,
44636+
place: Object.assign({}, instruction.value.lvalue.place),
44637+
},
44638+
loc: instruction.value.loc,
44639+
},
44640+
loc: instruction.loc,
44641+
},
44642+
},
44643+
{ kind: 'instruction', instruction },
44644+
],
44645+
};
44646+
}
44647+
}
4461244648
}
4461344649
return { kind: 'keep' };
4461444650
}

compiled/facebook-www/REVISION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
42a57ea8027de8af55e6f4483c3b9a8f4cba31fb
1+
254dc4d9f37eb512d4ee8bad6a0fae7ae491caef
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
42a57ea8027de8af55e6f4483c3b9a8f4cba31fb
1+
254dc4d9f37eb512d4ee8bad6a0fae7ae491caef

compiled/facebook-www/React-dev.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1537,7 +1537,7 @@ __DEV__ &&
15371537
exports.useTransition = function () {
15381538
return resolveDispatcher().useTransition();
15391539
};
1540-
exports.version = "19.1.0-www-classic-42a57ea8-20250324";
1540+
exports.version = "19.1.0-www-classic-254dc4d9-20250324";
15411541
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
15421542
"function" ===
15431543
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-dev.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1537,7 +1537,7 @@ __DEV__ &&
15371537
exports.useTransition = function () {
15381538
return resolveDispatcher().useTransition();
15391539
};
1540-
exports.version = "19.1.0-www-modern-42a57ea8-20250324";
1540+
exports.version = "19.1.0-www-modern-254dc4d9-20250324";
15411541
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
15421542
"function" ===
15431543
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-prod.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,4 +641,4 @@ exports.useSyncExternalStore = function (
641641
exports.useTransition = function () {
642642
return ReactSharedInternals.H.useTransition();
643643
};
644-
exports.version = "19.1.0-www-classic-42a57ea8-20250324";
644+
exports.version = "19.1.0-www-classic-254dc4d9-20250324";

compiled/facebook-www/React-prod.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,4 +641,4 @@ exports.useSyncExternalStore = function (
641641
exports.useTransition = function () {
642642
return ReactSharedInternals.H.useTransition();
643643
};
644-
exports.version = "19.1.0-www-modern-42a57ea8-20250324";
644+
exports.version = "19.1.0-www-modern-254dc4d9-20250324";

compiled/facebook-www/React-profiling.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ exports.useSyncExternalStore = function (
645645
exports.useTransition = function () {
646646
return ReactSharedInternals.H.useTransition();
647647
};
648-
exports.version = "19.1.0-www-classic-42a57ea8-20250324";
648+
exports.version = "19.1.0-www-classic-254dc4d9-20250324";
649649
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
650650
"function" ===
651651
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-profiling.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ exports.useSyncExternalStore = function (
645645
exports.useTransition = function () {
646646
return ReactSharedInternals.H.useTransition();
647647
};
648-
exports.version = "19.1.0-www-modern-42a57ea8-20250324";
648+
exports.version = "19.1.0-www-modern-254dc4d9-20250324";
649649
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
650650
"function" ===
651651
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/ReactART-dev.classic.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18474,10 +18474,10 @@ __DEV__ &&
1847418474
(function () {
1847518475
var internals = {
1847618476
bundleType: 1,
18477-
version: "19.1.0-www-classic-42a57ea8-20250324",
18477+
version: "19.1.0-www-classic-254dc4d9-20250324",
1847818478
rendererPackageName: "react-art",
1847918479
currentDispatcherRef: ReactSharedInternals,
18480-
reconcilerVersion: "19.1.0-www-classic-42a57ea8-20250324"
18480+
reconcilerVersion: "19.1.0-www-classic-254dc4d9-20250324"
1848118481
};
1848218482
internals.overrideHookState = overrideHookState;
1848318483
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -18511,7 +18511,7 @@ __DEV__ &&
1851118511
exports.Shape = Shape;
1851218512
exports.Surface = Surface;
1851318513
exports.Text = Text;
18514-
exports.version = "19.1.0-www-classic-42a57ea8-20250324";
18514+
exports.version = "19.1.0-www-classic-254dc4d9-20250324";
1851518515
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
1851618516
"function" ===
1851718517
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/ReactART-dev.modern.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18246,10 +18246,10 @@ __DEV__ &&
1824618246
(function () {
1824718247
var internals = {
1824818248
bundleType: 1,
18249-
version: "19.1.0-www-modern-42a57ea8-20250324",
18249+
version: "19.1.0-www-modern-254dc4d9-20250324",
1825018250
rendererPackageName: "react-art",
1825118251
currentDispatcherRef: ReactSharedInternals,
18252-
reconcilerVersion: "19.1.0-www-modern-42a57ea8-20250324"
18252+
reconcilerVersion: "19.1.0-www-modern-254dc4d9-20250324"
1825318253
};
1825418254
internals.overrideHookState = overrideHookState;
1825518255
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -18283,7 +18283,7 @@ __DEV__ &&
1828318283
exports.Shape = Shape;
1828418284
exports.Surface = Surface;
1828518285
exports.Text = Text;
18286-
exports.version = "19.1.0-www-modern-42a57ea8-20250324";
18286+
exports.version = "19.1.0-www-modern-254dc4d9-20250324";
1828718287
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
1828818288
"function" ===
1828918289
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/ReactART-prod.classic.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11264,10 +11264,10 @@ var slice = Array.prototype.slice,
1126411264
})(React.Component);
1126511265
var internals$jscomp$inline_1599 = {
1126611266
bundleType: 0,
11267-
version: "19.1.0-www-classic-42a57ea8-20250324",
11267+
version: "19.1.0-www-classic-254dc4d9-20250324",
1126811268
rendererPackageName: "react-art",
1126911269
currentDispatcherRef: ReactSharedInternals,
11270-
reconcilerVersion: "19.1.0-www-classic-42a57ea8-20250324"
11270+
reconcilerVersion: "19.1.0-www-classic-254dc4d9-20250324"
1127111271
};
1127211272
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1127311273
var hook$jscomp$inline_1600 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -11293,4 +11293,4 @@ exports.RadialGradient = RadialGradient;
1129311293
exports.Shape = TYPES.SHAPE;
1129411294
exports.Surface = Surface;
1129511295
exports.Text = Text;
11296-
exports.version = "19.1.0-www-classic-42a57ea8-20250324";
11296+
exports.version = "19.1.0-www-classic-254dc4d9-20250324";

compiled/facebook-www/ReactART-prod.modern.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10977,10 +10977,10 @@ var slice = Array.prototype.slice,
1097710977
})(React.Component);
1097810978
var internals$jscomp$inline_1572 = {
1097910979
bundleType: 0,
10980-
version: "19.1.0-www-modern-42a57ea8-20250324",
10980+
version: "19.1.0-www-modern-254dc4d9-20250324",
1098110981
rendererPackageName: "react-art",
1098210982
currentDispatcherRef: ReactSharedInternals,
10983-
reconcilerVersion: "19.1.0-www-modern-42a57ea8-20250324"
10983+
reconcilerVersion: "19.1.0-www-modern-254dc4d9-20250324"
1098410984
};
1098510985
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1098610986
var hook$jscomp$inline_1573 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -11006,4 +11006,4 @@ exports.RadialGradient = RadialGradient;
1100611006
exports.Shape = TYPES.SHAPE;
1100711007
exports.Surface = Surface;
1100811008
exports.Text = Text;
11009-
exports.version = "19.1.0-www-modern-42a57ea8-20250324";
11009+
exports.version = "19.1.0-www-modern-254dc4d9-20250324";

compiled/facebook-www/ReactDOM-dev.classic.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30190,11 +30190,11 @@ __DEV__ &&
3019030190
return_targetInst = null;
3019130191
(function () {
3019230192
var isomorphicReactPackageVersion = React.version;
30193-
if ("19.1.0-www-classic-42a57ea8-20250324" !== isomorphicReactPackageVersion)
30193+
if ("19.1.0-www-classic-254dc4d9-20250324" !== isomorphicReactPackageVersion)
3019430194
throw Error(
3019530195
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
3019630196
(isomorphicReactPackageVersion +
30197-
"\n - react-dom: 19.1.0-www-classic-42a57ea8-20250324\nLearn more: https://react.dev/warnings/version-mismatch")
30197+
"\n - react-dom: 19.1.0-www-classic-254dc4d9-20250324\nLearn more: https://react.dev/warnings/version-mismatch")
3019830198
);
3019930199
})();
3020030200
("function" === typeof Map &&
@@ -30237,10 +30237,10 @@ __DEV__ &&
3023730237
!(function () {
3023830238
var internals = {
3023930239
bundleType: 1,
30240-
version: "19.1.0-www-classic-42a57ea8-20250324",
30240+
version: "19.1.0-www-classic-254dc4d9-20250324",
3024130241
rendererPackageName: "react-dom",
3024230242
currentDispatcherRef: ReactSharedInternals,
30243-
reconcilerVersion: "19.1.0-www-classic-42a57ea8-20250324"
30243+
reconcilerVersion: "19.1.0-www-classic-254dc4d9-20250324"
3024430244
};
3024530245
internals.overrideHookState = overrideHookState;
3024630246
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -30838,7 +30838,7 @@ __DEV__ &&
3083830838
exports.useFormStatus = function () {
3083930839
return resolveDispatcher().useHostTransitionStatus();
3084030840
};
30841-
exports.version = "19.1.0-www-classic-42a57ea8-20250324";
30841+
exports.version = "19.1.0-www-classic-254dc4d9-20250324";
3084230842
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
3084330843
"function" ===
3084430844
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/ReactDOM-dev.modern.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29976,11 +29976,11 @@ __DEV__ &&
2997629976
return_targetInst = null;
2997729977
(function () {
2997829978
var isomorphicReactPackageVersion = React.version;
29979-
if ("19.1.0-www-modern-42a57ea8-20250324" !== isomorphicReactPackageVersion)
29979+
if ("19.1.0-www-modern-254dc4d9-20250324" !== isomorphicReactPackageVersion)
2998029980
throw Error(
2998129981
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
2998229982
(isomorphicReactPackageVersion +
29983-
"\n - react-dom: 19.1.0-www-modern-42a57ea8-20250324\nLearn more: https://react.dev/warnings/version-mismatch")
29983+
"\n - react-dom: 19.1.0-www-modern-254dc4d9-20250324\nLearn more: https://react.dev/warnings/version-mismatch")
2998429984
);
2998529985
})();
2998629986
("function" === typeof Map &&
@@ -30023,10 +30023,10 @@ __DEV__ &&
3002330023
!(function () {
3002430024
var internals = {
3002530025
bundleType: 1,
30026-
version: "19.1.0-www-modern-42a57ea8-20250324",
30026+
version: "19.1.0-www-modern-254dc4d9-20250324",
3002730027
rendererPackageName: "react-dom",
3002830028
currentDispatcherRef: ReactSharedInternals,
30029-
reconcilerVersion: "19.1.0-www-modern-42a57ea8-20250324"
30029+
reconcilerVersion: "19.1.0-www-modern-254dc4d9-20250324"
3003030030
};
3003130031
internals.overrideHookState = overrideHookState;
3003230032
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -30624,7 +30624,7 @@ __DEV__ &&
3062430624
exports.useFormStatus = function () {
3062530625
return resolveDispatcher().useHostTransitionStatus();
3062630626
};
30627-
exports.version = "19.1.0-www-modern-42a57ea8-20250324";
30627+
exports.version = "19.1.0-www-modern-254dc4d9-20250324";
3062830628
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
3062930629
"function" ===
3063030630
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/ReactDOM-prod.classic.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18908,14 +18908,14 @@ function getCrossOriginStringAs(as, input) {
1890818908
}
1890918909
var isomorphicReactPackageVersion$jscomp$inline_1989 = React.version;
1891018910
if (
18911-
"19.1.0-www-classic-42a57ea8-20250324" !==
18911+
"19.1.0-www-classic-254dc4d9-20250324" !==
1891218912
isomorphicReactPackageVersion$jscomp$inline_1989
1891318913
)
1891418914
throw Error(
1891518915
formatProdErrorMessage(
1891618916
527,
1891718917
isomorphicReactPackageVersion$jscomp$inline_1989,
18918-
"19.1.0-www-classic-42a57ea8-20250324"
18918+
"19.1.0-www-classic-254dc4d9-20250324"
1891918919
)
1892018920
);
1892118921
Internals.findDOMNode = function (componentOrElement) {
@@ -18933,10 +18933,10 @@ Internals.Events = [
1893318933
];
1893418934
var internals$jscomp$inline_2573 = {
1893518935
bundleType: 0,
18936-
version: "19.1.0-www-classic-42a57ea8-20250324",
18936+
version: "19.1.0-www-classic-254dc4d9-20250324",
1893718937
rendererPackageName: "react-dom",
1893818938
currentDispatcherRef: ReactSharedInternals,
18939-
reconcilerVersion: "19.1.0-www-classic-42a57ea8-20250324"
18939+
reconcilerVersion: "19.1.0-www-classic-254dc4d9-20250324"
1894018940
};
1894118941
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1894218942
var hook$jscomp$inline_2574 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -19300,4 +19300,4 @@ exports.useFormState = function (action, initialState, permalink) {
1930019300
exports.useFormStatus = function () {
1930119301
return ReactSharedInternals.H.useHostTransitionStatus();
1930219302
};
19303-
exports.version = "19.1.0-www-classic-42a57ea8-20250324";
19303+
exports.version = "19.1.0-www-classic-254dc4d9-20250324";

compiled/facebook-www/ReactDOM-prod.modern.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18637,14 +18637,14 @@ function getCrossOriginStringAs(as, input) {
1863718637
}
1863818638
var isomorphicReactPackageVersion$jscomp$inline_1979 = React.version;
1863918639
if (
18640-
"19.1.0-www-modern-42a57ea8-20250324" !==
18640+
"19.1.0-www-modern-254dc4d9-20250324" !==
1864118641
isomorphicReactPackageVersion$jscomp$inline_1979
1864218642
)
1864318643
throw Error(
1864418644
formatProdErrorMessage(
1864518645
527,
1864618646
isomorphicReactPackageVersion$jscomp$inline_1979,
18647-
"19.1.0-www-modern-42a57ea8-20250324"
18647+
"19.1.0-www-modern-254dc4d9-20250324"
1864818648
)
1864918649
);
1865018650
Internals.findDOMNode = function (componentOrElement) {
@@ -18662,10 +18662,10 @@ Internals.Events = [
1866218662
];
1866318663
var internals$jscomp$inline_2555 = {
1866418664
bundleType: 0,
18665-
version: "19.1.0-www-modern-42a57ea8-20250324",
18665+
version: "19.1.0-www-modern-254dc4d9-20250324",
1866618666
rendererPackageName: "react-dom",
1866718667
currentDispatcherRef: ReactSharedInternals,
18668-
reconcilerVersion: "19.1.0-www-modern-42a57ea8-20250324"
18668+
reconcilerVersion: "19.1.0-www-modern-254dc4d9-20250324"
1866918669
};
1867018670
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1867118671
var hook$jscomp$inline_2556 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -19029,4 +19029,4 @@ exports.useFormState = function (action, initialState, permalink) {
1902919029
exports.useFormStatus = function () {
1903019030
return ReactSharedInternals.H.useHostTransitionStatus();
1903119031
};
19032-
exports.version = "19.1.0-www-modern-42a57ea8-20250324";
19032+
exports.version = "19.1.0-www-modern-254dc4d9-20250324";

compiled/facebook-www/ReactDOM-profiling.classic.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20650,14 +20650,14 @@ function getCrossOriginStringAs(as, input) {
2065020650
}
2065120651
var isomorphicReactPackageVersion$jscomp$inline_2149 = React.version;
2065220652
if (
20653-
"19.1.0-www-classic-42a57ea8-20250324" !==
20653+
"19.1.0-www-classic-254dc4d9-20250324" !==
2065420654
isomorphicReactPackageVersion$jscomp$inline_2149
2065520655
)
2065620656
throw Error(
2065720657
formatProdErrorMessage(
2065820658
527,
2065920659
isomorphicReactPackageVersion$jscomp$inline_2149,
20660-
"19.1.0-www-classic-42a57ea8-20250324"
20660+
"19.1.0-www-classic-254dc4d9-20250324"
2066120661
)
2066220662
);
2066320663
Internals.findDOMNode = function (componentOrElement) {
@@ -20675,10 +20675,10 @@ Internals.Events = [
2067520675
];
2067620676
var internals$jscomp$inline_2151 = {
2067720677
bundleType: 0,
20678-
version: "19.1.0-www-classic-42a57ea8-20250324",
20678+
version: "19.1.0-www-classic-254dc4d9-20250324",
2067920679
rendererPackageName: "react-dom",
2068020680
currentDispatcherRef: ReactSharedInternals,
20681-
reconcilerVersion: "19.1.0-www-classic-42a57ea8-20250324"
20681+
reconcilerVersion: "19.1.0-www-classic-254dc4d9-20250324"
2068220682
};
2068320683
enableSchedulingProfiler &&
2068420684
((internals$jscomp$inline_2151.getLaneLabelMap = getLaneLabelMap),
@@ -21045,7 +21045,7 @@ exports.useFormState = function (action, initialState, permalink) {
2104521045
exports.useFormStatus = function () {
2104621046
return ReactSharedInternals.H.useHostTransitionStatus();
2104721047
};
21048-
exports.version = "19.1.0-www-classic-42a57ea8-20250324";
21048+
exports.version = "19.1.0-www-classic-254dc4d9-20250324";
2104921049
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
2105021050
"function" ===
2105121051
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

0 commit comments

Comments
 (0)