diff --git a/compiled/facebook-www/REVISION b/compiled/facebook-www/REVISION index cc6ad115906a3..3e545d31f35eb 100644 --- a/compiled/facebook-www/REVISION +++ b/compiled/facebook-www/REVISION @@ -1 +1 @@ -a09950ed418adb26a5e735b4ee9eca5e5282ffc7 +af28f480e8e74ce71bb33259b61fef8a5a228f74 diff --git a/compiled/facebook-www/REVISION_TRANSFORMS b/compiled/facebook-www/REVISION_TRANSFORMS index cc6ad115906a3..3e545d31f35eb 100644 --- a/compiled/facebook-www/REVISION_TRANSFORMS +++ b/compiled/facebook-www/REVISION_TRANSFORMS @@ -1 +1 @@ -a09950ed418adb26a5e735b4ee9eca5e5282ffc7 +af28f480e8e74ce71bb33259b61fef8a5a228f74 diff --git a/compiled/facebook-www/React-dev.classic.js b/compiled/facebook-www/React-dev.classic.js index 41a38c36b7ef2..cae779ff4484e 100644 --- a/compiled/facebook-www/React-dev.classic.js +++ b/compiled/facebook-www/React-dev.classic.js @@ -1998,7 +1998,7 @@ __DEV__ && exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.0.0-www-classic-a09950ed41-20240711"; + exports.version = "19.0.0-www-classic-af28f480-20240711"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/React-dev.modern.js b/compiled/facebook-www/React-dev.modern.js index 7aa40ec6f3ed1..f7336eff3fe3e 100644 --- a/compiled/facebook-www/React-dev.modern.js +++ b/compiled/facebook-www/React-dev.modern.js @@ -1978,7 +1978,7 @@ __DEV__ && exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.0.0-www-modern-a09950ed41-20240711"; + exports.version = "19.0.0-www-modern-af28f480-20240711"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/React-prod.classic.js b/compiled/facebook-www/React-prod.classic.js index 44f3b36787c9d..7c77958530ae3 100644 --- a/compiled/facebook-www/React-prod.classic.js +++ b/compiled/facebook-www/React-prod.classic.js @@ -669,4 +669,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-www-classic-a09950ed41-20240711"; +exports.version = "19.0.0-www-classic-af28f480-20240711"; diff --git a/compiled/facebook-www/React-prod.modern.js b/compiled/facebook-www/React-prod.modern.js index fbac9771431fc..e561a6fae3e57 100644 --- a/compiled/facebook-www/React-prod.modern.js +++ b/compiled/facebook-www/React-prod.modern.js @@ -669,4 +669,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-www-modern-a09950ed41-20240711"; +exports.version = "19.0.0-www-modern-af28f480-20240711"; diff --git a/compiled/facebook-www/React-profiling.classic.js b/compiled/facebook-www/React-profiling.classic.js index 407ea1d9d15e2..2e4ebc2931465 100644 --- a/compiled/facebook-www/React-profiling.classic.js +++ b/compiled/facebook-www/React-profiling.classic.js @@ -673,7 +673,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-www-classic-a09950ed41-20240711"; +exports.version = "19.0.0-www-classic-af28f480-20240711"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/React-profiling.modern.js b/compiled/facebook-www/React-profiling.modern.js index acac9a340d445..b10d54a1e835e 100644 --- a/compiled/facebook-www/React-profiling.modern.js +++ b/compiled/facebook-www/React-profiling.modern.js @@ -673,7 +673,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-www-modern-a09950ed41-20240711"; +exports.version = "19.0.0-www-modern-af28f480-20240711"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactART-dev.classic.js b/compiled/facebook-www/ReactART-dev.classic.js index 9ee377dd7c473..81464de540cc8 100644 --- a/compiled/facebook-www/ReactART-dev.classic.js +++ b/compiled/facebook-www/ReactART-dev.classic.js @@ -6732,10 +6732,12 @@ __DEV__ && "%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; - componentName = getMaskedContext(workInProgress, componentName); + if (!disableLegacyContextForFunctionComponents) { + var context = isContextProvider(Component) + ? previousContext + : contextStackCursor$1.current; + context = getMaskedContext(workInProgress, context); + } prepareToReadContext(workInProgress, renderLanes); enableSchedulingProfiler && markComponentRenderStarted(workInProgress); Component = renderWithHooks( @@ -6743,7 +6745,7 @@ __DEV__ && workInProgress, Component, nextProps, - componentName, + context, renderLanes ); enableSchedulingProfiler && markComponentRenderStopped(); @@ -14931,6 +14933,8 @@ __DEV__ && alwaysThrottleRetries = dynamicFeatureFlags.alwaysThrottleRetries, disableDefaultPropsExceptForClasses = dynamicFeatureFlags.disableDefaultPropsExceptForClasses, + disableLegacyContextForFunctionComponents = + dynamicFeatureFlags.disableLegacyContextForFunctionComponents, disableSchedulerTimeoutInWorkLoop = dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, @@ -17017,14 +17021,14 @@ __DEV__ && scheduleRoot: scheduleRoot, setRefreshHandler: setRefreshHandler, getCurrentFiber: getCurrentFiberForDevTools, - reconcilerVersion: "19.0.0-www-classic-a09950ed41-20240711" + reconcilerVersion: "19.0.0-www-classic-af28f480-20240711" }); })({ findFiberByHostInstance: function () { return null; }, bundleType: 1, - version: "19.0.0-www-classic-a09950ed41-20240711", + version: "19.0.0-www-classic-af28f480-20240711", rendererPackageName: "react-art" }); var ClippingRectangle = TYPES.CLIPPING_RECTANGLE, diff --git a/compiled/facebook-www/ReactART-dev.modern.js b/compiled/facebook-www/ReactART-dev.modern.js index 6eae80dc950b2..fddf1aead8a31 100644 --- a/compiled/facebook-www/ReactART-dev.modern.js +++ b/compiled/facebook-www/ReactART-dev.modern.js @@ -16432,14 +16432,14 @@ __DEV__ && scheduleRoot: scheduleRoot, setRefreshHandler: setRefreshHandler, getCurrentFiber: getCurrentFiberForDevTools, - reconcilerVersion: "19.0.0-www-modern-a09950ed41-20240711" + reconcilerVersion: "19.0.0-www-modern-af28f480-20240711" }); })({ findFiberByHostInstance: function () { return null; }, bundleType: 1, - version: "19.0.0-www-modern-a09950ed41-20240711", + version: "19.0.0-www-modern-af28f480-20240711", rendererPackageName: "react-art" }); var ClippingRectangle = TYPES.CLIPPING_RECTANGLE, diff --git a/compiled/facebook-www/ReactART-prod.classic.js b/compiled/facebook-www/ReactART-prod.classic.js index 07d0a55cb4eac..f6bef49e76499 100644 --- a/compiled/facebook-www/ReactART-prod.classic.js +++ b/compiled/facebook-www/ReactART-prod.classic.js @@ -63,6 +63,8 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"), alwaysThrottleRetries = dynamicFeatureFlags.alwaysThrottleRetries, disableDefaultPropsExceptForClasses = dynamicFeatureFlags.disableDefaultPropsExceptForClasses, + disableLegacyContextForFunctionComponents = + dynamicFeatureFlags.disableLegacyContextForFunctionComponents, disableSchedulerTimeoutInWorkLoop = dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, @@ -4683,10 +4685,12 @@ function updateFunctionComponent( nextProps, renderLanes ) { - var context = isContextProvider(Component) - ? previousContext - : contextStackCursor$1.current; - context = getMaskedContext(workInProgress, context); + if (!disableLegacyContextForFunctionComponents) { + var context = isContextProvider(Component) + ? previousContext + : contextStackCursor$1.current; + context = getMaskedContext(workInProgress, context); + } prepareToReadContext(workInProgress, renderLanes); Component = renderWithHooks( current, @@ -10749,7 +10753,7 @@ var slice = Array.prototype.slice, return null; }, bundleType: 0, - version: "19.0.0-www-classic-a09950ed41-20240711", + version: "19.0.0-www-classic-af28f480-20240711", rendererPackageName: "react-art" }; var internals$jscomp$inline_1386 = { @@ -10780,7 +10784,7 @@ var internals$jscomp$inline_1386 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-classic-a09950ed41-20240711" + reconcilerVersion: "19.0.0-www-classic-af28f480-20240711" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1387 = __REACT_DEVTOOLS_GLOBAL_HOOK__; diff --git a/compiled/facebook-www/ReactART-prod.modern.js b/compiled/facebook-www/ReactART-prod.modern.js index 02dcf25ff565f..ac662196e8d60 100644 --- a/compiled/facebook-www/ReactART-prod.modern.js +++ b/compiled/facebook-www/ReactART-prod.modern.js @@ -10202,7 +10202,7 @@ var slice = Array.prototype.slice, return null; }, bundleType: 0, - version: "19.0.0-www-modern-a09950ed41-20240711", + version: "19.0.0-www-modern-af28f480-20240711", rendererPackageName: "react-art" }; var internals$jscomp$inline_1372 = { @@ -10233,7 +10233,7 @@ var internals$jscomp$inline_1372 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-modern-a09950ed41-20240711" + reconcilerVersion: "19.0.0-www-modern-af28f480-20240711" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1373 = __REACT_DEVTOOLS_GLOBAL_HOOK__; diff --git a/compiled/facebook-www/ReactDOM-dev.classic.js b/compiled/facebook-www/ReactDOM-dev.classic.js index cf2e9e3107c5e..8ad9abb1e7aa8 100644 --- a/compiled/facebook-www/ReactDOM-dev.classic.js +++ b/compiled/facebook-www/ReactDOM-dev.classic.js @@ -8732,10 +8732,12 @@ __DEV__ && "%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; - componentName = getMaskedContext(workInProgress, componentName); + if (!disableLegacyContextForFunctionComponents) { + var context = isContextProvider(Component) + ? previousContext + : contextStackCursor.current; + context = getMaskedContext(workInProgress, context); + } prepareToReadContext(workInProgress, renderLanes); enableSchedulingProfiler && markComponentRenderStarted(workInProgress); Component = renderWithHooks( @@ -8743,7 +8745,7 @@ __DEV__ && workInProgress, Component, nextProps, - componentName, + context, renderLanes ); nextProps = checkDidRenderIdHook(); @@ -23980,6 +23982,8 @@ __DEV__ && alwaysThrottleRetries = dynamicFeatureFlags.alwaysThrottleRetries, disableDefaultPropsExceptForClasses = dynamicFeatureFlags.disableDefaultPropsExceptForClasses, + disableLegacyContextForFunctionComponents = + dynamicFeatureFlags.disableLegacyContextForFunctionComponents, disableSchedulerTimeoutInWorkLoop = dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, @@ -27566,11 +27570,11 @@ __DEV__ && : flushSyncErrorInBuildsThatSupportLegacyMode; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-www-classic-a09950ed41-20240711" !== isomorphicReactPackageVersion) + if ("19.0.0-www-classic-af28f480-20240711" !== 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-a09950ed41-20240711\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-www-classic-af28f480-20240711\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -27636,12 +27640,12 @@ __DEV__ && scheduleRoot: scheduleRoot, setRefreshHandler: setRefreshHandler, getCurrentFiber: getCurrentFiberForDevTools, - reconcilerVersion: "19.0.0-www-classic-a09950ed41-20240711" + reconcilerVersion: "19.0.0-www-classic-af28f480-20240711" }); })({ findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 1, - version: "19.0.0-www-classic-a09950ed41-20240711", + version: "19.0.0-www-classic-af28f480-20240711", rendererPackageName: "react-dom" }) && canUseDOM && @@ -28284,7 +28288,7 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-www-classic-a09950ed41-20240711"; + exports.version = "19.0.0-www-classic-af28f480-20240711"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOM-dev.modern.js b/compiled/facebook-www/ReactDOM-dev.modern.js index 64f06365ee538..c6c9aa441d3f3 100644 --- a/compiled/facebook-www/ReactDOM-dev.modern.js +++ b/compiled/facebook-www/ReactDOM-dev.modern.js @@ -26698,11 +26698,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-www-modern-a09950ed41-20240711" !== isomorphicReactPackageVersion) + if ("19.0.0-www-modern-af28f480-20240711" !== 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-a09950ed41-20240711\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-www-modern-af28f480-20240711\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -26767,12 +26767,12 @@ __DEV__ && scheduleRoot: scheduleRoot, setRefreshHandler: setRefreshHandler, getCurrentFiber: getCurrentFiberForDevTools, - reconcilerVersion: "19.0.0-www-modern-a09950ed41-20240711" + reconcilerVersion: "19.0.0-www-modern-af28f480-20240711" }); })({ findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 1, - version: "19.0.0-www-modern-a09950ed41-20240711", + version: "19.0.0-www-modern-af28f480-20240711", rendererPackageName: "react-dom" }) && canUseDOM && @@ -27368,7 +27368,7 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-www-modern-a09950ed41-20240711"; + exports.version = "19.0.0-www-modern-af28f480-20240711"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOM-prod.classic.js b/compiled/facebook-www/ReactDOM-prod.classic.js index c1acc2006db0a..f2e0440d895e0 100644 --- a/compiled/facebook-www/ReactDOM-prod.classic.js +++ b/compiled/facebook-www/ReactDOM-prod.classic.js @@ -36,6 +36,8 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"), alwaysThrottleRetries = dynamicFeatureFlags.alwaysThrottleRetries, disableDefaultPropsExceptForClasses = dynamicFeatureFlags.disableDefaultPropsExceptForClasses, + disableLegacyContextForFunctionComponents = + dynamicFeatureFlags.disableLegacyContextForFunctionComponents, disableSchedulerTimeoutInWorkLoop = dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, @@ -5610,10 +5612,12 @@ function updateFunctionComponent( nextProps, renderLanes ) { - var context = isContextProvider(Component) - ? previousContext - : contextStackCursor.current; - context = getMaskedContext(workInProgress, context); + if (!disableLegacyContextForFunctionComponents) { + var context = isContextProvider(Component) + ? previousContext + : contextStackCursor.current; + context = getMaskedContext(workInProgress, context); + } prepareToReadContext(workInProgress, renderLanes); Component = renderWithHooks( current, @@ -17194,14 +17198,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1769 = React.version; if ( - "19.0.0-www-classic-a09950ed41-20240711" !== + "19.0.0-www-classic-af28f480-20240711" !== isomorphicReactPackageVersion$jscomp$inline_1769 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1769, - "19.0.0-www-classic-a09950ed41-20240711" + "19.0.0-www-classic-af28f480-20240711" ) ); function flushSyncFromReconciler(fn) { @@ -17247,7 +17251,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1776 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-www-classic-a09950ed41-20240711", + version: "19.0.0-www-classic-af28f480-20240711", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2220 = { @@ -17277,7 +17281,7 @@ var internals$jscomp$inline_2220 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-classic-a09950ed41-20240711" + reconcilerVersion: "19.0.0-www-classic-af28f480-20240711" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2221 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -17741,4 +17745,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-classic-a09950ed41-20240711"; +exports.version = "19.0.0-www-classic-af28f480-20240711"; diff --git a/compiled/facebook-www/ReactDOM-prod.modern.js b/compiled/facebook-www/ReactDOM-prod.modern.js index 6100133e7ce0d..7ce53edf35760 100644 --- a/compiled/facebook-www/ReactDOM-prod.modern.js +++ b/compiled/facebook-www/ReactDOM-prod.modern.js @@ -16509,14 +16509,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1740 = React.version; if ( - "19.0.0-www-modern-a09950ed41-20240711" !== + "19.0.0-www-modern-af28f480-20240711" !== isomorphicReactPackageVersion$jscomp$inline_1740 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1740, - "19.0.0-www-modern-a09950ed41-20240711" + "19.0.0-www-modern-af28f480-20240711" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -16535,7 +16535,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1742 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-www-modern-a09950ed41-20240711", + version: "19.0.0-www-modern-af28f480-20240711", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2211 = { @@ -16565,7 +16565,7 @@ var internals$jscomp$inline_2211 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-modern-a09950ed41-20240711" + reconcilerVersion: "19.0.0-www-modern-af28f480-20240711" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2212 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -16936,4 +16936,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-modern-a09950ed41-20240711"; +exports.version = "19.0.0-www-modern-af28f480-20240711"; diff --git a/compiled/facebook-www/ReactDOM-profiling.classic.js b/compiled/facebook-www/ReactDOM-profiling.classic.js index d9cb4d94ff262..d19fde47ee84d 100644 --- a/compiled/facebook-www/ReactDOM-profiling.classic.js +++ b/compiled/facebook-www/ReactDOM-profiling.classic.js @@ -40,6 +40,8 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"), alwaysThrottleRetries = dynamicFeatureFlags.alwaysThrottleRetries, disableDefaultPropsExceptForClasses = dynamicFeatureFlags.disableDefaultPropsExceptForClasses, + disableLegacyContextForFunctionComponents = + dynamicFeatureFlags.disableLegacyContextForFunctionComponents, disableSchedulerTimeoutInWorkLoop = dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, @@ -5821,10 +5823,12 @@ function updateFunctionComponent( nextProps, renderLanes ) { - var context = isContextProvider(Component) - ? previousContext - : contextStackCursor.current; - context = getMaskedContext(workInProgress, context); + if (!disableLegacyContextForFunctionComponents) { + var context = isContextProvider(Component) + ? previousContext + : contextStackCursor.current; + context = getMaskedContext(workInProgress, context); + } prepareToReadContext(workInProgress, renderLanes); enableSchedulingProfiler && markComponentRenderStarted(workInProgress); Component = renderWithHooks( @@ -17965,14 +17969,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1856 = React.version; if ( - "19.0.0-www-classic-a09950ed41-20240711" !== + "19.0.0-www-classic-af28f480-20240711" !== isomorphicReactPackageVersion$jscomp$inline_1856 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1856, - "19.0.0-www-classic-a09950ed41-20240711" + "19.0.0-www-classic-af28f480-20240711" ) ); function flushSyncFromReconciler(fn) { @@ -18018,7 +18022,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1863 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-www-classic-a09950ed41-20240711", + version: "19.0.0-www-classic-af28f480-20240711", rendererPackageName: "react-dom" }; (function (internals) { @@ -18062,7 +18066,7 @@ var devToolsConfig$jscomp$inline_1863 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-classic-a09950ed41-20240711" + reconcilerVersion: "19.0.0-www-classic-af28f480-20240711" }); function ReactDOMRoot(internalRoot) { this._internalRoot = internalRoot; @@ -18513,7 +18517,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-classic-a09950ed41-20240711"; +exports.version = "19.0.0-www-classic-af28f480-20240711"; "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 3877a7200d886..c3ccc2c68a117 100644 --- a/compiled/facebook-www/ReactDOM-profiling.modern.js +++ b/compiled/facebook-www/ReactDOM-profiling.modern.js @@ -17263,14 +17263,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1827 = React.version; if ( - "19.0.0-www-modern-a09950ed41-20240711" !== + "19.0.0-www-modern-af28f480-20240711" !== isomorphicReactPackageVersion$jscomp$inline_1827 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1827, - "19.0.0-www-modern-a09950ed41-20240711" + "19.0.0-www-modern-af28f480-20240711" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -17289,7 +17289,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1829 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-www-modern-a09950ed41-20240711", + version: "19.0.0-www-modern-af28f480-20240711", rendererPackageName: "react-dom" }; (function (internals) { @@ -17333,7 +17333,7 @@ var devToolsConfig$jscomp$inline_1829 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-modern-a09950ed41-20240711" + reconcilerVersion: "19.0.0-www-modern-af28f480-20240711" }); function ReactDOMRoot(internalRoot) { this._internalRoot = internalRoot; @@ -17691,7 +17691,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-modern-a09950ed41-20240711"; +exports.version = "19.0.0-www-modern-af28f480-20240711"; "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 58c4cf209d6c5..11adfab7b29a8 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.classic.js +++ b/compiled/facebook-www/ReactDOMServer-dev.classic.js @@ -5222,7 +5222,9 @@ __DEV__ && task.keyPath = prevKeyPath; } } else { - var legacyContext = getMaskedContext(type, task.legacyContext); + var legacyContext; + disableLegacyContextForFunctionComponents || + (legacyContext = getMaskedContext(type, task.legacyContext)); if (type.prototype && "function" === typeof type.prototype.render) { var componentName$jscomp$4 = getComponentNameFromType(type) || "Unknown"; @@ -7390,6 +7392,8 @@ __DEV__ && dynamicFeatureFlags = require("ReactFeatureFlags"), disableDefaultPropsExceptForClasses = dynamicFeatureFlags.disableDefaultPropsExceptForClasses, + disableLegacyContextForFunctionComponents = + dynamicFeatureFlags.disableLegacyContextForFunctionComponents, enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, enableUseDeferredValueInitialArg = @@ -8842,5 +8846,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-classic-a09950ed41-20240711"; + exports.version = "19.0.0-www-classic-af28f480-20240711"; })(); diff --git a/compiled/facebook-www/ReactDOMServer-dev.modern.js b/compiled/facebook-www/ReactDOMServer-dev.modern.js index fce16bf299268..12669ca117620 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.modern.js +++ b/compiled/facebook-www/ReactDOMServer-dev.modern.js @@ -8671,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-a09950ed41-20240711"; + exports.version = "19.0.0-www-modern-af28f480-20240711"; })(); diff --git a/compiled/facebook-www/ReactDOMServer-prod.classic.js b/compiled/facebook-www/ReactDOMServer-prod.classic.js index 8b9380482cefa..2decd6d1f0afa 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.classic.js +++ b/compiled/facebook-www/ReactDOMServer-prod.classic.js @@ -55,6 +55,8 @@ function formatProdErrorMessage(code) { var dynamicFeatureFlags = require("ReactFeatureFlags"), disableDefaultPropsExceptForClasses = dynamicFeatureFlags.disableDefaultPropsExceptForClasses, + disableLegacyContextForFunctionComponents = + dynamicFeatureFlags.disableLegacyContextForFunctionComponents, enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, enableUseDeferredValueInitialArg = @@ -4076,15 +4078,9 @@ function renderElement(request, task, keyPath, type, props, ref) { renderNodeDestructive(request, task, JSCompiler_inline_result, -1), (task.keyPath = type); } else - (contextKey = getMaskedContext(type, task.legacyContext)), - (type = renderWithHooks( - request, - task, - keyPath, - type, - props, - contextKey - )), + disableLegacyContextForFunctionComponents || + (partial = getMaskedContext(type, task.legacyContext)), + (type = renderWithHooks(request, task, keyPath, type, props, partial)), finishFunctionComponent( request, task, @@ -4344,8 +4340,8 @@ function renderElement(request, task, keyPath, type, props, ref) { return; case REACT_MEMO_TYPE: type = type.type; - props = resolveDefaultPropsOnNonClassComponent(type, props); - renderElement(request, task, keyPath, type, props, ref); + contextKey = resolveDefaultPropsOnNonClassComponent(type, props); + renderElement(request, task, keyPath, type, contextKey, ref); return; case REACT_PROVIDER_TYPE: if (!enableRenderableContext) { @@ -4365,8 +4361,8 @@ function renderElement(request, task, keyPath, type, props, ref) { case REACT_LAZY_TYPE: contextKey = type._init; type = contextKey(type._payload); - props = resolveDefaultPropsOnNonClassComponent(type, props); - renderElement(request, task, keyPath, type, props, ref); + contextKey = resolveDefaultPropsOnNonClassComponent(type, props); + renderElement(request, task, keyPath, type, contextKey, ref); return; } throw Error( @@ -5793,4 +5789,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-a09950ed41-20240711"; +exports.version = "19.0.0-www-classic-af28f480-20240711"; diff --git a/compiled/facebook-www/ReactDOMServer-prod.modern.js b/compiled/facebook-www/ReactDOMServer-prod.modern.js index de8c25203e18f..246cc620dba73 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.modern.js +++ b/compiled/facebook-www/ReactDOMServer-prod.modern.js @@ -5716,4 +5716,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-a09950ed41-20240711"; +exports.version = "19.0.0-www-modern-af28f480-20240711"; diff --git a/compiled/facebook-www/ReactDOMTesting-dev.classic.js b/compiled/facebook-www/ReactDOMTesting-dev.classic.js index 3f0e6bd3b17ba..3dabe945a4e1c 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.classic.js @@ -8773,10 +8773,12 @@ __DEV__ && "%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; - componentName = getMaskedContext(workInProgress, componentName); + if (!disableLegacyContextForFunctionComponents) { + var context = isContextProvider(Component) + ? previousContext + : contextStackCursor.current; + context = getMaskedContext(workInProgress, context); + } prepareToReadContext(workInProgress, renderLanes); enableSchedulingProfiler && markComponentRenderStarted(workInProgress); Component = renderWithHooks( @@ -8784,7 +8786,7 @@ __DEV__ && workInProgress, Component, nextProps, - componentName, + context, renderLanes ); nextProps = checkDidRenderIdHook(); @@ -24264,6 +24266,8 @@ __DEV__ && alwaysThrottleRetries = dynamicFeatureFlags.alwaysThrottleRetries, disableDefaultPropsExceptForClasses = dynamicFeatureFlags.disableDefaultPropsExceptForClasses, + disableLegacyContextForFunctionComponents = + dynamicFeatureFlags.disableLegacyContextForFunctionComponents, disableSchedulerTimeoutInWorkLoop = dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, @@ -27900,11 +27904,11 @@ __DEV__ && : flushSyncErrorInBuildsThatSupportLegacyMode; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-www-classic-a09950ed41-20240711" !== isomorphicReactPackageVersion) + if ("19.0.0-www-classic-af28f480-20240711" !== 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-a09950ed41-20240711\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-www-classic-af28f480-20240711\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -27970,12 +27974,12 @@ __DEV__ && scheduleRoot: scheduleRoot, setRefreshHandler: setRefreshHandler, getCurrentFiber: getCurrentFiberForDevTools, - reconcilerVersion: "19.0.0-www-classic-a09950ed41-20240711" + reconcilerVersion: "19.0.0-www-classic-af28f480-20240711" }); })({ findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 1, - version: "19.0.0-www-classic-a09950ed41-20240711", + version: "19.0.0-www-classic-af28f480-20240711", rendererPackageName: "react-dom" }) && canUseDOM && @@ -28784,5 +28788,5 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-www-classic-a09950ed41-20240711"; + exports.version = "19.0.0-www-classic-af28f480-20240711"; })(); diff --git a/compiled/facebook-www/ReactDOMTesting-dev.modern.js b/compiled/facebook-www/ReactDOMTesting-dev.modern.js index 799571420d14a..b7e49a0874e77 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.modern.js @@ -27032,11 +27032,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-www-modern-a09950ed41-20240711" !== isomorphicReactPackageVersion) + if ("19.0.0-www-modern-af28f480-20240711" !== 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-a09950ed41-20240711\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-www-modern-af28f480-20240711\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -27101,12 +27101,12 @@ __DEV__ && scheduleRoot: scheduleRoot, setRefreshHandler: setRefreshHandler, getCurrentFiber: getCurrentFiberForDevTools, - reconcilerVersion: "19.0.0-www-modern-a09950ed41-20240711" + reconcilerVersion: "19.0.0-www-modern-af28f480-20240711" }); })({ findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 1, - version: "19.0.0-www-modern-a09950ed41-20240711", + version: "19.0.0-www-modern-af28f480-20240711", rendererPackageName: "react-dom" }) && canUseDOM && @@ -27868,5 +27868,5 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-www-modern-a09950ed41-20240711"; + exports.version = "19.0.0-www-modern-af28f480-20240711"; })(); diff --git a/compiled/facebook-www/ReactDOMTesting-prod.classic.js b/compiled/facebook-www/ReactDOMTesting-prod.classic.js index ef00fc6c8a56c..673bcc0b9b43a 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.classic.js @@ -36,6 +36,8 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"), alwaysThrottleRetries = dynamicFeatureFlags.alwaysThrottleRetries, disableDefaultPropsExceptForClasses = dynamicFeatureFlags.disableDefaultPropsExceptForClasses, + disableLegacyContextForFunctionComponents = + dynamicFeatureFlags.disableLegacyContextForFunctionComponents, disableSchedulerTimeoutInWorkLoop = dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, @@ -5696,10 +5698,12 @@ function updateFunctionComponent( nextProps, renderLanes ) { - var context = isContextProvider(Component) - ? previousContext - : contextStackCursor.current; - context = getMaskedContext(workInProgress, context); + if (!disableLegacyContextForFunctionComponents) { + var context = isContextProvider(Component) + ? previousContext + : contextStackCursor.current; + context = getMaskedContext(workInProgress, context); + } prepareToReadContext(workInProgress, renderLanes); Component = renderWithHooks( current, @@ -17523,14 +17527,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1799 = React.version; if ( - "19.0.0-www-classic-a09950ed41-20240711" !== + "19.0.0-www-classic-af28f480-20240711" !== isomorphicReactPackageVersion$jscomp$inline_1799 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1799, - "19.0.0-www-classic-a09950ed41-20240711" + "19.0.0-www-classic-af28f480-20240711" ) ); function flushSyncFromReconciler(fn) { @@ -17576,7 +17580,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1806 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-www-classic-a09950ed41-20240711", + version: "19.0.0-www-classic-af28f480-20240711", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2255 = { @@ -17606,7 +17610,7 @@ var internals$jscomp$inline_2255 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-classic-a09950ed41-20240711" + reconcilerVersion: "19.0.0-www-classic-af28f480-20240711" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2256 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -18221,4 +18225,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-classic-a09950ed41-20240711"; +exports.version = "19.0.0-www-classic-af28f480-20240711"; diff --git a/compiled/facebook-www/ReactDOMTesting-prod.modern.js b/compiled/facebook-www/ReactDOMTesting-prod.modern.js index 969c323491e92..79b196f7339c4 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.modern.js @@ -16897,14 +16897,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1770 = React.version; if ( - "19.0.0-www-modern-a09950ed41-20240711" !== + "19.0.0-www-modern-af28f480-20240711" !== isomorphicReactPackageVersion$jscomp$inline_1770 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1770, - "19.0.0-www-modern-a09950ed41-20240711" + "19.0.0-www-modern-af28f480-20240711" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -16923,7 +16923,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1772 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-www-modern-a09950ed41-20240711", + version: "19.0.0-www-modern-af28f480-20240711", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2246 = { @@ -16953,7 +16953,7 @@ var internals$jscomp$inline_2246 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-modern-a09950ed41-20240711" + reconcilerVersion: "19.0.0-www-modern-af28f480-20240711" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2247 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -17475,4 +17475,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-modern-a09950ed41-20240711"; +exports.version = "19.0.0-www-modern-af28f480-20240711"; diff --git a/compiled/facebook-www/ReactReconciler-dev.classic.js b/compiled/facebook-www/ReactReconciler-dev.classic.js index 1f0f493d4187f..484c37511e4ad 100644 --- a/compiled/facebook-www/ReactReconciler-dev.classic.js +++ b/compiled/facebook-www/ReactReconciler-dev.classic.js @@ -6970,10 +6970,12 @@ __DEV__ && "%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; - componentName = getMaskedContext(workInProgress, componentName); + if (!disableLegacyContextForFunctionComponents) { + var context = isContextProvider(Component) + ? previousContext + : contextStackCursor$1.current; + context = getMaskedContext(workInProgress, context); + } prepareToReadContext(workInProgress, renderLanes); enableSchedulingProfiler && markComponentRenderStarted(workInProgress); Component = renderWithHooks( @@ -6981,7 +6983,7 @@ __DEV__ && workInProgress, Component, nextProps, - componentName, + context, renderLanes ); nextProps = checkDidRenderIdHook(); @@ -16522,6 +16524,8 @@ __DEV__ && alwaysThrottleRetries = dynamicFeatureFlags.alwaysThrottleRetries, disableDefaultPropsExceptForClasses = dynamicFeatureFlags.disableDefaultPropsExceptForClasses, + disableLegacyContextForFunctionComponents = + dynamicFeatureFlags.disableLegacyContextForFunctionComponents, disableSchedulerTimeoutInWorkLoop = dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, @@ -19111,7 +19115,7 @@ __DEV__ && scheduleRoot: scheduleRoot, setRefreshHandler: setRefreshHandler, getCurrentFiber: getCurrentFiberForDevTools, - reconcilerVersion: "19.0.0-www-classic-a09950ed41-20240711" + reconcilerVersion: "19.0.0-www-classic-af28f480-20240711" }); }; exports.isAlreadyRendering = function () { diff --git a/compiled/facebook-www/ReactReconciler-dev.modern.js b/compiled/facebook-www/ReactReconciler-dev.modern.js index 59084c459ec3c..94032ca57a5c1 100644 --- a/compiled/facebook-www/ReactReconciler-dev.modern.js +++ b/compiled/facebook-www/ReactReconciler-dev.modern.js @@ -18475,7 +18475,7 @@ __DEV__ && scheduleRoot: scheduleRoot, setRefreshHandler: setRefreshHandler, getCurrentFiber: getCurrentFiberForDevTools, - reconcilerVersion: "19.0.0-www-modern-a09950ed41-20240711" + reconcilerVersion: "19.0.0-www-modern-af28f480-20240711" }); }; exports.isAlreadyRendering = function () { diff --git a/compiled/facebook-www/ReactReconciler-prod.classic.js b/compiled/facebook-www/ReactReconciler-prod.classic.js index 537ae48df05e7..8c98e88962ce3 100644 --- a/compiled/facebook-www/ReactReconciler-prod.classic.js +++ b/compiled/facebook-www/ReactReconciler-prod.classic.js @@ -4338,10 +4338,12 @@ module.exports = function ($$$config) { nextProps, renderLanes ) { - var context = isContextProvider(Component) - ? previousContext - : contextStackCursor$1.current; - context = getMaskedContext(workInProgress, context); + if (!disableLegacyContextForFunctionComponents) { + var context = isContextProvider(Component) + ? previousContext + : contextStackCursor$1.current; + context = getMaskedContext(workInProgress, context); + } prepareToReadContext(workInProgress, renderLanes); Component = renderWithHooks( current, @@ -11560,6 +11562,8 @@ module.exports = function ($$$config) { alwaysThrottleRetries = dynamicFeatureFlags.alwaysThrottleRetries, disableDefaultPropsExceptForClasses = dynamicFeatureFlags.disableDefaultPropsExceptForClasses, + disableLegacyContextForFunctionComponents = + dynamicFeatureFlags.disableLegacyContextForFunctionComponents, disableSchedulerTimeoutInWorkLoop = dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, @@ -12736,7 +12740,7 @@ module.exports = function ($$$config) { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-classic-a09950ed41-20240711" + reconcilerVersion: "19.0.0-www-classic-af28f480-20240711" }; if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) devToolsConfig = !1; diff --git a/compiled/facebook-www/ReactReconciler-prod.modern.js b/compiled/facebook-www/ReactReconciler-prod.modern.js index ef12cc52b4f7e..e145de306c1df 100644 --- a/compiled/facebook-www/ReactReconciler-prod.modern.js +++ b/compiled/facebook-www/ReactReconciler-prod.modern.js @@ -12228,7 +12228,7 @@ module.exports = function ($$$config) { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-modern-a09950ed41-20240711" + reconcilerVersion: "19.0.0-www-modern-af28f480-20240711" }; if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) devToolsConfig = !1; diff --git a/compiled/facebook-www/ReactTestRenderer-dev.classic.js b/compiled/facebook-www/ReactTestRenderer-dev.classic.js index 061f2a662868e..4e36f132f7999 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.classic.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.classic.js @@ -14814,14 +14814,14 @@ __DEV__ && scheduleRoot: scheduleRoot, setRefreshHandler: setRefreshHandler, getCurrentFiber: getCurrentFiberForDevTools, - reconcilerVersion: "19.0.0-www-classic-a09950ed41-20240711" + reconcilerVersion: "19.0.0-www-classic-af28f480-20240711" }); })({ findFiberByHostInstance: function () { throw Error("TestRenderer does not support findFiberByHostInstance()"); }, bundleType: 1, - version: "19.0.0-www-classic-a09950ed41-20240711", + version: "19.0.0-www-classic-af28f480-20240711", rendererPackageName: "react-test-renderer" }); exports._Scheduler = Scheduler; diff --git a/compiled/facebook-www/ReactTestRenderer-dev.modern.js b/compiled/facebook-www/ReactTestRenderer-dev.modern.js index 31aa3923f6b2e..3b5e9cd47dde6 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.modern.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.modern.js @@ -14814,14 +14814,14 @@ __DEV__ && scheduleRoot: scheduleRoot, setRefreshHandler: setRefreshHandler, getCurrentFiber: getCurrentFiberForDevTools, - reconcilerVersion: "19.0.0-www-modern-a09950ed41-20240711" + reconcilerVersion: "19.0.0-www-modern-af28f480-20240711" }); })({ findFiberByHostInstance: function () { throw Error("TestRenderer does not support findFiberByHostInstance()"); }, bundleType: 1, - version: "19.0.0-www-modern-a09950ed41-20240711", + version: "19.0.0-www-modern-af28f480-20240711", rendererPackageName: "react-test-renderer" }); exports._Scheduler = Scheduler; diff --git a/compiled/facebook-www/VERSION_CLASSIC b/compiled/facebook-www/VERSION_CLASSIC index 5e2efb5928d63..f954a76008f06 100644 --- a/compiled/facebook-www/VERSION_CLASSIC +++ b/compiled/facebook-www/VERSION_CLASSIC @@ -1 +1 @@ -19.0.0-www-classic-a09950ed41-20240711 \ No newline at end of file +19.0.0-www-classic-af28f480-20240711 \ No newline at end of file diff --git a/compiled/facebook-www/VERSION_MODERN b/compiled/facebook-www/VERSION_MODERN index 8146aaa97e88c..b10ca294ce1c1 100644 --- a/compiled/facebook-www/VERSION_MODERN +++ b/compiled/facebook-www/VERSION_MODERN @@ -1 +1 @@ -19.0.0-www-modern-a09950ed41-20240711 \ No newline at end of file +19.0.0-www-modern-af28f480-20240711 \ No newline at end of file