Warn about legacy context when legacy context is not disabled (#30297)

For environments that still have legacy contexts available, this adds a
warning to make the remaining call sites easier to locate and encourage
upgrades.

DiffTrain build for [378b305958](https://github.com/facebook/react/commit/378b305958eb7259cacfce8ad0e66eec07e07074)
This commit is contained in:
kassens
2024-07-10 15:57:56 +00:00
parent 6460f04862
commit c8b941f8d2
36 changed files with 854 additions and 539 deletions
+1 -1
View File
@@ -1 +1 @@
3b2e5f27c5b72708677da27779852b9aa83ef909
378b305958eb7259cacfce8ad0e66eec07e07074
+1 -1
View File
@@ -1 +1 @@
3b2e5f27c5b72708677da27779852b9aa83ef909
378b305958eb7259cacfce8ad0e66eec07e07074
+1 -1
View File
@@ -1998,7 +1998,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.0.0-www-classic-3b2e5f27c5-20240710";
exports.version = "19.0.0-www-classic-378b305958-20240710";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+1 -1
View File
@@ -1978,7 +1978,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.0.0-www-modern-3b2e5f27c5-20240710";
exports.version = "19.0.0-www-modern-378b305958-20240710";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+1 -1
View File
@@ -669,4 +669,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-www-classic-3b2e5f27c5-20240710";
exports.version = "19.0.0-www-classic-378b305958-20240710";
+1 -1
View File
@@ -669,4 +669,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-www-modern-3b2e5f27c5-20240710";
exports.version = "19.0.0-www-modern-378b305958-20240710";
@@ -673,7 +673,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-www-classic-3b2e5f27c5-20240710";
exports.version = "19.0.0-www-classic-378b305958-20240710";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -673,7 +673,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-www-modern-3b2e5f27c5-20240710";
exports.version = "19.0.0-www-modern-378b305958-20240710";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+28 -3
View File
@@ -5796,6 +5796,20 @@ __DEV__ &&
"%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",
name
));
ctor.childContextTypes &&
!didWarnAboutChildContextTypes.has(ctor) &&
(didWarnAboutChildContextTypes.add(ctor),
error$jscomp$0(
"%s uses the legacy childContextTypes API which will soon be removed. Use React.createContext() instead. (https://react.dev/link/legacy-context)",
name
));
ctor.contextTypes &&
!didWarnAboutContextTypes$1.has(ctor) &&
(didWarnAboutContextTypes$1.add(ctor),
error$jscomp$0(
"%s uses the legacy contextTypes API which will soon be removed. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",
name
));
"function" === typeof instance.componentShouldUpdate &&
error$jscomp$0(
"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",
@@ -6697,7 +6711,15 @@ __DEV__ &&
null
);
null === current &&
validateFunctionComponentInDev(workInProgress, workInProgress.type);
(validateFunctionComponentInDev(workInProgress, workInProgress.type),
Component.contextTypes &&
((componentName = getComponentNameFromType(Component) || "Unknown"),
didWarnAboutContextTypes[componentName] ||
((didWarnAboutContextTypes[componentName] = !0),
error$jscomp$0(
"%s uses the legacy contextTypes API which will be removed soon. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",
componentName
))));
componentName = isContextProvider(Component)
? previousContext
: contextStackCursor$1.current;
@@ -16416,6 +16438,8 @@ __DEV__ &&
var didWarnAboutDirectlyAssigningPropsToState = new Set();
var didWarnAboutUndefinedDerivedState = new Set();
var didWarnAboutContextTypeAndContextTypes = new Set();
var didWarnAboutContextTypes$1 = new Set();
var didWarnAboutChildContextTypes = new Set();
var didWarnAboutInvalidateContextType = new Set();
var didWarnOnInvalidCallback = new Set();
Object.freeze(fakeInternalInstance);
@@ -16543,6 +16567,7 @@ __DEV__ &&
didReceiveUpdate = !1;
var didWarnAboutBadClass = {};
var didWarnAboutContextTypeOnFunctionComponent = {};
var didWarnAboutContextTypes = {};
var didWarnAboutGetDerivedStateOnFunctionComponent = {};
var didWarnAboutReassigningProps = !1;
var didWarnAboutRevealOrder = {};
@@ -16937,14 +16962,14 @@ __DEV__ &&
scheduleRoot: scheduleRoot,
setRefreshHandler: setRefreshHandler,
getCurrentFiber: getCurrentFiberForDevTools,
reconcilerVersion: "19.0.0-www-classic-3b2e5f27c5-20240710"
reconcilerVersion: "19.0.0-www-classic-378b305958-20240710"
});
})({
findFiberByHostInstance: function () {
return null;
},
bundleType: 1,
version: "19.0.0-www-classic-3b2e5f27c5-20240710",
version: "19.0.0-www-classic-378b305958-20240710",
rendererPackageName: "react-art"
});
var ClippingRectangle = TYPES.CLIPPING_RECTANGLE,
+15 -11
View File
@@ -6243,10 +6243,13 @@ __DEV__ &&
null === current &&
(validateFunctionComponentInDev(workInProgress, workInProgress.type),
Component.contextTypes &&
error$jscomp$0(
"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead.",
getComponentNameFromType(Component) || "Unknown"
));
((componentName = getComponentNameFromType(Component) || "Unknown"),
didWarnAboutContextTypes[componentName] ||
((didWarnAboutContextTypes[componentName] = !0),
error$jscomp$0(
"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",
componentName
))));
prepareToReadContext(workInProgress, renderLanes);
enableSchedulingProfiler && markComponentRenderStarted(workInProgress);
Component = renderWithHooks(
@@ -6463,14 +6466,14 @@ __DEV__ &&
!didWarnAboutChildContextTypes.has(Component) &&
(didWarnAboutChildContextTypes.add(Component),
error$jscomp$0(
"%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead.",
"%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",
state
));
Component.contextTypes &&
!didWarnAboutContextTypes.has(Component) &&
(didWarnAboutContextTypes.add(Component),
!didWarnAboutContextTypes$1.has(Component) &&
(didWarnAboutContextTypes$1.add(Component),
error$jscomp$0(
"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead.",
"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",
state
));
"function" === typeof _instance.componentShouldUpdate &&
@@ -15851,7 +15854,7 @@ __DEV__ &&
var didWarnAboutLegacyLifecyclesAndDerivedState = new Set();
var didWarnAboutDirectlyAssigningPropsToState = new Set();
var didWarnAboutUndefinedDerivedState = new Set();
var didWarnAboutContextTypes = new Set();
var didWarnAboutContextTypes$1 = new Set();
var didWarnAboutChildContextTypes = new Set();
var didWarnAboutInvalidateContextType = new Set();
var didWarnOnInvalidCallback = new Set();
@@ -15980,6 +15983,7 @@ __DEV__ &&
didReceiveUpdate = !1;
var didWarnAboutBadClass = {};
var didWarnAboutContextTypeOnFunctionComponent = {};
var didWarnAboutContextTypes = {};
var didWarnAboutGetDerivedStateOnFunctionComponent = {};
var didWarnAboutReassigningProps = !1;
var didWarnAboutRevealOrder = {};
@@ -16373,14 +16377,14 @@ __DEV__ &&
scheduleRoot: scheduleRoot,
setRefreshHandler: setRefreshHandler,
getCurrentFiber: getCurrentFiberForDevTools,
reconcilerVersion: "19.0.0-www-modern-3b2e5f27c5-20240710"
reconcilerVersion: "19.0.0-www-modern-378b305958-20240710"
});
})({
findFiberByHostInstance: function () {
return null;
},
bundleType: 1,
version: "19.0.0-www-modern-3b2e5f27c5-20240710",
version: "19.0.0-www-modern-378b305958-20240710",
rendererPackageName: "react-art"
});
var ClippingRectangle = TYPES.CLIPPING_RECTANGLE,
@@ -10718,7 +10718,7 @@ var slice = Array.prototype.slice,
return null;
},
bundleType: 0,
version: "19.0.0-www-classic-3b2e5f27c5-20240710",
version: "19.0.0-www-classic-378b305958-20240710",
rendererPackageName: "react-art"
};
var internals$jscomp$inline_1386 = {
@@ -10749,7 +10749,7 @@ var internals$jscomp$inline_1386 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-classic-3b2e5f27c5-20240710"
reconcilerVersion: "19.0.0-www-classic-378b305958-20240710"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1387 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -10171,7 +10171,7 @@ var slice = Array.prototype.slice,
return null;
},
bundleType: 0,
version: "19.0.0-www-modern-3b2e5f27c5-20240710",
version: "19.0.0-www-modern-378b305958-20240710",
rendererPackageName: "react-art"
};
var internals$jscomp$inline_1372 = {
@@ -10202,7 +10202,7 @@ var internals$jscomp$inline_1372 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-modern-3b2e5f27c5-20240710"
reconcilerVersion: "19.0.0-www-modern-378b305958-20240710"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1373 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
+31 -6
View File
@@ -7615,6 +7615,20 @@ __DEV__ &&
"%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",
name
));
ctor.childContextTypes &&
!didWarnAboutChildContextTypes.has(ctor) &&
(didWarnAboutChildContextTypes.add(ctor),
error$jscomp$0(
"%s uses the legacy childContextTypes API which will soon be removed. Use React.createContext() instead. (https://react.dev/link/legacy-context)",
name
));
ctor.contextTypes &&
!didWarnAboutContextTypes$1.has(ctor) &&
(didWarnAboutContextTypes$1.add(ctor),
error$jscomp$0(
"%s uses the legacy contextTypes API which will soon be removed. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",
name
));
"function" === typeof instance.componentShouldUpdate &&
error$jscomp$0(
"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",
@@ -8645,7 +8659,15 @@ __DEV__ &&
null
);
null === current &&
validateFunctionComponentInDev(workInProgress, workInProgress.type);
(validateFunctionComponentInDev(workInProgress, workInProgress.type),
Component.contextTypes &&
((componentName = getComponentNameFromType(Component) || "Unknown"),
didWarnAboutContextTypes[componentName] ||
((didWarnAboutContextTypes[componentName] = !0),
error$jscomp$0(
"%s uses the legacy contextTypes API which will be removed soon. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",
componentName
))));
componentName = isContextProvider(Component)
? previousContext
: contextStackCursor.current;
@@ -26342,6 +26364,8 @@ __DEV__ &&
var didWarnAboutDirectlyAssigningPropsToState = new Set();
var didWarnAboutUndefinedDerivedState = new Set();
var didWarnAboutContextTypeAndContextTypes = new Set();
var didWarnAboutContextTypes$1 = new Set();
var didWarnAboutChildContextTypes = new Set();
var didWarnAboutInvalidateContextType = new Set();
var didWarnOnInvalidCallback = new Set();
Object.freeze(fakeInternalInstance);
@@ -26472,6 +26496,7 @@ __DEV__ &&
didReceiveUpdate = !1;
var didWarnAboutBadClass = {};
var didWarnAboutContextTypeOnFunctionComponent = {};
var didWarnAboutContextTypes = {};
var didWarnAboutGetDerivedStateOnFunctionComponent = {};
var didWarnAboutReassigningProps = !1;
var didWarnAboutRevealOrder = {};
@@ -27434,11 +27459,11 @@ __DEV__ &&
: flushSyncErrorInBuildsThatSupportLegacyMode;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.0.0-www-classic-3b2e5f27c5-20240710" !== isomorphicReactPackageVersion)
if ("19.0.0-www-classic-378b305958-20240710" !== 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.0.0-www-classic-3b2e5f27c5-20240710\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.0.0-www-classic-378b305958-20240710\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -27504,12 +27529,12 @@ __DEV__ &&
scheduleRoot: scheduleRoot,
setRefreshHandler: setRefreshHandler,
getCurrentFiber: getCurrentFiberForDevTools,
reconcilerVersion: "19.0.0-www-classic-3b2e5f27c5-20240710"
reconcilerVersion: "19.0.0-www-classic-378b305958-20240710"
});
})({
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 1,
version: "19.0.0-www-classic-3b2e5f27c5-20240710",
version: "19.0.0-www-classic-378b305958-20240710",
rendererPackageName: "react-dom"
}) &&
canUseDOM &&
@@ -28152,7 +28177,7 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.0.0-www-classic-3b2e5f27c5-20240710";
exports.version = "19.0.0-www-classic-378b305958-20240710";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+18 -14
View File
@@ -8133,10 +8133,13 @@ __DEV__ &&
null === current &&
(validateFunctionComponentInDev(workInProgress, workInProgress.type),
Component.contextTypes &&
error$jscomp$0(
"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead.",
getComponentNameFromType(Component) || "Unknown"
));
((componentName = getComponentNameFromType(Component) || "Unknown"),
didWarnAboutContextTypes[componentName] ||
((didWarnAboutContextTypes[componentName] = !0),
error$jscomp$0(
"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",
componentName
))));
prepareToReadContext(workInProgress, renderLanes);
enableSchedulingProfiler && markComponentRenderStarted(workInProgress);
Component = renderWithHooks(
@@ -8357,14 +8360,14 @@ __DEV__ &&
!didWarnAboutChildContextTypes.has(Component) &&
(didWarnAboutChildContextTypes.add(Component),
error$jscomp$0(
"%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead.",
"%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",
state
));
Component.contextTypes &&
!didWarnAboutContextTypes.has(Component) &&
(didWarnAboutContextTypes.add(Component),
!didWarnAboutContextTypes$1.has(Component) &&
(didWarnAboutContextTypes$1.add(Component),
error$jscomp$0(
"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead.",
"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",
state
));
"function" === typeof _instance.componentShouldUpdate &&
@@ -25494,7 +25497,7 @@ __DEV__ &&
var didWarnAboutLegacyLifecyclesAndDerivedState = new Set();
var didWarnAboutDirectlyAssigningPropsToState = new Set();
var didWarnAboutUndefinedDerivedState = new Set();
var didWarnAboutContextTypes = new Set();
var didWarnAboutContextTypes$1 = new Set();
var didWarnAboutChildContextTypes = new Set();
var didWarnAboutInvalidateContextType = new Set();
var didWarnOnInvalidCallback = new Set();
@@ -25626,6 +25629,7 @@ __DEV__ &&
didReceiveUpdate = !1;
var didWarnAboutBadClass = {};
var didWarnAboutContextTypeOnFunctionComponent = {};
var didWarnAboutContextTypes = {};
var didWarnAboutGetDerivedStateOnFunctionComponent = {};
var didWarnAboutReassigningProps = !1;
var didWarnAboutRevealOrder = {};
@@ -26587,11 +26591,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.0.0-www-modern-3b2e5f27c5-20240710" !== isomorphicReactPackageVersion)
if ("19.0.0-www-modern-378b305958-20240710" !== 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.0.0-www-modern-3b2e5f27c5-20240710\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.0.0-www-modern-378b305958-20240710\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -26656,12 +26660,12 @@ __DEV__ &&
scheduleRoot: scheduleRoot,
setRefreshHandler: setRefreshHandler,
getCurrentFiber: getCurrentFiberForDevTools,
reconcilerVersion: "19.0.0-www-modern-3b2e5f27c5-20240710"
reconcilerVersion: "19.0.0-www-modern-378b305958-20240710"
});
})({
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 1,
version: "19.0.0-www-modern-3b2e5f27c5-20240710",
version: "19.0.0-www-modern-378b305958-20240710",
rendererPackageName: "react-dom"
}) &&
canUseDOM &&
@@ -27257,7 +27261,7 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.0.0-www-modern-3b2e5f27c5-20240710";
exports.version = "19.0.0-www-modern-378b305958-20240710";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -17163,14 +17163,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1769 = React.version;
if (
"19.0.0-www-classic-3b2e5f27c5-20240710" !==
"19.0.0-www-classic-378b305958-20240710" !==
isomorphicReactPackageVersion$jscomp$inline_1769
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1769,
"19.0.0-www-classic-3b2e5f27c5-20240710"
"19.0.0-www-classic-378b305958-20240710"
)
);
function flushSyncFromReconciler(fn) {
@@ -17216,7 +17216,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1776 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "19.0.0-www-classic-3b2e5f27c5-20240710",
version: "19.0.0-www-classic-378b305958-20240710",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2220 = {
@@ -17246,7 +17246,7 @@ var internals$jscomp$inline_2220 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-classic-3b2e5f27c5-20240710"
reconcilerVersion: "19.0.0-www-classic-378b305958-20240710"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2221 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -17710,4 +17710,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-www-classic-3b2e5f27c5-20240710";
exports.version = "19.0.0-www-classic-378b305958-20240710";
@@ -16478,14 +16478,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1740 = React.version;
if (
"19.0.0-www-modern-3b2e5f27c5-20240710" !==
"19.0.0-www-modern-378b305958-20240710" !==
isomorphicReactPackageVersion$jscomp$inline_1740
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1740,
"19.0.0-www-modern-3b2e5f27c5-20240710"
"19.0.0-www-modern-378b305958-20240710"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -16504,7 +16504,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1742 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "19.0.0-www-modern-3b2e5f27c5-20240710",
version: "19.0.0-www-modern-378b305958-20240710",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2211 = {
@@ -16534,7 +16534,7 @@ var internals$jscomp$inline_2211 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-modern-3b2e5f27c5-20240710"
reconcilerVersion: "19.0.0-www-modern-378b305958-20240710"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2212 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -16905,4 +16905,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-www-modern-3b2e5f27c5-20240710";
exports.version = "19.0.0-www-modern-378b305958-20240710";
@@ -17930,14 +17930,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1856 = React.version;
if (
"19.0.0-www-classic-3b2e5f27c5-20240710" !==
"19.0.0-www-classic-378b305958-20240710" !==
isomorphicReactPackageVersion$jscomp$inline_1856
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1856,
"19.0.0-www-classic-3b2e5f27c5-20240710"
"19.0.0-www-classic-378b305958-20240710"
)
);
function flushSyncFromReconciler(fn) {
@@ -17983,7 +17983,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1863 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "19.0.0-www-classic-3b2e5f27c5-20240710",
version: "19.0.0-www-classic-378b305958-20240710",
rendererPackageName: "react-dom"
};
(function (internals) {
@@ -18027,7 +18027,7 @@ var devToolsConfig$jscomp$inline_1863 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-classic-3b2e5f27c5-20240710"
reconcilerVersion: "19.0.0-www-classic-378b305958-20240710"
});
function ReactDOMRoot(internalRoot) {
this._internalRoot = internalRoot;
@@ -18478,7 +18478,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-www-classic-3b2e5f27c5-20240710";
exports.version = "19.0.0-www-classic-378b305958-20240710";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -17228,14 +17228,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1827 = React.version;
if (
"19.0.0-www-modern-3b2e5f27c5-20240710" !==
"19.0.0-www-modern-378b305958-20240710" !==
isomorphicReactPackageVersion$jscomp$inline_1827
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1827,
"19.0.0-www-modern-3b2e5f27c5-20240710"
"19.0.0-www-modern-378b305958-20240710"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -17254,7 +17254,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1829 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "19.0.0-www-modern-3b2e5f27c5-20240710",
version: "19.0.0-www-modern-378b305958-20240710",
rendererPackageName: "react-dom"
};
(function (internals) {
@@ -17298,7 +17298,7 @@ var devToolsConfig$jscomp$inline_1829 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-modern-3b2e5f27c5-20240710"
reconcilerVersion: "19.0.0-www-modern-378b305958-20240710"
});
function ReactDOMRoot(internalRoot) {
this._internalRoot = internalRoot;
@@ -17656,7 +17656,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-www-modern-3b2e5f27c5-20240710";
exports.version = "19.0.0-www-modern-378b305958-20240710";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
File diff suppressed because it is too large Load Diff
@@ -4914,14 +4914,14 @@ __DEV__ &&
!didWarnAboutChildContextTypes.has(type) &&
(didWarnAboutChildContextTypes.add(type),
error$jscomp$2(
"%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead.",
"%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",
defaultProps
));
type.contextTypes &&
!didWarnAboutContextTypes.has(type) &&
(didWarnAboutContextTypes.add(type),
!didWarnAboutContextTypes$1.has(type) &&
(didWarnAboutContextTypes$1.add(type),
error$jscomp$2(
"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead.",
"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",
defaultProps
));
"function" === typeof newProps.componentShouldUpdate &&
@@ -5136,10 +5136,13 @@ __DEV__ &&
(defaultProps = actionStateCounter),
(ref = actionStateMatchingIndex),
type.contextTypes &&
error$jscomp$2(
"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead.",
getComponentNameFromType(type) || "Unknown"
),
((_propName = getComponentNameFromType(type) || "Unknown"),
didWarnAboutContextTypes[_propName] ||
((didWarnAboutContextTypes[_propName] = !0),
error$jscomp$2(
"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead.",
_propName
))),
type &&
type.childContextTypes &&
error$jscomp$2(
@@ -8447,7 +8450,7 @@ __DEV__ &&
var didWarnAboutLegacyLifecyclesAndDerivedState = new Set();
var didWarnAboutDirectlyAssigningPropsToState = new Set();
var didWarnAboutUndefinedDerivedState = new Set();
var didWarnAboutContextTypes = new Set();
var didWarnAboutContextTypes$1 = new Set();
var didWarnAboutChildContextTypes = new Set();
var didWarnAboutInvalidateContextType = new Set();
var didWarnOnInvalidCallback = new Set();
@@ -8645,6 +8648,7 @@ __DEV__ &&
POSTPONED = 5,
currentRequest = null,
didWarnAboutBadClass = {},
didWarnAboutContextTypes = {},
didWarnAboutContextTypeOnFunctionComponent = {},
didWarnAboutGetDerivedStateOnFunctionComponent = {},
didWarnAboutReassigningProps = !1,
@@ -8667,5 +8671,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.0.0-www-modern-3b2e5f27c5-20240710";
exports.version = "19.0.0-www-modern-378b305958-20240710";
})();
@@ -5799,4 +5799,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.0.0-www-classic-3b2e5f27c5-20240710";
exports.version = "19.0.0-www-classic-378b305958-20240710";
@@ -5722,4 +5722,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.0.0-www-modern-3b2e5f27c5-20240710";
exports.version = "19.0.0-www-modern-378b305958-20240710";
@@ -4697,14 +4697,14 @@ __DEV__ &&
!didWarnAboutChildContextTypes.has(type) &&
(didWarnAboutChildContextTypes.add(type),
error$jscomp$2(
"%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead.",
"%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",
defaultProps
));
type.contextTypes &&
!didWarnAboutContextTypes.has(type) &&
(didWarnAboutContextTypes.add(type),
!didWarnAboutContextTypes$1.has(type) &&
(didWarnAboutContextTypes$1.add(type),
error$jscomp$2(
"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead.",
"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",
defaultProps
));
"function" === typeof newProps.componentShouldUpdate &&
@@ -4919,10 +4919,13 @@ __DEV__ &&
(defaultProps = actionStateCounter),
(ref = actionStateMatchingIndex),
type.contextTypes &&
error$jscomp$2(
"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead.",
getComponentNameFromType(type) || "Unknown"
),
((_propName = getComponentNameFromType(type) || "Unknown"),
didWarnAboutContextTypes[_propName] ||
((didWarnAboutContextTypes[_propName] = !0),
error$jscomp$2(
"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead.",
_propName
))),
type &&
type.childContextTypes &&
error$jscomp$2(
@@ -7847,7 +7850,7 @@ __DEV__ &&
var didWarnAboutLegacyLifecyclesAndDerivedState = new Set();
var didWarnAboutDirectlyAssigningPropsToState = new Set();
var didWarnAboutUndefinedDerivedState = new Set();
var didWarnAboutContextTypes = new Set();
var didWarnAboutContextTypes$1 = new Set();
var didWarnAboutChildContextTypes = new Set();
var didWarnAboutInvalidateContextType = new Set();
var didWarnOnInvalidCallback = new Set();
@@ -8040,6 +8043,7 @@ __DEV__ &&
)();
var currentRequest = null,
didWarnAboutBadClass = {},
didWarnAboutContextTypes = {},
didWarnAboutContextTypeOnFunctionComponent = {},
didWarnAboutGetDerivedStateOnFunctionComponent = {},
didWarnAboutReassigningProps = !1,
@@ -7656,6 +7656,20 @@ __DEV__ &&
"%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",
name
));
ctor.childContextTypes &&
!didWarnAboutChildContextTypes.has(ctor) &&
(didWarnAboutChildContextTypes.add(ctor),
error$jscomp$0(
"%s uses the legacy childContextTypes API which will soon be removed. Use React.createContext() instead. (https://react.dev/link/legacy-context)",
name
));
ctor.contextTypes &&
!didWarnAboutContextTypes$1.has(ctor) &&
(didWarnAboutContextTypes$1.add(ctor),
error$jscomp$0(
"%s uses the legacy contextTypes API which will soon be removed. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",
name
));
"function" === typeof instance.componentShouldUpdate &&
error$jscomp$0(
"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",
@@ -8686,7 +8700,15 @@ __DEV__ &&
null
);
null === current &&
validateFunctionComponentInDev(workInProgress, workInProgress.type);
(validateFunctionComponentInDev(workInProgress, workInProgress.type),
Component.contextTypes &&
((componentName = getComponentNameFromType(Component) || "Unknown"),
didWarnAboutContextTypes[componentName] ||
((didWarnAboutContextTypes[componentName] = !0),
error$jscomp$0(
"%s uses the legacy contextTypes API which will be removed soon. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",
componentName
))));
componentName = isContextProvider(Component)
? previousContext
: contextStackCursor.current;
@@ -26671,6 +26693,8 @@ __DEV__ &&
var didWarnAboutDirectlyAssigningPropsToState = new Set();
var didWarnAboutUndefinedDerivedState = new Set();
var didWarnAboutContextTypeAndContextTypes = new Set();
var didWarnAboutContextTypes$1 = new Set();
var didWarnAboutChildContextTypes = new Set();
var didWarnAboutInvalidateContextType = new Set();
var didWarnOnInvalidCallback = new Set();
Object.freeze(fakeInternalInstance);
@@ -26801,6 +26825,7 @@ __DEV__ &&
didReceiveUpdate = !1;
var didWarnAboutBadClass = {};
var didWarnAboutContextTypeOnFunctionComponent = {};
var didWarnAboutContextTypes = {};
var didWarnAboutGetDerivedStateOnFunctionComponent = {};
var didWarnAboutReassigningProps = !1;
var didWarnAboutRevealOrder = {};
@@ -27768,11 +27793,11 @@ __DEV__ &&
: flushSyncErrorInBuildsThatSupportLegacyMode;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.0.0-www-classic-3b2e5f27c5-20240710" !== isomorphicReactPackageVersion)
if ("19.0.0-www-classic-378b305958-20240710" !== 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.0.0-www-classic-3b2e5f27c5-20240710\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.0.0-www-classic-378b305958-20240710\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -27838,12 +27863,12 @@ __DEV__ &&
scheduleRoot: scheduleRoot,
setRefreshHandler: setRefreshHandler,
getCurrentFiber: getCurrentFiberForDevTools,
reconcilerVersion: "19.0.0-www-classic-3b2e5f27c5-20240710"
reconcilerVersion: "19.0.0-www-classic-378b305958-20240710"
});
})({
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 1,
version: "19.0.0-www-classic-3b2e5f27c5-20240710",
version: "19.0.0-www-classic-378b305958-20240710",
rendererPackageName: "react-dom"
}) &&
canUseDOM &&
@@ -28652,5 +28677,5 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.0.0-www-classic-3b2e5f27c5-20240710";
exports.version = "19.0.0-www-classic-378b305958-20240710";
})();
@@ -8174,10 +8174,13 @@ __DEV__ &&
null === current &&
(validateFunctionComponentInDev(workInProgress, workInProgress.type),
Component.contextTypes &&
error$jscomp$0(
"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead.",
getComponentNameFromType(Component) || "Unknown"
));
((componentName = getComponentNameFromType(Component) || "Unknown"),
didWarnAboutContextTypes[componentName] ||
((didWarnAboutContextTypes[componentName] = !0),
error$jscomp$0(
"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",
componentName
))));
prepareToReadContext(workInProgress, renderLanes);
enableSchedulingProfiler && markComponentRenderStarted(workInProgress);
Component = renderWithHooks(
@@ -8398,14 +8401,14 @@ __DEV__ &&
!didWarnAboutChildContextTypes.has(Component) &&
(didWarnAboutChildContextTypes.add(Component),
error$jscomp$0(
"%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead.",
"%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",
state
));
Component.contextTypes &&
!didWarnAboutContextTypes.has(Component) &&
(didWarnAboutContextTypes.add(Component),
!didWarnAboutContextTypes$1.has(Component) &&
(didWarnAboutContextTypes$1.add(Component),
error$jscomp$0(
"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead.",
"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",
state
));
"function" === typeof _instance.componentShouldUpdate &&
@@ -25823,7 +25826,7 @@ __DEV__ &&
var didWarnAboutLegacyLifecyclesAndDerivedState = new Set();
var didWarnAboutDirectlyAssigningPropsToState = new Set();
var didWarnAboutUndefinedDerivedState = new Set();
var didWarnAboutContextTypes = new Set();
var didWarnAboutContextTypes$1 = new Set();
var didWarnAboutChildContextTypes = new Set();
var didWarnAboutInvalidateContextType = new Set();
var didWarnOnInvalidCallback = new Set();
@@ -25955,6 +25958,7 @@ __DEV__ &&
didReceiveUpdate = !1;
var didWarnAboutBadClass = {};
var didWarnAboutContextTypeOnFunctionComponent = {};
var didWarnAboutContextTypes = {};
var didWarnAboutGetDerivedStateOnFunctionComponent = {};
var didWarnAboutReassigningProps = !1;
var didWarnAboutRevealOrder = {};
@@ -26921,11 +26925,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.0.0-www-modern-3b2e5f27c5-20240710" !== isomorphicReactPackageVersion)
if ("19.0.0-www-modern-378b305958-20240710" !== 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.0.0-www-modern-3b2e5f27c5-20240710\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.0.0-www-modern-378b305958-20240710\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -26990,12 +26994,12 @@ __DEV__ &&
scheduleRoot: scheduleRoot,
setRefreshHandler: setRefreshHandler,
getCurrentFiber: getCurrentFiberForDevTools,
reconcilerVersion: "19.0.0-www-modern-3b2e5f27c5-20240710"
reconcilerVersion: "19.0.0-www-modern-378b305958-20240710"
});
})({
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 1,
version: "19.0.0-www-modern-3b2e5f27c5-20240710",
version: "19.0.0-www-modern-378b305958-20240710",
rendererPackageName: "react-dom"
}) &&
canUseDOM &&
@@ -27757,5 +27761,5 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.0.0-www-modern-3b2e5f27c5-20240710";
exports.version = "19.0.0-www-modern-378b305958-20240710";
})();
@@ -17492,14 +17492,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1799 = React.version;
if (
"19.0.0-www-classic-3b2e5f27c5-20240710" !==
"19.0.0-www-classic-378b305958-20240710" !==
isomorphicReactPackageVersion$jscomp$inline_1799
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1799,
"19.0.0-www-classic-3b2e5f27c5-20240710"
"19.0.0-www-classic-378b305958-20240710"
)
);
function flushSyncFromReconciler(fn) {
@@ -17545,7 +17545,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1806 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "19.0.0-www-classic-3b2e5f27c5-20240710",
version: "19.0.0-www-classic-378b305958-20240710",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2255 = {
@@ -17575,7 +17575,7 @@ var internals$jscomp$inline_2255 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-classic-3b2e5f27c5-20240710"
reconcilerVersion: "19.0.0-www-classic-378b305958-20240710"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2256 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -18190,4 +18190,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-www-classic-3b2e5f27c5-20240710";
exports.version = "19.0.0-www-classic-378b305958-20240710";
@@ -16866,14 +16866,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_1770 = React.version;
if (
"19.0.0-www-modern-3b2e5f27c5-20240710" !==
"19.0.0-www-modern-378b305958-20240710" !==
isomorphicReactPackageVersion$jscomp$inline_1770
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_1770,
"19.0.0-www-modern-3b2e5f27c5-20240710"
"19.0.0-www-modern-378b305958-20240710"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -16892,7 +16892,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1772 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "19.0.0-www-modern-3b2e5f27c5-20240710",
version: "19.0.0-www-modern-378b305958-20240710",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2246 = {
@@ -16922,7 +16922,7 @@ var internals$jscomp$inline_2246 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-modern-3b2e5f27c5-20240710"
reconcilerVersion: "19.0.0-www-modern-378b305958-20240710"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2247 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -17444,4 +17444,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.0.0-www-modern-3b2e5f27c5-20240710";
exports.version = "19.0.0-www-modern-378b305958-20240710";
@@ -5955,6 +5955,20 @@ __DEV__ &&
"%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",
name
));
ctor.childContextTypes &&
!didWarnAboutChildContextTypes.has(ctor) &&
(didWarnAboutChildContextTypes.add(ctor),
error$jscomp$0(
"%s uses the legacy childContextTypes API which will soon be removed. Use React.createContext() instead. (https://react.dev/link/legacy-context)",
name
));
ctor.contextTypes &&
!didWarnAboutContextTypes$1.has(ctor) &&
(didWarnAboutContextTypes$1.add(ctor),
error$jscomp$0(
"%s uses the legacy contextTypes API which will soon be removed. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",
name
));
"function" === typeof instance.componentShouldUpdate &&
error$jscomp$0(
"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",
@@ -6935,7 +6949,15 @@ __DEV__ &&
null
);
null === current &&
validateFunctionComponentInDev(workInProgress, workInProgress.type);
(validateFunctionComponentInDev(workInProgress, workInProgress.type),
Component.contextTypes &&
((componentName = getComponentNameFromType(Component) || "Unknown"),
didWarnAboutContextTypes[componentName] ||
((didWarnAboutContextTypes[componentName] = !0),
error$jscomp$0(
"%s uses the legacy contextTypes API which will be removed soon. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",
componentName
))));
componentName = isContextProvider(Component)
? previousContext
: contextStackCursor$1.current;
@@ -18156,6 +18178,8 @@ __DEV__ &&
var didWarnAboutDirectlyAssigningPropsToState = new Set();
var didWarnAboutUndefinedDerivedState = new Set();
var didWarnAboutContextTypeAndContextTypes = new Set();
var didWarnAboutContextTypes$1 = new Set();
var didWarnAboutChildContextTypes = new Set();
var didWarnAboutInvalidateContextType = new Set();
var didWarnOnInvalidCallback = new Set();
Object.freeze(fakeInternalInstance);
@@ -18286,6 +18310,7 @@ __DEV__ &&
didReceiveUpdate = !1;
var didWarnAboutBadClass = {};
var didWarnAboutContextTypeOnFunctionComponent = {};
var didWarnAboutContextTypes = {};
var didWarnAboutGetDerivedStateOnFunctionComponent = {};
var didWarnAboutReassigningProps = !1;
var didWarnAboutRevealOrder = {};
@@ -19021,7 +19046,7 @@ __DEV__ &&
scheduleRoot: scheduleRoot,
setRefreshHandler: setRefreshHandler,
getCurrentFiber: getCurrentFiberForDevTools,
reconcilerVersion: "19.0.0-www-classic-3b2e5f27c5-20240710"
reconcilerVersion: "19.0.0-www-classic-378b305958-20240710"
});
};
exports.isAlreadyRendering = function () {
@@ -6456,10 +6456,13 @@ __DEV__ &&
null === current &&
(validateFunctionComponentInDev(workInProgress, workInProgress.type),
Component.contextTypes &&
error$jscomp$0(
"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead.",
getComponentNameFromType(Component) || "Unknown"
));
((componentName = getComponentNameFromType(Component) || "Unknown"),
didWarnAboutContextTypes[componentName] ||
((didWarnAboutContextTypes[componentName] = !0),
error$jscomp$0(
"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",
componentName
))));
prepareToReadContext(workInProgress, renderLanes);
enableSchedulingProfiler && markComponentRenderStarted(workInProgress);
Component = renderWithHooks(
@@ -6680,14 +6683,14 @@ __DEV__ &&
!didWarnAboutChildContextTypes.has(Component) &&
(didWarnAboutChildContextTypes.add(Component),
error$jscomp$0(
"%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead.",
"%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",
state
));
Component.contextTypes &&
!didWarnAboutContextTypes.has(Component) &&
(didWarnAboutContextTypes.add(Component),
!didWarnAboutContextTypes$1.has(Component) &&
(didWarnAboutContextTypes$1.add(Component),
error$jscomp$0(
"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead.",
"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",
state
));
"function" === typeof _instance.componentShouldUpdate &&
@@ -17552,7 +17555,7 @@ __DEV__ &&
var didWarnAboutLegacyLifecyclesAndDerivedState = new Set();
var didWarnAboutDirectlyAssigningPropsToState = new Set();
var didWarnAboutUndefinedDerivedState = new Set();
var didWarnAboutContextTypes = new Set();
var didWarnAboutContextTypes$1 = new Set();
var didWarnAboutChildContextTypes = new Set();
var didWarnAboutInvalidateContextType = new Set();
var didWarnOnInvalidCallback = new Set();
@@ -17684,6 +17687,7 @@ __DEV__ &&
didReceiveUpdate = !1;
var didWarnAboutBadClass = {};
var didWarnAboutContextTypeOnFunctionComponent = {};
var didWarnAboutContextTypes = {};
var didWarnAboutGetDerivedStateOnFunctionComponent = {};
var didWarnAboutReassigningProps = !1;
var didWarnAboutRevealOrder = {};
@@ -18406,7 +18410,7 @@ __DEV__ &&
scheduleRoot: scheduleRoot,
setRefreshHandler: setRefreshHandler,
getCurrentFiber: getCurrentFiberForDevTools,
reconcilerVersion: "19.0.0-www-modern-3b2e5f27c5-20240710"
reconcilerVersion: "19.0.0-www-modern-378b305958-20240710"
});
};
exports.isAlreadyRendering = function () {
@@ -12705,7 +12705,7 @@ module.exports = function ($$$config) {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-classic-3b2e5f27c5-20240710"
reconcilerVersion: "19.0.0-www-classic-378b305958-20240710"
};
if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)
devToolsConfig = !1;
@@ -12197,7 +12197,7 @@ module.exports = function ($$$config) {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "19.0.0-www-modern-3b2e5f27c5-20240710"
reconcilerVersion: "19.0.0-www-modern-378b305958-20240710"
};
if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)
devToolsConfig = !1;
@@ -5683,7 +5683,15 @@ __DEV__ &&
null
);
null === current &&
validateFunctionComponentInDev(workInProgress, workInProgress.type);
(validateFunctionComponentInDev(workInProgress, workInProgress.type),
Component.contextTypes &&
((componentName = getComponentNameFromType(Component) || "Unknown"),
didWarnAboutContextTypes[componentName] ||
((didWarnAboutContextTypes[componentName] = !0),
error$jscomp$0(
"%s uses the legacy contextTypes API which will be removed soon. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",
componentName
))));
componentName = isContextProvider(Component)
? previousContext
: contextStackCursor$1.current;
@@ -5924,6 +5932,20 @@ __DEV__ &&
"%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",
lane
));
Component.childContextTypes &&
!didWarnAboutChildContextTypes.has(Component) &&
(didWarnAboutChildContextTypes.add(Component),
error$jscomp$0(
"%s uses the legacy childContextTypes API which will soon be removed. Use React.createContext() instead. (https://react.dev/link/legacy-context)",
lane
));
Component.contextTypes &&
!didWarnAboutContextTypes$1.has(Component) &&
(didWarnAboutContextTypes$1.add(Component),
error$jscomp$0(
"%s uses the legacy contextTypes API which will soon be removed. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",
lane
));
"function" === typeof state.componentShouldUpdate &&
error$jscomp$0(
"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",
@@ -14284,6 +14306,8 @@ __DEV__ &&
var didWarnAboutDirectlyAssigningPropsToState = new Set();
var didWarnAboutUndefinedDerivedState = new Set();
var didWarnAboutContextTypeAndContextTypes = new Set();
var didWarnAboutContextTypes$1 = new Set();
var didWarnAboutChildContextTypes = new Set();
var didWarnAboutInvalidateContextType = new Set();
var didWarnOnInvalidCallback = new Set();
Object.freeze(fakeInternalInstance);
@@ -14381,6 +14405,7 @@ __DEV__ &&
didReceiveUpdate = !1;
var didWarnAboutBadClass = {};
var didWarnAboutContextTypeOnFunctionComponent = {};
var didWarnAboutContextTypes = {};
var didWarnAboutGetDerivedStateOnFunctionComponent = {};
var didWarnAboutReassigningProps = !1;
var didWarnAboutRevealOrder = {};
@@ -14767,14 +14792,14 @@ __DEV__ &&
scheduleRoot: scheduleRoot,
setRefreshHandler: setRefreshHandler,
getCurrentFiber: getCurrentFiberForDevTools,
reconcilerVersion: "19.0.0-www-classic-3b2e5f27c5-20240710"
reconcilerVersion: "19.0.0-www-classic-378b305958-20240710"
});
})({
findFiberByHostInstance: function () {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 1,
version: "19.0.0-www-classic-3b2e5f27c5-20240710",
version: "19.0.0-www-classic-378b305958-20240710",
rendererPackageName: "react-test-renderer"
});
exports._Scheduler = Scheduler;
@@ -5683,7 +5683,15 @@ __DEV__ &&
null
);
null === current &&
validateFunctionComponentInDev(workInProgress, workInProgress.type);
(validateFunctionComponentInDev(workInProgress, workInProgress.type),
Component.contextTypes &&
((componentName = getComponentNameFromType(Component) || "Unknown"),
didWarnAboutContextTypes[componentName] ||
((didWarnAboutContextTypes[componentName] = !0),
error$jscomp$0(
"%s uses the legacy contextTypes API which will be removed soon. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",
componentName
))));
componentName = isContextProvider(Component)
? previousContext
: contextStackCursor$1.current;
@@ -5924,6 +5932,20 @@ __DEV__ &&
"%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",
lane
));
Component.childContextTypes &&
!didWarnAboutChildContextTypes.has(Component) &&
(didWarnAboutChildContextTypes.add(Component),
error$jscomp$0(
"%s uses the legacy childContextTypes API which will soon be removed. Use React.createContext() instead. (https://react.dev/link/legacy-context)",
lane
));
Component.contextTypes &&
!didWarnAboutContextTypes$1.has(Component) &&
(didWarnAboutContextTypes$1.add(Component),
error$jscomp$0(
"%s uses the legacy contextTypes API which will soon be removed. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",
lane
));
"function" === typeof state.componentShouldUpdate &&
error$jscomp$0(
"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",
@@ -14284,6 +14306,8 @@ __DEV__ &&
var didWarnAboutDirectlyAssigningPropsToState = new Set();
var didWarnAboutUndefinedDerivedState = new Set();
var didWarnAboutContextTypeAndContextTypes = new Set();
var didWarnAboutContextTypes$1 = new Set();
var didWarnAboutChildContextTypes = new Set();
var didWarnAboutInvalidateContextType = new Set();
var didWarnOnInvalidCallback = new Set();
Object.freeze(fakeInternalInstance);
@@ -14381,6 +14405,7 @@ __DEV__ &&
didReceiveUpdate = !1;
var didWarnAboutBadClass = {};
var didWarnAboutContextTypeOnFunctionComponent = {};
var didWarnAboutContextTypes = {};
var didWarnAboutGetDerivedStateOnFunctionComponent = {};
var didWarnAboutReassigningProps = !1;
var didWarnAboutRevealOrder = {};
@@ -14767,14 +14792,14 @@ __DEV__ &&
scheduleRoot: scheduleRoot,
setRefreshHandler: setRefreshHandler,
getCurrentFiber: getCurrentFiberForDevTools,
reconcilerVersion: "19.0.0-www-modern-3b2e5f27c5-20240710"
reconcilerVersion: "19.0.0-www-modern-378b305958-20240710"
});
})({
findFiberByHostInstance: function () {
throw Error("TestRenderer does not support findFiberByHostInstance()");
},
bundleType: 1,
version: "19.0.0-www-modern-3b2e5f27c5-20240710",
version: "19.0.0-www-modern-378b305958-20240710",
rendererPackageName: "react-test-renderer"
});
exports._Scheduler = Scheduler;
+1 -1
View File
@@ -1 +1 @@
19.0.0-www-classic-3b2e5f27c5-20240710
19.0.0-www-classic-378b305958-20240710
+1 -1
View File
@@ -1 +1 @@
19.0.0-www-modern-3b2e5f27c5-20240710
19.0.0-www-modern-378b305958-20240710
@@ -38,9 +38,14 @@ export default [
"%s objects cannot be rendered as text children. Try formatting it using toString().%s",
"%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",
"%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",
"%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead.",
"%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",
"%s uses the legacy childContextTypes API which will soon be removed. Use React.createContext() instead. (https://react.dev/link/legacy-context)",
"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead.",
"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead.",
"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",
"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",
"%s uses the legacy contextTypes API which will be removed soon. Use React.createContext() with React.useContext() instead.",
"%s uses the legacy contextTypes API which will be removed soon. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",
"%s uses the legacy contextTypes API which will soon be removed. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",
"%s(...) is deprecated in plain JavaScript React classes. %s",
"%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",
"%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",
@@ -356,6 +361,7 @@ export default [
"componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s",
"contextType was defined as an instance property on %s. Use a static property to define contextType instead.",
"contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",
"contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead. (https://react.dev/link/legacy-context)",
"copyWithRename() expects paths of the same length",
"copyWithRename() expects paths to be the same except for the deepest key",
"disabledDepth fell below zero. This is a bug in React. Please file an issue.",