[compiler] Add VoidUseMemo rule to RecommendedLatest (#34783)

Adds a new error category VoidUseMemo which is only enabled in the
RecommendedLatest preset for now.

DiffTrain build for [4b3e662e4c](https://github.com/facebook/react/commit/4b3e662e4ce54eb54a8701c48a967cc84a389501)
This commit is contained in:
poteto
2025-10-08 13:01:53 -07:00
parent bb67c72632
commit b5356aa43b
35 changed files with 99 additions and 88 deletions
+13 -2
View File
@@ -18005,7 +18005,8 @@ function printErrorSummary(category, message) {
case ErrorCategory.StaticComponents:
case ErrorCategory.Suppression:
case ErrorCategory.Syntax:
case ErrorCategory.UseMemo: {
case ErrorCategory.UseMemo:
case ErrorCategory.VoidUseMemo: {
heading = 'Error';
break;
}
@@ -18036,6 +18037,7 @@ var ErrorCategory;
ErrorCategory["CapitalizedCalls"] = "CapitalizedCalls";
ErrorCategory["StaticComponents"] = "StaticComponents";
ErrorCategory["UseMemo"] = "UseMemo";
ErrorCategory["VoidUseMemo"] = "VoidUseMemo";
ErrorCategory["Factories"] = "Factories";
ErrorCategory["PreserveManualMemo"] = "PreserveManualMemo";
ErrorCategory["IncompatibleLibrary"] = "IncompatibleLibrary";
@@ -18302,6 +18304,15 @@ function getRuleForCategoryImpl(category) {
preset: LintRulePreset.Recommended,
};
}
case ErrorCategory.VoidUseMemo: {
return {
category,
severity: ErrorSeverity.Error,
name: 'void-use-memo',
description: 'Validates that useMemos always return a value. See [`useMemo()` docs](https://react.dev/reference/react/useMemo) for more information.',
preset: LintRulePreset.RecommendedLatest,
};
}
case ErrorCategory.IncompatibleLibrary: {
return {
category,
@@ -44582,7 +44593,7 @@ function dropManualMemoization(func) {
if (funcToCheck !== undefined && funcToCheck.loweredFunc.func) {
if (!hasNonVoidReturn(funcToCheck.loweredFunc.func)) {
errors.pushDiagnostic(CompilerDiagnostic.create({
category: ErrorCategory.UseMemo,
category: ErrorCategory.VoidUseMemo,
reason: 'useMemo() callbacks must return a value',
description: `This ${manualMemo.loadInstr.value.kind === 'PropertyLoad'
? 'React.useMemo'
+1 -1
View File
@@ -1 +1 @@
3e1b34dc51dfc3cbada2cdd0ead5acee6998f444
4b3e662e4ce54eb54a8701c48a967cc84a389501
+1 -1
View File
@@ -1 +1 @@
3e1b34dc51dfc3cbada2cdd0ead5acee6998f444
4b3e662e4ce54eb54a8701c48a967cc84a389501
+1 -1
View File
@@ -1460,7 +1460,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.3.0-www-classic-3e1b34dc-20251008";
exports.version = "19.3.0-www-classic-4b3e662e-20251008";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+1 -1
View File
@@ -1460,7 +1460,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.3.0-www-modern-3e1b34dc-20251008";
exports.version = "19.3.0-www-modern-4b3e662e-20251008";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+1 -1
View File
@@ -606,4 +606,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.3.0-www-classic-3e1b34dc-20251008";
exports.version = "19.3.0-www-classic-4b3e662e-20251008";
+1 -1
View File
@@ -606,4 +606,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.3.0-www-modern-3e1b34dc-20251008";
exports.version = "19.3.0-www-modern-4b3e662e-20251008";
@@ -610,7 +610,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.3.0-www-classic-3e1b34dc-20251008";
exports.version = "19.3.0-www-classic-4b3e662e-20251008";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -610,7 +610,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.3.0-www-modern-3e1b34dc-20251008";
exports.version = "19.3.0-www-modern-4b3e662e-20251008";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -20348,10 +20348,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.3.0-www-classic-3e1b34dc-20251008",
version: "19.3.0-www-classic-4b3e662e-20251008",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-www-classic-3e1b34dc-20251008"
reconcilerVersion: "19.3.0-www-classic-4b3e662e-20251008"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -20386,7 +20386,7 @@ __DEV__ &&
exports.Shape = Shape;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.3.0-www-classic-3e1b34dc-20251008";
exports.version = "19.3.0-www-classic-4b3e662e-20251008";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+3 -3
View File
@@ -20119,10 +20119,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.3.0-www-modern-3e1b34dc-20251008",
version: "19.3.0-www-modern-4b3e662e-20251008",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-www-modern-3e1b34dc-20251008"
reconcilerVersion: "19.3.0-www-modern-4b3e662e-20251008"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -20157,7 +20157,7 @@ __DEV__ &&
exports.Shape = Shape;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.3.0-www-modern-3e1b34dc-20251008";
exports.version = "19.3.0-www-modern-4b3e662e-20251008";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -11434,10 +11434,10 @@ var slice = Array.prototype.slice,
})(React.Component);
var internals$jscomp$inline_1646 = {
bundleType: 0,
version: "19.3.0-www-classic-3e1b34dc-20251008",
version: "19.3.0-www-classic-4b3e662e-20251008",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-www-classic-3e1b34dc-20251008"
reconcilerVersion: "19.3.0-www-classic-4b3e662e-20251008"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1647 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -11463,4 +11463,4 @@ exports.RadialGradient = RadialGradient;
exports.Shape = TYPES.SHAPE;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.3.0-www-classic-3e1b34dc-20251008";
exports.version = "19.3.0-www-classic-4b3e662e-20251008";
@@ -11146,10 +11146,10 @@ var slice = Array.prototype.slice,
})(React.Component);
var internals$jscomp$inline_1619 = {
bundleType: 0,
version: "19.3.0-www-modern-3e1b34dc-20251008",
version: "19.3.0-www-modern-4b3e662e-20251008",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-www-modern-3e1b34dc-20251008"
reconcilerVersion: "19.3.0-www-modern-4b3e662e-20251008"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1620 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -11175,4 +11175,4 @@ exports.RadialGradient = RadialGradient;
exports.Shape = TYPES.SHAPE;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.3.0-www-modern-3e1b34dc-20251008";
exports.version = "19.3.0-www-modern-4b3e662e-20251008";
@@ -32908,11 +32908,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.3.0-www-classic-3e1b34dc-20251008" !== isomorphicReactPackageVersion)
if ("19.3.0-www-classic-4b3e662e-20251008" !== 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.3.0-www-classic-3e1b34dc-20251008\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.3.0-www-classic-4b3e662e-20251008\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -32955,10 +32955,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.3.0-www-classic-3e1b34dc-20251008",
version: "19.3.0-www-classic-4b3e662e-20251008",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-www-classic-3e1b34dc-20251008"
reconcilerVersion: "19.3.0-www-classic-4b3e662e-20251008"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -33571,7 +33571,7 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.3.0-www-classic-3e1b34dc-20251008";
exports.version = "19.3.0-www-classic-4b3e662e-20251008";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+5 -5
View File
@@ -32693,11 +32693,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.3.0-www-modern-3e1b34dc-20251008" !== isomorphicReactPackageVersion)
if ("19.3.0-www-modern-4b3e662e-20251008" !== 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.3.0-www-modern-3e1b34dc-20251008\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.3.0-www-modern-4b3e662e-20251008\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -32740,10 +32740,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.3.0-www-modern-3e1b34dc-20251008",
version: "19.3.0-www-modern-4b3e662e-20251008",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-www-modern-3e1b34dc-20251008"
reconcilerVersion: "19.3.0-www-modern-4b3e662e-20251008"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -33356,7 +33356,7 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.3.0-www-modern-3e1b34dc-20251008";
exports.version = "19.3.0-www-modern-4b3e662e-20251008";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -19970,14 +19970,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_2128 = React.version;
if (
"19.3.0-www-classic-3e1b34dc-20251008" !==
"19.3.0-www-classic-4b3e662e-20251008" !==
isomorphicReactPackageVersion$jscomp$inline_2128
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2128,
"19.3.0-www-classic-3e1b34dc-20251008"
"19.3.0-www-classic-4b3e662e-20251008"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -19995,10 +19995,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2760 = {
bundleType: 0,
version: "19.3.0-www-classic-3e1b34dc-20251008",
version: "19.3.0-www-classic-4b3e662e-20251008",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-www-classic-3e1b34dc-20251008"
reconcilerVersion: "19.3.0-www-classic-4b3e662e-20251008"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2761 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -20427,4 +20427,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.3.0-www-classic-3e1b34dc-20251008";
exports.version = "19.3.0-www-classic-4b3e662e-20251008";
@@ -19699,14 +19699,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_2118 = React.version;
if (
"19.3.0-www-modern-3e1b34dc-20251008" !==
"19.3.0-www-modern-4b3e662e-20251008" !==
isomorphicReactPackageVersion$jscomp$inline_2118
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2118,
"19.3.0-www-modern-3e1b34dc-20251008"
"19.3.0-www-modern-4b3e662e-20251008"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -19724,10 +19724,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2742 = {
bundleType: 0,
version: "19.3.0-www-modern-3e1b34dc-20251008",
version: "19.3.0-www-modern-4b3e662e-20251008",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-www-modern-3e1b34dc-20251008"
reconcilerVersion: "19.3.0-www-modern-4b3e662e-20251008"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2743 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -20156,4 +20156,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.3.0-www-modern-3e1b34dc-20251008";
exports.version = "19.3.0-www-modern-4b3e662e-20251008";
@@ -22224,14 +22224,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_2438 = React.version;
if (
"19.3.0-www-classic-3e1b34dc-20251008" !==
"19.3.0-www-classic-4b3e662e-20251008" !==
isomorphicReactPackageVersion$jscomp$inline_2438
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2438,
"19.3.0-www-classic-3e1b34dc-20251008"
"19.3.0-www-classic-4b3e662e-20251008"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -22249,10 +22249,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2440 = {
bundleType: 0,
version: "19.3.0-www-classic-3e1b34dc-20251008",
version: "19.3.0-www-classic-4b3e662e-20251008",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-www-classic-3e1b34dc-20251008"
reconcilerVersion: "19.3.0-www-classic-4b3e662e-20251008"
};
enableSchedulingProfiler &&
((internals$jscomp$inline_2440.getLaneLabelMap = getLaneLabelMap),
@@ -22685,7 +22685,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.3.0-www-classic-3e1b34dc-20251008";
exports.version = "19.3.0-www-classic-4b3e662e-20251008";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -22018,14 +22018,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_2428 = React.version;
if (
"19.3.0-www-modern-3e1b34dc-20251008" !==
"19.3.0-www-modern-4b3e662e-20251008" !==
isomorphicReactPackageVersion$jscomp$inline_2428
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2428,
"19.3.0-www-modern-3e1b34dc-20251008"
"19.3.0-www-modern-4b3e662e-20251008"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -22043,10 +22043,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2430 = {
bundleType: 0,
version: "19.3.0-www-modern-3e1b34dc-20251008",
version: "19.3.0-www-modern-4b3e662e-20251008",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-www-modern-3e1b34dc-20251008"
reconcilerVersion: "19.3.0-www-modern-4b3e662e-20251008"
};
enableSchedulingProfiler &&
((internals$jscomp$inline_2430.getLaneLabelMap = getLaneLabelMap),
@@ -22479,7 +22479,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.3.0-www-modern-3e1b34dc-20251008";
exports.version = "19.3.0-www-modern-4b3e662e-20251008";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -10305,5 +10305,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.3.0-www-classic-3e1b34dc-20251008";
exports.version = "19.3.0-www-classic-4b3e662e-20251008";
})();
@@ -10234,5 +10234,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.3.0-www-modern-3e1b34dc-20251008";
exports.version = "19.3.0-www-modern-4b3e662e-20251008";
})();
@@ -6996,4 +6996,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.3.0-www-classic-3e1b34dc-20251008";
exports.version = "19.3.0-www-classic-4b3e662e-20251008";
@@ -6929,4 +6929,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.3.0-www-modern-3e1b34dc-20251008";
exports.version = "19.3.0-www-modern-4b3e662e-20251008";
@@ -33229,11 +33229,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.3.0-www-classic-3e1b34dc-20251008" !== isomorphicReactPackageVersion)
if ("19.3.0-www-classic-4b3e662e-20251008" !== 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.3.0-www-classic-3e1b34dc-20251008\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.3.0-www-classic-4b3e662e-20251008\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -33276,10 +33276,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.3.0-www-classic-3e1b34dc-20251008",
version: "19.3.0-www-classic-4b3e662e-20251008",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-www-classic-3e1b34dc-20251008"
reconcilerVersion: "19.3.0-www-classic-4b3e662e-20251008"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -34058,5 +34058,5 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.3.0-www-classic-3e1b34dc-20251008";
exports.version = "19.3.0-www-classic-4b3e662e-20251008";
})();
@@ -33014,11 +33014,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.3.0-www-modern-3e1b34dc-20251008" !== isomorphicReactPackageVersion)
if ("19.3.0-www-modern-4b3e662e-20251008" !== 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.3.0-www-modern-3e1b34dc-20251008\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.3.0-www-modern-4b3e662e-20251008\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -33061,10 +33061,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.3.0-www-modern-3e1b34dc-20251008",
version: "19.3.0-www-modern-4b3e662e-20251008",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-www-modern-3e1b34dc-20251008"
reconcilerVersion: "19.3.0-www-modern-4b3e662e-20251008"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -33843,5 +33843,5 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.3.0-www-modern-3e1b34dc-20251008";
exports.version = "19.3.0-www-modern-4b3e662e-20251008";
})();
@@ -20286,14 +20286,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_2157 = React.version;
if (
"19.3.0-www-classic-3e1b34dc-20251008" !==
"19.3.0-www-classic-4b3e662e-20251008" !==
isomorphicReactPackageVersion$jscomp$inline_2157
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2157,
"19.3.0-www-classic-3e1b34dc-20251008"
"19.3.0-www-classic-4b3e662e-20251008"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -20311,10 +20311,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2794 = {
bundleType: 0,
version: "19.3.0-www-classic-3e1b34dc-20251008",
version: "19.3.0-www-classic-4b3e662e-20251008",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-www-classic-3e1b34dc-20251008"
reconcilerVersion: "19.3.0-www-classic-4b3e662e-20251008"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2795 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -20894,4 +20894,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.3.0-www-classic-3e1b34dc-20251008";
exports.version = "19.3.0-www-classic-4b3e662e-20251008";
@@ -20015,14 +20015,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_2147 = React.version;
if (
"19.3.0-www-modern-3e1b34dc-20251008" !==
"19.3.0-www-modern-4b3e662e-20251008" !==
isomorphicReactPackageVersion$jscomp$inline_2147
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2147,
"19.3.0-www-modern-3e1b34dc-20251008"
"19.3.0-www-modern-4b3e662e-20251008"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -20040,10 +20040,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2776 = {
bundleType: 0,
version: "19.3.0-www-modern-3e1b34dc-20251008",
version: "19.3.0-www-modern-4b3e662e-20251008",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-www-modern-3e1b34dc-20251008"
reconcilerVersion: "19.3.0-www-modern-4b3e662e-20251008"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2777 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -20623,4 +20623,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.3.0-www-modern-3e1b34dc-20251008";
exports.version = "19.3.0-www-modern-4b3e662e-20251008";
@@ -23003,7 +23003,7 @@ __DEV__ &&
version: rendererVersion,
rendererPackageName: rendererPackageName,
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-www-classic-3e1b34dc-20251008"
reconcilerVersion: "19.3.0-www-classic-4b3e662e-20251008"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -22783,7 +22783,7 @@ __DEV__ &&
version: rendererVersion,
rendererPackageName: rendererPackageName,
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-www-modern-3e1b34dc-20251008"
reconcilerVersion: "19.3.0-www-modern-4b3e662e-20251008"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -14245,7 +14245,7 @@ module.exports = function ($$$config) {
version: rendererVersion,
rendererPackageName: rendererPackageName,
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-www-classic-3e1b34dc-20251008"
reconcilerVersion: "19.3.0-www-classic-4b3e662e-20251008"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -13962,7 +13962,7 @@ module.exports = function ($$$config) {
version: rendererVersion,
rendererPackageName: rendererPackageName,
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-www-modern-3e1b34dc-20251008"
reconcilerVersion: "19.3.0-www-modern-4b3e662e-20251008"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -15705,10 +15705,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.3.0-www-classic-3e1b34dc-20251008",
version: "19.3.0-www-classic-4b3e662e-20251008",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-www-classic-3e1b34dc-20251008"
reconcilerVersion: "19.3.0-www-classic-4b3e662e-20251008"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -15844,5 +15844,5 @@ __DEV__ &&
exports.unstable_batchedUpdates = function (fn, a) {
return fn(a);
};
exports.version = "19.3.0-www-classic-3e1b34dc-20251008";
exports.version = "19.3.0-www-classic-4b3e662e-20251008";
})();
@@ -15705,10 +15705,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.3.0-www-modern-3e1b34dc-20251008",
version: "19.3.0-www-modern-4b3e662e-20251008",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-www-modern-3e1b34dc-20251008"
reconcilerVersion: "19.3.0-www-modern-4b3e662e-20251008"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -15844,5 +15844,5 @@ __DEV__ &&
exports.unstable_batchedUpdates = function (fn, a) {
return fn(a);
};
exports.version = "19.3.0-www-modern-3e1b34dc-20251008";
exports.version = "19.3.0-www-modern-4b3e662e-20251008";
})();
+1 -1
View File
@@ -1 +1 @@
19.3.0-www-classic-3e1b34dc-20251008
19.3.0-www-classic-4b3e662e-20251008
+1 -1
View File
@@ -1 +1 @@
19.3.0-www-modern-3e1b34dc-20251008
19.3.0-www-modern-4b3e662e-20251008