@@ -66,7 +66,7 @@ if (__DEV__) {
6666 return self;
6767 }
6868
69- var ReactVersion = "19.0.0-www-modern-6b2eae4e ";
69+ var ReactVersion = "19.0.0-www-modern-210281fd ";
7070
7171 var LegacyRoot = 0;
7272 var ConcurrentRoot = 1;
@@ -16496,30 +16496,27 @@ if (__DEV__) {
1649616496 didWarnAboutModulePatternComponent[_componentName] = true;
1649716497 }
1649816498 }
16499- }
16499+ } // Proceed under the assumption that this is a function component
1650016500
16501- {
16502- // Proceed under the assumption that this is a function component
16503- workInProgress.tag = FunctionComponent;
16501+ workInProgress.tag = FunctionComponent;
1650416502
16505- {
16506- if (Component.contextTypes) {
16507- error(
16508- "%s uses the legacy contextTypes API which was removed in React 19. " +
16509- "Use React.createContext() with React.useContext() instead.",
16510- getComponentNameFromType(Component) || "Unknown"
16511- );
16512- }
16503+ {
16504+ if (Component.contextTypes) {
16505+ error(
16506+ "%s uses the legacy contextTypes API which was removed in React 19. " +
16507+ "Use React.createContext() with React.useContext() instead.",
16508+ getComponentNameFromType(Component) || "Unknown"
16509+ );
1651316510 }
16511+ }
1651416512
16515- reconcileChildren(null, workInProgress, value, renderLanes);
16513+ reconcileChildren(null, workInProgress, value, renderLanes);
1651616514
16517- {
16518- validateFunctionComponentInDev(workInProgress, Component);
16519- }
16520-
16521- return workInProgress.child;
16515+ {
16516+ validateFunctionComponentInDev(workInProgress, Component);
1652216517 }
16518+
16519+ return workInProgress.child;
1652316520 }
1652416521
1652516522 function validateFunctionComponentInDev(workInProgress, Component) {
@@ -16558,33 +16555,33 @@ if (__DEV__) {
1655816555 }
1655916556
1656016557 if (Component.defaultProps !== undefined) {
16561- var _componentName3 =
16558+ var _componentName2 =
1656216559 getComponentNameFromType(Component) || "Unknown";
1656316560
16564- if (!didWarnAboutDefaultPropsOnFunctionComponent[_componentName3 ]) {
16561+ if (!didWarnAboutDefaultPropsOnFunctionComponent[_componentName2 ]) {
1656516562 error(
1656616563 "%s: Support for defaultProps will be removed from function components " +
1656716564 "in a future major release. Use JavaScript default parameters instead.",
16568- _componentName3
16565+ _componentName2
1656916566 );
1657016567
16571- didWarnAboutDefaultPropsOnFunctionComponent[_componentName3 ] = true;
16568+ didWarnAboutDefaultPropsOnFunctionComponent[_componentName2 ] = true;
1657216569 }
1657316570 }
1657416571
1657516572 if (typeof Component.getDerivedStateFromProps === "function") {
16576- var _componentName4 =
16573+ var _componentName3 =
1657716574 getComponentNameFromType(Component) || "Unknown";
1657816575
1657916576 if (
16580- !didWarnAboutGetDerivedStateOnFunctionComponent[_componentName4 ]
16577+ !didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3 ]
1658116578 ) {
1658216579 error(
1658316580 "%s: Function components do not support getDerivedStateFromProps.",
16584- _componentName4
16581+ _componentName3
1658516582 );
1658616583
16587- didWarnAboutGetDerivedStateOnFunctionComponent[_componentName4 ] =
16584+ didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3 ] =
1658816585 true;
1658916586 }
1659016587 }
@@ -16593,16 +16590,16 @@ if (__DEV__) {
1659316590 typeof Component.contextType === "object" &&
1659416591 Component.contextType !== null
1659516592 ) {
16596- var _componentName5 =
16593+ var _componentName4 =
1659716594 getComponentNameFromType(Component) || "Unknown";
1659816595
16599- if (!didWarnAboutContextTypeOnFunctionComponent[_componentName5 ]) {
16596+ if (!didWarnAboutContextTypeOnFunctionComponent[_componentName4 ]) {
1660016597 error(
1660116598 "%s: Function components do not support contextType.",
16602- _componentName5
16599+ _componentName4
1660316600 );
1660416601
16605- didWarnAboutContextTypeOnFunctionComponent[_componentName5 ] = true;
16602+ didWarnAboutContextTypeOnFunctionComponent[_componentName4 ] = true;
1660616603 }
1660716604 }
1660816605 }
0 commit comments