Improve lint error messages for useEffectEvent (#34669)

Called Before:

> `logEvent` is a function created with React Hook "useEffectEvent", and
can only be called from the same component.

Called After:

> `logEvent` is a function created with React Hook "useEffectEvent", and
can only be called from Effects and Effect Events in the same component.

Referenced Before:

> `logEvent` is a function created with React Hook "useEffectEvent", and
can only be called from the same component. They cannot be assigned to
variables or passed down.

Referenced After:

> `logEvent` is a function created with React Hook "useEffectEvent", and
can only be called from Effects and Effect Events in the same component.
It cannot be assigned to a variable or passed down.

DiffTrain build for [67e24bc527](https://github.com/facebook/react/commit/67e24bc5279204108b749fe48b4d395ef9e49e67)
This commit is contained in:
jackpope
2025-10-01 12:22:30 -07:00
parent c604f2d7e0
commit a2f07ff4e1
35 changed files with 92 additions and 91 deletions
+6 -5
View File
@@ -4360,6 +4360,11 @@ function isEffectIdentifier(node, additionalHooks) {
function isUseEffectEventIdentifier(node) {
return node.type === 'Identifier' && node.name === 'useEffectEvent';
}
function useEffectEventError(fn, called) {
return (`\`${fn}\` is a function created with React Hook "useEffectEvent", and can only be called from ` +
'Effects and Effect Events in the same component.' +
(called ? '' : ' It cannot be assigned to a variable or passed down.'));
}
function isUseIdentifier(node) {
return isReactFunction(node, 'use');
}
@@ -4674,11 +4679,7 @@ const rule = {
},
Identifier(node) {
if (lastEffect == null && useEffectEventFunctions.has(node)) {
const message = `\`${getSourceCode().getText(node)}\` is a function created with React Hook "useEffectEvent", and can only be called from ` +
'the same component.' +
(node.parent.type === 'CallExpression'
? ''
: ' They cannot be assigned to variables or passed down.');
const message = useEffectEventError(getSourceCode().getText(node), node.parent.type === 'CallExpression');
context.report({
node,
message,
+1 -1
View File
@@ -1 +1 @@
bbc2d596fa48b64d359b96e167403693caaaabd9
67e24bc5279204108b749fe48b4d395ef9e49e67
+1 -1
View File
@@ -1 +1 @@
bbc2d596fa48b64d359b96e167403693caaaabd9
67e24bc5279204108b749fe48b4d395ef9e49e67
+1 -1
View File
@@ -1458,7 +1458,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.2.0-www-classic-bbc2d596-20251001";
exports.version = "19.2.0-www-classic-67e24bc5-20251001";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+1 -1
View File
@@ -1458,7 +1458,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.2.0-www-modern-bbc2d596-20251001";
exports.version = "19.2.0-www-modern-67e24bc5-20251001";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+1 -1
View File
@@ -604,4 +604,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.2.0-www-classic-bbc2d596-20251001";
exports.version = "19.2.0-www-classic-67e24bc5-20251001";
+1 -1
View File
@@ -604,4 +604,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.2.0-www-modern-bbc2d596-20251001";
exports.version = "19.2.0-www-modern-67e24bc5-20251001";
@@ -608,7 +608,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.2.0-www-classic-bbc2d596-20251001";
exports.version = "19.2.0-www-classic-67e24bc5-20251001";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -608,7 +608,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.2.0-www-modern-bbc2d596-20251001";
exports.version = "19.2.0-www-modern-67e24bc5-20251001";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -20303,10 +20303,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.2.0-www-classic-bbc2d596-20251001",
version: "19.2.0-www-classic-67e24bc5-20251001",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-bbc2d596-20251001"
reconcilerVersion: "19.2.0-www-classic-67e24bc5-20251001"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -20341,7 +20341,7 @@ __DEV__ &&
exports.Shape = Shape;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.2.0-www-classic-bbc2d596-20251001";
exports.version = "19.2.0-www-classic-67e24bc5-20251001";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+3 -3
View File
@@ -20074,10 +20074,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.2.0-www-modern-bbc2d596-20251001",
version: "19.2.0-www-modern-67e24bc5-20251001",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-bbc2d596-20251001"
reconcilerVersion: "19.2.0-www-modern-67e24bc5-20251001"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -20112,7 +20112,7 @@ __DEV__ &&
exports.Shape = Shape;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.2.0-www-modern-bbc2d596-20251001";
exports.version = "19.2.0-www-modern-67e24bc5-20251001";
"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.2.0-www-classic-bbc2d596-20251001",
version: "19.2.0-www-classic-67e24bc5-20251001",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-bbc2d596-20251001"
reconcilerVersion: "19.2.0-www-classic-67e24bc5-20251001"
};
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.2.0-www-classic-bbc2d596-20251001";
exports.version = "19.2.0-www-classic-67e24bc5-20251001";
@@ -11146,10 +11146,10 @@ var slice = Array.prototype.slice,
})(React.Component);
var internals$jscomp$inline_1619 = {
bundleType: 0,
version: "19.2.0-www-modern-bbc2d596-20251001",
version: "19.2.0-www-modern-67e24bc5-20251001",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-bbc2d596-20251001"
reconcilerVersion: "19.2.0-www-modern-67e24bc5-20251001"
};
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.2.0-www-modern-bbc2d596-20251001";
exports.version = "19.2.0-www-modern-67e24bc5-20251001";
@@ -32860,11 +32860,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-www-classic-bbc2d596-20251001" !== isomorphicReactPackageVersion)
if ("19.2.0-www-classic-67e24bc5-20251001" !== 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-bbc2d596-20251001\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.2.0-www-classic-67e24bc5-20251001\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -32907,10 +32907,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.2.0-www-classic-bbc2d596-20251001",
version: "19.2.0-www-classic-67e24bc5-20251001",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-bbc2d596-20251001"
reconcilerVersion: "19.2.0-www-classic-67e24bc5-20251001"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -33523,7 +33523,7 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.2.0-www-classic-bbc2d596-20251001";
exports.version = "19.2.0-www-classic-67e24bc5-20251001";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+5 -5
View File
@@ -32645,11 +32645,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-www-modern-bbc2d596-20251001" !== isomorphicReactPackageVersion)
if ("19.2.0-www-modern-67e24bc5-20251001" !== 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-bbc2d596-20251001\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.2.0-www-modern-67e24bc5-20251001\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -32692,10 +32692,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.2.0-www-modern-bbc2d596-20251001",
version: "19.2.0-www-modern-67e24bc5-20251001",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-bbc2d596-20251001"
reconcilerVersion: "19.2.0-www-modern-67e24bc5-20251001"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -33308,7 +33308,7 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.2.0-www-modern-bbc2d596-20251001";
exports.version = "19.2.0-www-modern-67e24bc5-20251001";
"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.2.0-www-classic-bbc2d596-20251001" !==
"19.2.0-www-classic-67e24bc5-20251001" !==
isomorphicReactPackageVersion$jscomp$inline_2128
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2128,
"19.2.0-www-classic-bbc2d596-20251001"
"19.2.0-www-classic-67e24bc5-20251001"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -19995,10 +19995,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2760 = {
bundleType: 0,
version: "19.2.0-www-classic-bbc2d596-20251001",
version: "19.2.0-www-classic-67e24bc5-20251001",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-bbc2d596-20251001"
reconcilerVersion: "19.2.0-www-classic-67e24bc5-20251001"
};
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.2.0-www-classic-bbc2d596-20251001";
exports.version = "19.2.0-www-classic-67e24bc5-20251001";
@@ -19699,14 +19699,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_2118 = React.version;
if (
"19.2.0-www-modern-bbc2d596-20251001" !==
"19.2.0-www-modern-67e24bc5-20251001" !==
isomorphicReactPackageVersion$jscomp$inline_2118
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2118,
"19.2.0-www-modern-bbc2d596-20251001"
"19.2.0-www-modern-67e24bc5-20251001"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -19724,10 +19724,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2742 = {
bundleType: 0,
version: "19.2.0-www-modern-bbc2d596-20251001",
version: "19.2.0-www-modern-67e24bc5-20251001",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-bbc2d596-20251001"
reconcilerVersion: "19.2.0-www-modern-67e24bc5-20251001"
};
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.2.0-www-modern-bbc2d596-20251001";
exports.version = "19.2.0-www-modern-67e24bc5-20251001";
@@ -22221,14 +22221,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_2438 = React.version;
if (
"19.2.0-www-classic-bbc2d596-20251001" !==
"19.2.0-www-classic-67e24bc5-20251001" !==
isomorphicReactPackageVersion$jscomp$inline_2438
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2438,
"19.2.0-www-classic-bbc2d596-20251001"
"19.2.0-www-classic-67e24bc5-20251001"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -22246,10 +22246,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2440 = {
bundleType: 0,
version: "19.2.0-www-classic-bbc2d596-20251001",
version: "19.2.0-www-classic-67e24bc5-20251001",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-bbc2d596-20251001"
reconcilerVersion: "19.2.0-www-classic-67e24bc5-20251001"
};
enableSchedulingProfiler &&
((internals$jscomp$inline_2440.getLaneLabelMap = getLaneLabelMap),
@@ -22682,7 +22682,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.2.0-www-classic-bbc2d596-20251001";
exports.version = "19.2.0-www-classic-67e24bc5-20251001";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -22015,14 +22015,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_2428 = React.version;
if (
"19.2.0-www-modern-bbc2d596-20251001" !==
"19.2.0-www-modern-67e24bc5-20251001" !==
isomorphicReactPackageVersion$jscomp$inline_2428
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2428,
"19.2.0-www-modern-bbc2d596-20251001"
"19.2.0-www-modern-67e24bc5-20251001"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -22040,10 +22040,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2430 = {
bundleType: 0,
version: "19.2.0-www-modern-bbc2d596-20251001",
version: "19.2.0-www-modern-67e24bc5-20251001",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-bbc2d596-20251001"
reconcilerVersion: "19.2.0-www-modern-67e24bc5-20251001"
};
enableSchedulingProfiler &&
((internals$jscomp$inline_2430.getLaneLabelMap = getLaneLabelMap),
@@ -22476,7 +22476,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.2.0-www-modern-bbc2d596-20251001";
exports.version = "19.2.0-www-modern-67e24bc5-20251001";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -10304,5 +10304,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-bbc2d596-20251001";
exports.version = "19.2.0-www-classic-67e24bc5-20251001";
})();
@@ -10233,5 +10233,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-bbc2d596-20251001";
exports.version = "19.2.0-www-modern-67e24bc5-20251001";
})();
@@ -6995,4 +6995,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-bbc2d596-20251001";
exports.version = "19.2.0-www-classic-67e24bc5-20251001";
@@ -6928,4 +6928,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-bbc2d596-20251001";
exports.version = "19.2.0-www-modern-67e24bc5-20251001";
@@ -33181,11 +33181,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-www-classic-bbc2d596-20251001" !== isomorphicReactPackageVersion)
if ("19.2.0-www-classic-67e24bc5-20251001" !== 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-bbc2d596-20251001\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.2.0-www-classic-67e24bc5-20251001\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -33228,10 +33228,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.2.0-www-classic-bbc2d596-20251001",
version: "19.2.0-www-classic-67e24bc5-20251001",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-bbc2d596-20251001"
reconcilerVersion: "19.2.0-www-classic-67e24bc5-20251001"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -34010,5 +34010,5 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.2.0-www-classic-bbc2d596-20251001";
exports.version = "19.2.0-www-classic-67e24bc5-20251001";
})();
@@ -32966,11 +32966,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-www-modern-bbc2d596-20251001" !== isomorphicReactPackageVersion)
if ("19.2.0-www-modern-67e24bc5-20251001" !== 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-bbc2d596-20251001\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.2.0-www-modern-67e24bc5-20251001\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -33013,10 +33013,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.2.0-www-modern-bbc2d596-20251001",
version: "19.2.0-www-modern-67e24bc5-20251001",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-bbc2d596-20251001"
reconcilerVersion: "19.2.0-www-modern-67e24bc5-20251001"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -33795,5 +33795,5 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.2.0-www-modern-bbc2d596-20251001";
exports.version = "19.2.0-www-modern-67e24bc5-20251001";
})();
@@ -20286,14 +20286,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_2157 = React.version;
if (
"19.2.0-www-classic-bbc2d596-20251001" !==
"19.2.0-www-classic-67e24bc5-20251001" !==
isomorphicReactPackageVersion$jscomp$inline_2157
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2157,
"19.2.0-www-classic-bbc2d596-20251001"
"19.2.0-www-classic-67e24bc5-20251001"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -20311,10 +20311,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2794 = {
bundleType: 0,
version: "19.2.0-www-classic-bbc2d596-20251001",
version: "19.2.0-www-classic-67e24bc5-20251001",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-bbc2d596-20251001"
reconcilerVersion: "19.2.0-www-classic-67e24bc5-20251001"
};
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.2.0-www-classic-bbc2d596-20251001";
exports.version = "19.2.0-www-classic-67e24bc5-20251001";
@@ -20015,14 +20015,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_2147 = React.version;
if (
"19.2.0-www-modern-bbc2d596-20251001" !==
"19.2.0-www-modern-67e24bc5-20251001" !==
isomorphicReactPackageVersion$jscomp$inline_2147
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2147,
"19.2.0-www-modern-bbc2d596-20251001"
"19.2.0-www-modern-67e24bc5-20251001"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -20040,10 +20040,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2776 = {
bundleType: 0,
version: "19.2.0-www-modern-bbc2d596-20251001",
version: "19.2.0-www-modern-67e24bc5-20251001",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-bbc2d596-20251001"
reconcilerVersion: "19.2.0-www-modern-67e24bc5-20251001"
};
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.2.0-www-modern-bbc2d596-20251001";
exports.version = "19.2.0-www-modern-67e24bc5-20251001";
@@ -22958,7 +22958,7 @@ __DEV__ &&
version: rendererVersion,
rendererPackageName: rendererPackageName,
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-bbc2d596-20251001"
reconcilerVersion: "19.2.0-www-classic-67e24bc5-20251001"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -22738,7 +22738,7 @@ __DEV__ &&
version: rendererVersion,
rendererPackageName: rendererPackageName,
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-bbc2d596-20251001"
reconcilerVersion: "19.2.0-www-modern-67e24bc5-20251001"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -14245,7 +14245,7 @@ module.exports = function ($$$config) {
version: rendererVersion,
rendererPackageName: rendererPackageName,
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-bbc2d596-20251001"
reconcilerVersion: "19.2.0-www-classic-67e24bc5-20251001"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -13962,7 +13962,7 @@ module.exports = function ($$$config) {
version: rendererVersion,
rendererPackageName: rendererPackageName,
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-bbc2d596-20251001"
reconcilerVersion: "19.2.0-www-modern-67e24bc5-20251001"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -15705,10 +15705,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.2.0-www-classic-bbc2d596-20251001",
version: "19.2.0-www-classic-67e24bc5-20251001",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-bbc2d596-20251001"
reconcilerVersion: "19.2.0-www-classic-67e24bc5-20251001"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -15844,5 +15844,5 @@ __DEV__ &&
exports.unstable_batchedUpdates = function (fn, a) {
return fn(a);
};
exports.version = "19.2.0-www-classic-bbc2d596-20251001";
exports.version = "19.2.0-www-classic-67e24bc5-20251001";
})();
@@ -15705,10 +15705,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.2.0-www-modern-bbc2d596-20251001",
version: "19.2.0-www-modern-67e24bc5-20251001",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-bbc2d596-20251001"
reconcilerVersion: "19.2.0-www-modern-67e24bc5-20251001"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -15844,5 +15844,5 @@ __DEV__ &&
exports.unstable_batchedUpdates = function (fn, a) {
return fn(a);
};
exports.version = "19.2.0-www-modern-bbc2d596-20251001";
exports.version = "19.2.0-www-modern-67e24bc5-20251001";
})();
+1 -1
View File
@@ -1 +1 @@
19.2.0-www-classic-bbc2d596-20251001
19.2.0-www-classic-67e24bc5-20251001
+1 -1
View File
@@ -1 +1 @@
19.2.0-www-modern-bbc2d596-20251001
19.2.0-www-modern-67e24bc5-20251001