From 9f9e660ceb94a1e28b9e4848d43d321bf1b3a04a Mon Sep 17 00:00:00 2001 From: kassens Date: Fri, 29 Mar 2024 15:20:18 +0000 Subject: [PATCH] Remove module pattern function component support (flag only) (#28671) Remove module pattern function component support (flag only) > This is a redo of #27742, but only including the flag removal, excluding further simplifications. The module pattern ``` function MyComponent() { return { render() { return this.state.foo } } } ``` has been deprecated for approximately 5 years now. This PR removes support for this pattern. DiffTrain build for [a73c3450e1b528fa6cb3e94fa4d4359c7a4b61f1](https://github.com/facebook/react/commit/a73c3450e1b528fa6cb3e94fa4d4359c7a4b61f1) --- compiled/facebook-www/REVISION | 2 +- compiled/facebook-www/ReactART-dev.classic.js | 43 ++++++------ compiled/facebook-www/ReactART-dev.modern.js | 59 ++++++++--------- .../facebook-www/ReactART-prod.classic.js | 7 +- compiled/facebook-www/ReactART-prod.modern.js | 7 +- compiled/facebook-www/ReactDOM-dev.classic.js | 49 +++++++------- compiled/facebook-www/ReactDOM-dev.modern.js | 65 +++++++++---------- .../facebook-www/ReactDOM-prod.classic.js | 9 ++- compiled/facebook-www/ReactDOM-prod.modern.js | 9 ++- .../ReactDOM-profiling.classic.js | 9 ++- .../facebook-www/ReactDOM-profiling.modern.js | 9 ++- .../ReactDOMServer-dev.classic.js | 43 ++++++------ .../facebook-www/ReactDOMServer-dev.modern.js | 60 ++++++++--------- .../ReactDOMServerStreaming-dev.modern.js | 58 ++++++++--------- .../ReactDOMTesting-dev.classic.js | 49 +++++++------- .../ReactDOMTesting-dev.modern.js | 65 +++++++++---------- .../ReactDOMTesting-prod.classic.js | 9 ++- .../ReactDOMTesting-prod.modern.js | 9 ++- .../ReactTestRenderer-dev.classic.js | 43 ++++++------ .../ReactTestRenderer-dev.modern.js | 43 ++++++------ 20 files changed, 302 insertions(+), 345 deletions(-) diff --git a/compiled/facebook-www/REVISION b/compiled/facebook-www/REVISION index b0f7ca9619362..ca849e99e9791 100644 --- a/compiled/facebook-www/REVISION +++ b/compiled/facebook-www/REVISION @@ -1 +1 @@ -f2690747239533fa266612d2d4dd9ae88ea92fbc +a73c3450e1b528fa6cb3e94fa4d4359c7a4b61f1 diff --git a/compiled/facebook-www/ReactART-dev.classic.js b/compiled/facebook-www/ReactART-dev.classic.js index 0ba93d0a5934c..ad9612c60dd99 100644 --- a/compiled/facebook-www/ReactART-dev.classic.js +++ b/compiled/facebook-www/ReactART-dev.classic.js @@ -66,7 +66,7 @@ if (__DEV__) { return self; } - var ReactVersion = "19.0.0-www-classic-3513bb8c"; + var ReactVersion = "19.0.0-www-classic-b7bec335"; var LegacyRoot = 0; var ConcurrentRoot = 1; @@ -16812,20 +16812,17 @@ if (__DEV__) { didWarnAboutModulePatternComponent[_componentName] = true; } } - } - - { - // Proceed under the assumption that this is a function component - workInProgress.tag = FunctionComponent; + } // Proceed under the assumption that this is a function component - reconcileChildren(null, workInProgress, value, renderLanes); + workInProgress.tag = FunctionComponent; - { - validateFunctionComponentInDev(workInProgress, Component); - } + reconcileChildren(null, workInProgress, value, renderLanes); - return workInProgress.child; + { + validateFunctionComponentInDev(workInProgress, Component); } + + return workInProgress.child; } function validateFunctionComponentInDev(workInProgress, Component) { @@ -16864,33 +16861,33 @@ if (__DEV__) { } if (Component.defaultProps !== undefined) { - var _componentName3 = + var _componentName2 = getComponentNameFromType(Component) || "Unknown"; - if (!didWarnAboutDefaultPropsOnFunctionComponent[_componentName3]) { + if (!didWarnAboutDefaultPropsOnFunctionComponent[_componentName2]) { error( "%s: Support for defaultProps will be removed from function components " + "in a future major release. Use JavaScript default parameters instead.", - _componentName3 + _componentName2 ); - didWarnAboutDefaultPropsOnFunctionComponent[_componentName3] = true; + didWarnAboutDefaultPropsOnFunctionComponent[_componentName2] = true; } } if (typeof Component.getDerivedStateFromProps === "function") { - var _componentName4 = + var _componentName3 = getComponentNameFromType(Component) || "Unknown"; if ( - !didWarnAboutGetDerivedStateOnFunctionComponent[_componentName4] + !didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3] ) { error( "%s: Function components do not support getDerivedStateFromProps.", - _componentName4 + _componentName3 ); - didWarnAboutGetDerivedStateOnFunctionComponent[_componentName4] = + didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3] = true; } } @@ -16899,16 +16896,16 @@ if (__DEV__) { typeof Component.contextType === "object" && Component.contextType !== null ) { - var _componentName5 = + var _componentName4 = getComponentNameFromType(Component) || "Unknown"; - if (!didWarnAboutContextTypeOnFunctionComponent[_componentName5]) { + if (!didWarnAboutContextTypeOnFunctionComponent[_componentName4]) { error( "%s: Function components do not support contextType.", - _componentName5 + _componentName4 ); - didWarnAboutContextTypeOnFunctionComponent[_componentName5] = true; + didWarnAboutContextTypeOnFunctionComponent[_componentName4] = true; } } } diff --git a/compiled/facebook-www/ReactART-dev.modern.js b/compiled/facebook-www/ReactART-dev.modern.js index 3ddf97018148f..de67e37b71e9d 100644 --- a/compiled/facebook-www/ReactART-dev.modern.js +++ b/compiled/facebook-www/ReactART-dev.modern.js @@ -66,7 +66,7 @@ if (__DEV__) { return self; } - var ReactVersion = "19.0.0-www-modern-6b2eae4e"; + var ReactVersion = "19.0.0-www-modern-210281fd"; var LegacyRoot = 0; var ConcurrentRoot = 1; @@ -16496,30 +16496,27 @@ if (__DEV__) { didWarnAboutModulePatternComponent[_componentName] = true; } } - } + } // Proceed under the assumption that this is a function component - { - // Proceed under the assumption that this is a function component - workInProgress.tag = FunctionComponent; + workInProgress.tag = FunctionComponent; - { - if (Component.contextTypes) { - error( - "%s uses the legacy contextTypes API which was removed in React 19. " + - "Use React.createContext() with React.useContext() instead.", - getComponentNameFromType(Component) || "Unknown" - ); - } + { + if (Component.contextTypes) { + error( + "%s uses the legacy contextTypes API which was removed in React 19. " + + "Use React.createContext() with React.useContext() instead.", + getComponentNameFromType(Component) || "Unknown" + ); } + } - reconcileChildren(null, workInProgress, value, renderLanes); + reconcileChildren(null, workInProgress, value, renderLanes); - { - validateFunctionComponentInDev(workInProgress, Component); - } - - return workInProgress.child; + { + validateFunctionComponentInDev(workInProgress, Component); } + + return workInProgress.child; } function validateFunctionComponentInDev(workInProgress, Component) { @@ -16558,33 +16555,33 @@ if (__DEV__) { } if (Component.defaultProps !== undefined) { - var _componentName3 = + var _componentName2 = getComponentNameFromType(Component) || "Unknown"; - if (!didWarnAboutDefaultPropsOnFunctionComponent[_componentName3]) { + if (!didWarnAboutDefaultPropsOnFunctionComponent[_componentName2]) { error( "%s: Support for defaultProps will be removed from function components " + "in a future major release. Use JavaScript default parameters instead.", - _componentName3 + _componentName2 ); - didWarnAboutDefaultPropsOnFunctionComponent[_componentName3] = true; + didWarnAboutDefaultPropsOnFunctionComponent[_componentName2] = true; } } if (typeof Component.getDerivedStateFromProps === "function") { - var _componentName4 = + var _componentName3 = getComponentNameFromType(Component) || "Unknown"; if ( - !didWarnAboutGetDerivedStateOnFunctionComponent[_componentName4] + !didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3] ) { error( "%s: Function components do not support getDerivedStateFromProps.", - _componentName4 + _componentName3 ); - didWarnAboutGetDerivedStateOnFunctionComponent[_componentName4] = + didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3] = true; } } @@ -16593,16 +16590,16 @@ if (__DEV__) { typeof Component.contextType === "object" && Component.contextType !== null ) { - var _componentName5 = + var _componentName4 = getComponentNameFromType(Component) || "Unknown"; - if (!didWarnAboutContextTypeOnFunctionComponent[_componentName5]) { + if (!didWarnAboutContextTypeOnFunctionComponent[_componentName4]) { error( "%s: Function components do not support contextType.", - _componentName5 + _componentName4 ); - didWarnAboutContextTypeOnFunctionComponent[_componentName5] = true; + didWarnAboutContextTypeOnFunctionComponent[_componentName4] = true; } } } diff --git a/compiled/facebook-www/ReactART-prod.classic.js b/compiled/facebook-www/ReactART-prod.classic.js index a7698ca8d7f83..1f87f2acba196 100644 --- a/compiled/facebook-www/ReactART-prod.classic.js +++ b/compiled/facebook-www/ReactART-prod.classic.js @@ -5633,8 +5633,7 @@ function beginWork(current, workInProgress, renderLanes) { workInProgress.flags |= 1; workInProgress.tag = 0; reconcileChildren(null, workInProgress, current, renderLanes); - workInProgress = workInProgress.child; - return workInProgress; + return workInProgress.child; case 16: Component = workInProgress.elementType; a: { @@ -10617,7 +10616,7 @@ var slice = Array.prototype.slice, return null; }, bundleType: 0, - version: "19.0.0-www-classic-1ca45163", + version: "19.0.0-www-classic-03341623", rendererPackageName: "react-art" }; var internals$jscomp$inline_1324 = { @@ -10648,7 +10647,7 @@ var internals$jscomp$inline_1324 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-classic-1ca45163" + reconcilerVersion: "19.0.0-www-classic-03341623" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1325 = __REACT_DEVTOOLS_GLOBAL_HOOK__; diff --git a/compiled/facebook-www/ReactART-prod.modern.js b/compiled/facebook-www/ReactART-prod.modern.js index d174c6ad104dd..bed42e71465e8 100644 --- a/compiled/facebook-www/ReactART-prod.modern.js +++ b/compiled/facebook-www/ReactART-prod.modern.js @@ -5371,8 +5371,7 @@ function beginWork(current, workInProgress, renderLanes) { workInProgress.flags |= 1; workInProgress.tag = 0; reconcileChildren(null, workInProgress, current, renderLanes); - workInProgress = workInProgress.child; - return workInProgress; + return workInProgress.child; case 16: Component = workInProgress.elementType; a: { @@ -10272,7 +10271,7 @@ var slice = Array.prototype.slice, return null; }, bundleType: 0, - version: "19.0.0-www-modern-ba56ad23", + version: "19.0.0-www-modern-672a54bb", rendererPackageName: "react-art" }; var internals$jscomp$inline_1304 = { @@ -10303,7 +10302,7 @@ var internals$jscomp$inline_1304 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-modern-ba56ad23" + reconcilerVersion: "19.0.0-www-modern-672a54bb" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1305 = __REACT_DEVTOOLS_GLOBAL_HOOK__; diff --git a/compiled/facebook-www/ReactDOM-dev.classic.js b/compiled/facebook-www/ReactDOM-dev.classic.js index c66924d339565..a294ebe859c96 100644 --- a/compiled/facebook-www/ReactDOM-dev.classic.js +++ b/compiled/facebook-www/ReactDOM-dev.classic.js @@ -21796,24 +21796,21 @@ if (__DEV__) { didWarnAboutModulePatternComponent[_componentName] = true; } } - } + } // Proceed under the assumption that this is a function component - { - // Proceed under the assumption that this is a function component - workInProgress.tag = FunctionComponent; + workInProgress.tag = FunctionComponent; - if (getIsHydrating() && hasId) { - pushMaterializedTreeId(workInProgress); - } - - reconcileChildren(null, workInProgress, value, renderLanes); + if (getIsHydrating() && hasId) { + pushMaterializedTreeId(workInProgress); + } - { - validateFunctionComponentInDev(workInProgress, Component); - } + reconcileChildren(null, workInProgress, value, renderLanes); - return workInProgress.child; + { + validateFunctionComponentInDev(workInProgress, Component); } + + return workInProgress.child; } function validateFunctionComponentInDev(workInProgress, Component) { @@ -21852,33 +21849,33 @@ if (__DEV__) { } if (Component.defaultProps !== undefined) { - var _componentName3 = + var _componentName2 = getComponentNameFromType(Component) || "Unknown"; - if (!didWarnAboutDefaultPropsOnFunctionComponent[_componentName3]) { + if (!didWarnAboutDefaultPropsOnFunctionComponent[_componentName2]) { error( "%s: Support for defaultProps will be removed from function components " + "in a future major release. Use JavaScript default parameters instead.", - _componentName3 + _componentName2 ); - didWarnAboutDefaultPropsOnFunctionComponent[_componentName3] = true; + didWarnAboutDefaultPropsOnFunctionComponent[_componentName2] = true; } } if (typeof Component.getDerivedStateFromProps === "function") { - var _componentName4 = + var _componentName3 = getComponentNameFromType(Component) || "Unknown"; if ( - !didWarnAboutGetDerivedStateOnFunctionComponent[_componentName4] + !didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3] ) { error( "%s: Function components do not support getDerivedStateFromProps.", - _componentName4 + _componentName3 ); - didWarnAboutGetDerivedStateOnFunctionComponent[_componentName4] = + didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3] = true; } } @@ -21887,16 +21884,16 @@ if (__DEV__) { typeof Component.contextType === "object" && Component.contextType !== null ) { - var _componentName5 = + var _componentName4 = getComponentNameFromType(Component) || "Unknown"; - if (!didWarnAboutContextTypeOnFunctionComponent[_componentName5]) { + if (!didWarnAboutContextTypeOnFunctionComponent[_componentName4]) { error( "%s: Function components do not support contextType.", - _componentName5 + _componentName4 ); - didWarnAboutContextTypeOnFunctionComponent[_componentName5] = true; + didWarnAboutContextTypeOnFunctionComponent[_componentName4] = true; } } } @@ -36351,7 +36348,7 @@ if (__DEV__) { return root; } - var ReactVersion = "19.0.0-www-classic-31c745b2"; + var ReactVersion = "19.0.0-www-classic-ad0567f0"; function createPortal$1( children, diff --git a/compiled/facebook-www/ReactDOM-dev.modern.js b/compiled/facebook-www/ReactDOM-dev.modern.js index ddfa28fb1b785..0b5d35d401949 100644 --- a/compiled/facebook-www/ReactDOM-dev.modern.js +++ b/compiled/facebook-www/ReactDOM-dev.modern.js @@ -21678,34 +21678,31 @@ if (__DEV__) { didWarnAboutModulePatternComponent[_componentName] = true; } } - } + } // Proceed under the assumption that this is a function component - { - // Proceed under the assumption that this is a function component - workInProgress.tag = FunctionComponent; + workInProgress.tag = FunctionComponent; - { - if (Component.contextTypes) { - error( - "%s uses the legacy contextTypes API which was removed in React 19. " + - "Use React.createContext() with React.useContext() instead.", - getComponentNameFromType(Component) || "Unknown" - ); - } - } - - if (getIsHydrating() && hasId) { - pushMaterializedTreeId(workInProgress); + { + if (Component.contextTypes) { + error( + "%s uses the legacy contextTypes API which was removed in React 19. " + + "Use React.createContext() with React.useContext() instead.", + getComponentNameFromType(Component) || "Unknown" + ); } + } - reconcileChildren(null, workInProgress, value, renderLanes); + if (getIsHydrating() && hasId) { + pushMaterializedTreeId(workInProgress); + } - { - validateFunctionComponentInDev(workInProgress, Component); - } + reconcileChildren(null, workInProgress, value, renderLanes); - return workInProgress.child; + { + validateFunctionComponentInDev(workInProgress, Component); } + + return workInProgress.child; } function validateFunctionComponentInDev(workInProgress, Component) { @@ -21744,33 +21741,33 @@ if (__DEV__) { } if (Component.defaultProps !== undefined) { - var _componentName3 = + var _componentName2 = getComponentNameFromType(Component) || "Unknown"; - if (!didWarnAboutDefaultPropsOnFunctionComponent[_componentName3]) { + if (!didWarnAboutDefaultPropsOnFunctionComponent[_componentName2]) { error( "%s: Support for defaultProps will be removed from function components " + "in a future major release. Use JavaScript default parameters instead.", - _componentName3 + _componentName2 ); - didWarnAboutDefaultPropsOnFunctionComponent[_componentName3] = true; + didWarnAboutDefaultPropsOnFunctionComponent[_componentName2] = true; } } if (typeof Component.getDerivedStateFromProps === "function") { - var _componentName4 = + var _componentName3 = getComponentNameFromType(Component) || "Unknown"; if ( - !didWarnAboutGetDerivedStateOnFunctionComponent[_componentName4] + !didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3] ) { error( "%s: Function components do not support getDerivedStateFromProps.", - _componentName4 + _componentName3 ); - didWarnAboutGetDerivedStateOnFunctionComponent[_componentName4] = + didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3] = true; } } @@ -21779,16 +21776,16 @@ if (__DEV__) { typeof Component.contextType === "object" && Component.contextType !== null ) { - var _componentName5 = + var _componentName4 = getComponentNameFromType(Component) || "Unknown"; - if (!didWarnAboutContextTypeOnFunctionComponent[_componentName5]) { + if (!didWarnAboutContextTypeOnFunctionComponent[_componentName4]) { error( "%s: Function components do not support contextType.", - _componentName5 + _componentName4 ); - didWarnAboutContextTypeOnFunctionComponent[_componentName5] = true; + didWarnAboutContextTypeOnFunctionComponent[_componentName4] = true; } } } @@ -36199,7 +36196,7 @@ if (__DEV__) { return root; } - var ReactVersion = "19.0.0-www-modern-c752b0b8"; + var ReactVersion = "19.0.0-www-modern-42ab691f"; function createPortal$1( children, diff --git a/compiled/facebook-www/ReactDOM-prod.classic.js b/compiled/facebook-www/ReactDOM-prod.classic.js index a7f270b2dfca1..2043566b91e06 100644 --- a/compiled/facebook-www/ReactDOM-prod.classic.js +++ b/compiled/facebook-www/ReactDOM-prod.classic.js @@ -6647,8 +6647,7 @@ function beginWork(current, workInProgress, renderLanes) { workInProgress.tag = 0; isHydrating && Component && pushMaterializedTreeId(workInProgress); reconcileChildren(null, workInProgress, current, renderLanes); - workInProgress = workInProgress.child; - return workInProgress; + return workInProgress.child; case 16: Component = workInProgress.elementType; a: { @@ -17111,7 +17110,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1732 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-www-classic-9df81848", + version: "19.0.0-www-classic-ddee3543", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2160 = { @@ -17141,7 +17140,7 @@ var internals$jscomp$inline_2160 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-classic-9df81848" + reconcilerVersion: "19.0.0-www-classic-ddee3543" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2161 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -17591,4 +17590,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactCurrentDispatcher$2.current.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-classic-9df81848"; +exports.version = "19.0.0-www-classic-ddee3543"; diff --git a/compiled/facebook-www/ReactDOM-prod.modern.js b/compiled/facebook-www/ReactDOM-prod.modern.js index 1d237f8fb93ed..b3b29f8669cc1 100644 --- a/compiled/facebook-www/ReactDOM-prod.modern.js +++ b/compiled/facebook-www/ReactDOM-prod.modern.js @@ -6488,8 +6488,7 @@ function beginWork(current, workInProgress, renderLanes) { workInProgress.tag = 0; isHydrating && Component && pushMaterializedTreeId(workInProgress); reconcileChildren(null, workInProgress, current, renderLanes); - workInProgress = workInProgress.child; - return workInProgress; + return workInProgress.child; case 16: Component = workInProgress.elementType; a: { @@ -16625,7 +16624,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1693 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-www-modern-8e569007", + version: "19.0.0-www-modern-600e55ad", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2122 = { @@ -16655,7 +16654,7 @@ var internals$jscomp$inline_2122 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-modern-8e569007" + reconcilerVersion: "19.0.0-www-modern-600e55ad" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2123 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -16958,4 +16957,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactCurrentDispatcher$2.current.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-modern-8e569007"; +exports.version = "19.0.0-www-modern-600e55ad"; diff --git a/compiled/facebook-www/ReactDOM-profiling.classic.js b/compiled/facebook-www/ReactDOM-profiling.classic.js index 3bc77fffae4b2..f25e76b8f4e96 100644 --- a/compiled/facebook-www/ReactDOM-profiling.classic.js +++ b/compiled/facebook-www/ReactDOM-profiling.classic.js @@ -6891,8 +6891,7 @@ function beginWork(current, workInProgress, renderLanes) { workInProgress.tag = 0; isHydrating && Component && pushMaterializedTreeId(workInProgress); reconcileChildren(null, workInProgress, current, renderLanes); - workInProgress = workInProgress.child; - return workInProgress; + return workInProgress.child; case 16: Component = workInProgress.elementType; a: { @@ -17861,7 +17860,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1818 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-www-classic-e6369628", + version: "19.0.0-www-classic-1a2b8133", rendererPackageName: "react-dom" }; (function (internals) { @@ -17905,7 +17904,7 @@ var devToolsConfig$jscomp$inline_1818 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-classic-e6369628" + reconcilerVersion: "19.0.0-www-classic-1a2b8133" }); var ReactFiberErrorDialogWWW = require("ReactFiberErrorDialog"); if ("function" !== typeof ReactFiberErrorDialogWWW.showErrorDialog) @@ -18342,7 +18341,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactCurrentDispatcher$2.current.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-classic-e6369628"; +exports.version = "19.0.0-www-classic-1a2b8133"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOM-profiling.modern.js b/compiled/facebook-www/ReactDOM-profiling.modern.js index 9d069198ca989..99ca2a936147e 100644 --- a/compiled/facebook-www/ReactDOM-profiling.modern.js +++ b/compiled/facebook-www/ReactDOM-profiling.modern.js @@ -6726,8 +6726,7 @@ function beginWork(current, workInProgress, renderLanes) { workInProgress.tag = 0; isHydrating && Component && pushMaterializedTreeId(workInProgress); reconcileChildren(null, workInProgress, current, renderLanes); - workInProgress = workInProgress.child; - return workInProgress; + return workInProgress.child; case 16: Component = workInProgress.elementType; a: { @@ -17369,7 +17368,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1779 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-www-modern-6ec98dbb", + version: "19.0.0-www-modern-d01064be", rendererPackageName: "react-dom" }; (function (internals) { @@ -17413,7 +17412,7 @@ var devToolsConfig$jscomp$inline_1779 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-modern-6ec98dbb" + reconcilerVersion: "19.0.0-www-modern-d01064be" }); var ReactFiberErrorDialogWWW = require("ReactFiberErrorDialog"); if ("function" !== typeof ReactFiberErrorDialogWWW.showErrorDialog) @@ -17703,7 +17702,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactCurrentDispatcher$2.current.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-modern-6ec98dbb"; +exports.version = "19.0.0-www-modern-d01064be"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOMServer-dev.classic.js b/compiled/facebook-www/ReactDOMServer-dev.classic.js index ddb8199f1b0ac..8fcc5211bc4ac 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.classic.js +++ b/compiled/facebook-www/ReactDOMServer-dev.classic.js @@ -19,7 +19,7 @@ if (__DEV__) { var React = require("react"); var ReactDOM = require("react-dom"); - var ReactVersion = "19.0.0-www-classic-537a19a0"; + var ReactVersion = "19.0.0-www-classic-6c536d2d"; // This refers to a WWW module. var warningWWW = require("warning"); @@ -12069,24 +12069,21 @@ if (__DEV__) { didWarnAboutModulePatternComponent[_componentName] = true; } } - } + } // Proceed under the assumption that this is a function component { - { - validateFunctionComponentInDev(Component); - } - - finishFunctionComponent( - request, - task, - keyPath, - value, - hasId, - actionStateCount, - actionStateMatchingIndex - ); + validateFunctionComponentInDev(Component); } + finishFunctionComponent( + request, + task, + keyPath, + value, + hasId, + actionStateCount, + actionStateMatchingIndex + ); task.componentStack = previousComponentStack; } @@ -12184,18 +12181,18 @@ if (__DEV__) { } if (typeof Component.getDerivedStateFromProps === "function") { - var _componentName3 = + var _componentName2 = getComponentNameFromType(Component) || "Unknown"; if ( - !didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3] + !didWarnAboutGetDerivedStateOnFunctionComponent[_componentName2] ) { error( "%s: Function components do not support getDerivedStateFromProps.", - _componentName3 + _componentName2 ); - didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3] = + didWarnAboutGetDerivedStateOnFunctionComponent[_componentName2] = true; } } @@ -12204,16 +12201,16 @@ if (__DEV__) { typeof Component.contextType === "object" && Component.contextType !== null ) { - var _componentName4 = + var _componentName3 = getComponentNameFromType(Component) || "Unknown"; - if (!didWarnAboutContextTypeOnFunctionComponent[_componentName4]) { + if (!didWarnAboutContextTypeOnFunctionComponent[_componentName3]) { error( "%s: Function components do not support contextType.", - _componentName4 + _componentName3 ); - didWarnAboutContextTypeOnFunctionComponent[_componentName4] = true; + didWarnAboutContextTypeOnFunctionComponent[_componentName3] = true; } } } diff --git a/compiled/facebook-www/ReactDOMServer-dev.modern.js b/compiled/facebook-www/ReactDOMServer-dev.modern.js index 4c5f64d8c9571..f8a4c95c7e154 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.modern.js +++ b/compiled/facebook-www/ReactDOMServer-dev.modern.js @@ -19,7 +19,7 @@ if (__DEV__) { var React = require("react"); var ReactDOM = require("react-dom"); - var ReactVersion = "19.0.0-www-modern-94ca9b1f"; + var ReactVersion = "19.0.0-www-modern-55f00b95"; // This refers to a WWW module. var warningWWW = require("warning"); @@ -11968,35 +11968,31 @@ if (__DEV__) { didWarnAboutModulePatternComponent[_componentName] = true; } } - } + } // Proceed under the assumption that this is a function component { - // Proceed under the assumption that this is a function component - { - if (Component.contextTypes) { - error( - "%s uses the legacy contextTypes API which was removed in React 19. " + - "Use React.createContext() with React.useContext() instead.", - getComponentNameFromType(Component) || "Unknown" - ); - } - } - - { - validateFunctionComponentInDev(Component); + if (Component.contextTypes) { + error( + "%s uses the legacy contextTypes API which was removed in React 19. " + + "Use React.createContext() with React.useContext() instead.", + getComponentNameFromType(Component) || "Unknown" + ); } + } - finishFunctionComponent( - request, - task, - keyPath, - value, - hasId, - actionStateCount, - actionStateMatchingIndex - ); + { + validateFunctionComponentInDev(Component); } + finishFunctionComponent( + request, + task, + keyPath, + value, + hasId, + actionStateCount, + actionStateMatchingIndex + ); task.componentStack = previousComponentStack; } @@ -12094,18 +12090,18 @@ if (__DEV__) { } if (typeof Component.getDerivedStateFromProps === "function") { - var _componentName3 = + var _componentName2 = getComponentNameFromType(Component) || "Unknown"; if ( - !didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3] + !didWarnAboutGetDerivedStateOnFunctionComponent[_componentName2] ) { error( "%s: Function components do not support getDerivedStateFromProps.", - _componentName3 + _componentName2 ); - didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3] = + didWarnAboutGetDerivedStateOnFunctionComponent[_componentName2] = true; } } @@ -12114,16 +12110,16 @@ if (__DEV__) { typeof Component.contextType === "object" && Component.contextType !== null ) { - var _componentName4 = + var _componentName3 = getComponentNameFromType(Component) || "Unknown"; - if (!didWarnAboutContextTypeOnFunctionComponent[_componentName4]) { + if (!didWarnAboutContextTypeOnFunctionComponent[_componentName3]) { error( "%s: Function components do not support contextType.", - _componentName4 + _componentName3 ); - didWarnAboutContextTypeOnFunctionComponent[_componentName4] = true; + didWarnAboutContextTypeOnFunctionComponent[_componentName3] = true; } } } diff --git a/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js b/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js index 894054d84f4be..c0c16f5b5d870 100644 --- a/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js +++ b/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js @@ -11849,35 +11849,31 @@ if (__DEV__) { didWarnAboutModulePatternComponent[_componentName] = true; } } - } + } // Proceed under the assumption that this is a function component { - // Proceed under the assumption that this is a function component - { - if (Component.contextTypes) { - error( - "%s uses the legacy contextTypes API which was removed in React 19. " + - "Use React.createContext() with React.useContext() instead.", - getComponentNameFromType(Component) || "Unknown" - ); - } - } - - { - validateFunctionComponentInDev(Component); + if (Component.contextTypes) { + error( + "%s uses the legacy contextTypes API which was removed in React 19. " + + "Use React.createContext() with React.useContext() instead.", + getComponentNameFromType(Component) || "Unknown" + ); } + } - finishFunctionComponent( - request, - task, - keyPath, - value, - hasId, - actionStateCount, - actionStateMatchingIndex - ); + { + validateFunctionComponentInDev(Component); } + finishFunctionComponent( + request, + task, + keyPath, + value, + hasId, + actionStateCount, + actionStateMatchingIndex + ); task.componentStack = previousComponentStack; } @@ -11975,18 +11971,18 @@ if (__DEV__) { } if (typeof Component.getDerivedStateFromProps === "function") { - var _componentName3 = + var _componentName2 = getComponentNameFromType(Component) || "Unknown"; if ( - !didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3] + !didWarnAboutGetDerivedStateOnFunctionComponent[_componentName2] ) { error( "%s: Function components do not support getDerivedStateFromProps.", - _componentName3 + _componentName2 ); - didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3] = + didWarnAboutGetDerivedStateOnFunctionComponent[_componentName2] = true; } } @@ -11995,16 +11991,16 @@ if (__DEV__) { typeof Component.contextType === "object" && Component.contextType !== null ) { - var _componentName4 = + var _componentName3 = getComponentNameFromType(Component) || "Unknown"; - if (!didWarnAboutContextTypeOnFunctionComponent[_componentName4]) { + if (!didWarnAboutContextTypeOnFunctionComponent[_componentName3]) { error( "%s: Function components do not support contextType.", - _componentName4 + _componentName3 ); - didWarnAboutContextTypeOnFunctionComponent[_componentName4] = true; + didWarnAboutContextTypeOnFunctionComponent[_componentName3] = true; } } } diff --git a/compiled/facebook-www/ReactDOMTesting-dev.classic.js b/compiled/facebook-www/ReactDOMTesting-dev.classic.js index 3e6ad62225884..7d73ffec2ec5f 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.classic.js @@ -21933,24 +21933,21 @@ if (__DEV__) { didWarnAboutModulePatternComponent[_componentName] = true; } } - } + } // Proceed under the assumption that this is a function component - { - // Proceed under the assumption that this is a function component - workInProgress.tag = FunctionComponent; + workInProgress.tag = FunctionComponent; - if (getIsHydrating() && hasId) { - pushMaterializedTreeId(workInProgress); - } - - reconcileChildren(null, workInProgress, value, renderLanes); + if (getIsHydrating() && hasId) { + pushMaterializedTreeId(workInProgress); + } - { - validateFunctionComponentInDev(workInProgress, Component); - } + reconcileChildren(null, workInProgress, value, renderLanes); - return workInProgress.child; + { + validateFunctionComponentInDev(workInProgress, Component); } + + return workInProgress.child; } function validateFunctionComponentInDev(workInProgress, Component) { @@ -21989,33 +21986,33 @@ if (__DEV__) { } if (Component.defaultProps !== undefined) { - var _componentName3 = + var _componentName2 = getComponentNameFromType(Component) || "Unknown"; - if (!didWarnAboutDefaultPropsOnFunctionComponent[_componentName3]) { + if (!didWarnAboutDefaultPropsOnFunctionComponent[_componentName2]) { error( "%s: Support for defaultProps will be removed from function components " + "in a future major release. Use JavaScript default parameters instead.", - _componentName3 + _componentName2 ); - didWarnAboutDefaultPropsOnFunctionComponent[_componentName3] = true; + didWarnAboutDefaultPropsOnFunctionComponent[_componentName2] = true; } } if (typeof Component.getDerivedStateFromProps === "function") { - var _componentName4 = + var _componentName3 = getComponentNameFromType(Component) || "Unknown"; if ( - !didWarnAboutGetDerivedStateOnFunctionComponent[_componentName4] + !didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3] ) { error( "%s: Function components do not support getDerivedStateFromProps.", - _componentName4 + _componentName3 ); - didWarnAboutGetDerivedStateOnFunctionComponent[_componentName4] = + didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3] = true; } } @@ -22024,16 +22021,16 @@ if (__DEV__) { typeof Component.contextType === "object" && Component.contextType !== null ) { - var _componentName5 = + var _componentName4 = getComponentNameFromType(Component) || "Unknown"; - if (!didWarnAboutContextTypeOnFunctionComponent[_componentName5]) { + if (!didWarnAboutContextTypeOnFunctionComponent[_componentName4]) { error( "%s: Function components do not support contextType.", - _componentName5 + _componentName4 ); - didWarnAboutContextTypeOnFunctionComponent[_componentName5] = true; + didWarnAboutContextTypeOnFunctionComponent[_componentName4] = true; } } } @@ -36975,7 +36972,7 @@ if (__DEV__) { return root; } - var ReactVersion = "19.0.0-www-classic-f2c3cec0"; + var ReactVersion = "19.0.0-www-classic-9f4150c0"; function createPortal$1( children, diff --git a/compiled/facebook-www/ReactDOMTesting-dev.modern.js b/compiled/facebook-www/ReactDOMTesting-dev.modern.js index 319634c38856e..760fe5b6b68b9 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.modern.js @@ -21815,34 +21815,31 @@ if (__DEV__) { didWarnAboutModulePatternComponent[_componentName] = true; } } - } + } // Proceed under the assumption that this is a function component - { - // Proceed under the assumption that this is a function component - workInProgress.tag = FunctionComponent; + workInProgress.tag = FunctionComponent; - { - if (Component.contextTypes) { - error( - "%s uses the legacy contextTypes API which was removed in React 19. " + - "Use React.createContext() with React.useContext() instead.", - getComponentNameFromType(Component) || "Unknown" - ); - } - } - - if (getIsHydrating() && hasId) { - pushMaterializedTreeId(workInProgress); + { + if (Component.contextTypes) { + error( + "%s uses the legacy contextTypes API which was removed in React 19. " + + "Use React.createContext() with React.useContext() instead.", + getComponentNameFromType(Component) || "Unknown" + ); } + } - reconcileChildren(null, workInProgress, value, renderLanes); + if (getIsHydrating() && hasId) { + pushMaterializedTreeId(workInProgress); + } - { - validateFunctionComponentInDev(workInProgress, Component); - } + reconcileChildren(null, workInProgress, value, renderLanes); - return workInProgress.child; + { + validateFunctionComponentInDev(workInProgress, Component); } + + return workInProgress.child; } function validateFunctionComponentInDev(workInProgress, Component) { @@ -21881,33 +21878,33 @@ if (__DEV__) { } if (Component.defaultProps !== undefined) { - var _componentName3 = + var _componentName2 = getComponentNameFromType(Component) || "Unknown"; - if (!didWarnAboutDefaultPropsOnFunctionComponent[_componentName3]) { + if (!didWarnAboutDefaultPropsOnFunctionComponent[_componentName2]) { error( "%s: Support for defaultProps will be removed from function components " + "in a future major release. Use JavaScript default parameters instead.", - _componentName3 + _componentName2 ); - didWarnAboutDefaultPropsOnFunctionComponent[_componentName3] = true; + didWarnAboutDefaultPropsOnFunctionComponent[_componentName2] = true; } } if (typeof Component.getDerivedStateFromProps === "function") { - var _componentName4 = + var _componentName3 = getComponentNameFromType(Component) || "Unknown"; if ( - !didWarnAboutGetDerivedStateOnFunctionComponent[_componentName4] + !didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3] ) { error( "%s: Function components do not support getDerivedStateFromProps.", - _componentName4 + _componentName3 ); - didWarnAboutGetDerivedStateOnFunctionComponent[_componentName4] = + didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3] = true; } } @@ -21916,16 +21913,16 @@ if (__DEV__) { typeof Component.contextType === "object" && Component.contextType !== null ) { - var _componentName5 = + var _componentName4 = getComponentNameFromType(Component) || "Unknown"; - if (!didWarnAboutContextTypeOnFunctionComponent[_componentName5]) { + if (!didWarnAboutContextTypeOnFunctionComponent[_componentName4]) { error( "%s: Function components do not support contextType.", - _componentName5 + _componentName4 ); - didWarnAboutContextTypeOnFunctionComponent[_componentName5] = true; + didWarnAboutContextTypeOnFunctionComponent[_componentName4] = true; } } } @@ -36823,7 +36820,7 @@ if (__DEV__) { return root; } - var ReactVersion = "19.0.0-www-modern-eccc0e12"; + var ReactVersion = "19.0.0-www-modern-748105fd"; function createPortal$1( children, diff --git a/compiled/facebook-www/ReactDOMTesting-prod.classic.js b/compiled/facebook-www/ReactDOMTesting-prod.classic.js index ab958d21a02cd..7e1a5abfff7e3 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.classic.js @@ -6733,8 +6733,7 @@ function beginWork(current, workInProgress, renderLanes) { workInProgress.tag = 0; isHydrating && Component && pushMaterializedTreeId(workInProgress); reconcileChildren(null, workInProgress, current, renderLanes); - workInProgress = workInProgress.child; - return workInProgress; + return workInProgress.child; case 16: Component = workInProgress.elementType; a: { @@ -17440,7 +17439,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1759 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-www-classic-d76ce55c", + version: "19.0.0-www-classic-c2cff19b", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2168 = { @@ -17470,7 +17469,7 @@ var internals$jscomp$inline_2168 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-classic-d76ce55c" + reconcilerVersion: "19.0.0-www-classic-c2cff19b" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2169 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -18063,4 +18062,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactCurrentDispatcher$2.current.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-classic-d76ce55c"; +exports.version = "19.0.0-www-classic-c2cff19b"; diff --git a/compiled/facebook-www/ReactDOMTesting-prod.modern.js b/compiled/facebook-www/ReactDOMTesting-prod.modern.js index d41308b96a56a..198efb72d4140 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.modern.js @@ -6635,8 +6635,7 @@ function beginWork(current, workInProgress, renderLanes) { workInProgress.tag = 0; isHydrating && Component && pushMaterializedTreeId(workInProgress); reconcileChildren(null, workInProgress, current, renderLanes); - workInProgress = workInProgress.child; - return workInProgress; + return workInProgress.child; case 16: Component = workInProgress.elementType; a: { @@ -17015,7 +17014,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1720 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-www-modern-3f526f79", + version: "19.0.0-www-modern-f91a03be", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2126 = { @@ -17045,7 +17044,7 @@ var internals$jscomp$inline_2126 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-modern-3f526f79" + reconcilerVersion: "19.0.0-www-modern-f91a03be" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2127 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -17471,4 +17470,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactCurrentDispatcher$2.current.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-modern-3f526f79"; +exports.version = "19.0.0-www-modern-f91a03be"; diff --git a/compiled/facebook-www/ReactTestRenderer-dev.classic.js b/compiled/facebook-www/ReactTestRenderer-dev.classic.js index 860904b81218a..d6bca3ea76897 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.classic.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.classic.js @@ -15012,20 +15012,17 @@ if (__DEV__) { didWarnAboutModulePatternComponent[_componentName] = true; } } - } - - { - // Proceed under the assumption that this is a function component - workInProgress.tag = FunctionComponent; + } // Proceed under the assumption that this is a function component - reconcileChildren(null, workInProgress, value, renderLanes); + workInProgress.tag = FunctionComponent; - { - validateFunctionComponentInDev(workInProgress, Component); - } + reconcileChildren(null, workInProgress, value, renderLanes); - return workInProgress.child; + { + validateFunctionComponentInDev(workInProgress, Component); } + + return workInProgress.child; } function validateFunctionComponentInDev(workInProgress, Component) { @@ -15064,33 +15061,33 @@ if (__DEV__) { } if (Component.defaultProps !== undefined) { - var _componentName3 = + var _componentName2 = getComponentNameFromType(Component) || "Unknown"; - if (!didWarnAboutDefaultPropsOnFunctionComponent[_componentName3]) { + if (!didWarnAboutDefaultPropsOnFunctionComponent[_componentName2]) { error( "%s: Support for defaultProps will be removed from function components " + "in a future major release. Use JavaScript default parameters instead.", - _componentName3 + _componentName2 ); - didWarnAboutDefaultPropsOnFunctionComponent[_componentName3] = true; + didWarnAboutDefaultPropsOnFunctionComponent[_componentName2] = true; } } if (typeof Component.getDerivedStateFromProps === "function") { - var _componentName4 = + var _componentName3 = getComponentNameFromType(Component) || "Unknown"; if ( - !didWarnAboutGetDerivedStateOnFunctionComponent[_componentName4] + !didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3] ) { error( "%s: Function components do not support getDerivedStateFromProps.", - _componentName4 + _componentName3 ); - didWarnAboutGetDerivedStateOnFunctionComponent[_componentName4] = + didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3] = true; } } @@ -15099,16 +15096,16 @@ if (__DEV__) { typeof Component.contextType === "object" && Component.contextType !== null ) { - var _componentName5 = + var _componentName4 = getComponentNameFromType(Component) || "Unknown"; - if (!didWarnAboutContextTypeOnFunctionComponent[_componentName5]) { + if (!didWarnAboutContextTypeOnFunctionComponent[_componentName4]) { error( "%s: Function components do not support contextType.", - _componentName5 + _componentName4 ); - didWarnAboutContextTypeOnFunctionComponent[_componentName5] = true; + didWarnAboutContextTypeOnFunctionComponent[_componentName4] = true; } } } @@ -26839,7 +26836,7 @@ if (__DEV__) { return root; } - var ReactVersion = "19.0.0-www-classic-22c1f956"; + var ReactVersion = "19.0.0-www-classic-55032d66"; // Might add PROFILE later. diff --git a/compiled/facebook-www/ReactTestRenderer-dev.modern.js b/compiled/facebook-www/ReactTestRenderer-dev.modern.js index 7d722dba924c9..1d869abf18c01 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.modern.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.modern.js @@ -15012,20 +15012,17 @@ if (__DEV__) { didWarnAboutModulePatternComponent[_componentName] = true; } } - } - - { - // Proceed under the assumption that this is a function component - workInProgress.tag = FunctionComponent; + } // Proceed under the assumption that this is a function component - reconcileChildren(null, workInProgress, value, renderLanes); + workInProgress.tag = FunctionComponent; - { - validateFunctionComponentInDev(workInProgress, Component); - } + reconcileChildren(null, workInProgress, value, renderLanes); - return workInProgress.child; + { + validateFunctionComponentInDev(workInProgress, Component); } + + return workInProgress.child; } function validateFunctionComponentInDev(workInProgress, Component) { @@ -15064,33 +15061,33 @@ if (__DEV__) { } if (Component.defaultProps !== undefined) { - var _componentName3 = + var _componentName2 = getComponentNameFromType(Component) || "Unknown"; - if (!didWarnAboutDefaultPropsOnFunctionComponent[_componentName3]) { + if (!didWarnAboutDefaultPropsOnFunctionComponent[_componentName2]) { error( "%s: Support for defaultProps will be removed from function components " + "in a future major release. Use JavaScript default parameters instead.", - _componentName3 + _componentName2 ); - didWarnAboutDefaultPropsOnFunctionComponent[_componentName3] = true; + didWarnAboutDefaultPropsOnFunctionComponent[_componentName2] = true; } } if (typeof Component.getDerivedStateFromProps === "function") { - var _componentName4 = + var _componentName3 = getComponentNameFromType(Component) || "Unknown"; if ( - !didWarnAboutGetDerivedStateOnFunctionComponent[_componentName4] + !didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3] ) { error( "%s: Function components do not support getDerivedStateFromProps.", - _componentName4 + _componentName3 ); - didWarnAboutGetDerivedStateOnFunctionComponent[_componentName4] = + didWarnAboutGetDerivedStateOnFunctionComponent[_componentName3] = true; } } @@ -15099,16 +15096,16 @@ if (__DEV__) { typeof Component.contextType === "object" && Component.contextType !== null ) { - var _componentName5 = + var _componentName4 = getComponentNameFromType(Component) || "Unknown"; - if (!didWarnAboutContextTypeOnFunctionComponent[_componentName5]) { + if (!didWarnAboutContextTypeOnFunctionComponent[_componentName4]) { error( "%s: Function components do not support contextType.", - _componentName5 + _componentName4 ); - didWarnAboutContextTypeOnFunctionComponent[_componentName5] = true; + didWarnAboutContextTypeOnFunctionComponent[_componentName4] = true; } } } @@ -26839,7 +26836,7 @@ if (__DEV__) { return root; } - var ReactVersion = "19.0.0-www-modern-22c1f956"; + var ReactVersion = "19.0.0-www-modern-55032d66"; // Might add PROFILE later.