From 010ea534a3e677747994f52907aad785dad320ff Mon Sep 17 00:00:00 2001 From: eps1lon Date: Wed, 18 Dec 2024 05:16:18 -0800 Subject: [PATCH] Ensure function arity is preserved after build (#31808) Co-authored-by: eps1lon DiffTrain build for [2bd1c756c6fffefb00cdb2986218fa2701ece82e](https://github.com/facebook/react/commit/2bd1c756c6fffefb00cdb2986218fa2701ece82e) --- compiled/facebook-www/REVISION | 2 +- compiled/facebook-www/REVISION_TRANSFORMS | 2 +- compiled/facebook-www/React-dev.classic.js | 2 +- compiled/facebook-www/React-dev.modern.js | 2 +- compiled/facebook-www/React-prod.classic.js | 2 +- compiled/facebook-www/React-prod.modern.js | 2 +- .../facebook-www/React-profiling.classic.js | 2 +- .../facebook-www/React-profiling.modern.js | 2 +- compiled/facebook-www/ReactART-dev.classic.js | 70 ++++------- compiled/facebook-www/ReactART-dev.modern.js | 70 ++++------- .../facebook-www/ReactART-prod.classic.js | 6 +- compiled/facebook-www/ReactART-prod.modern.js | 6 +- compiled/facebook-www/ReactDOM-dev.classic.js | 115 ++++++------------ compiled/facebook-www/ReactDOM-dev.modern.js | 115 ++++++------------ .../facebook-www/ReactDOM-prod.classic.js | 10 +- compiled/facebook-www/ReactDOM-prod.modern.js | 10 +- .../ReactDOM-profiling.classic.js | 10 +- .../facebook-www/ReactDOM-profiling.modern.js | 10 +- .../ReactDOMServer-dev.classic.js | 2 +- .../facebook-www/ReactDOMServer-dev.modern.js | 2 +- .../ReactDOMServer-prod.classic.js | 2 +- .../ReactDOMServer-prod.modern.js | 2 +- .../ReactDOMTesting-dev.classic.js | 115 ++++++------------ .../ReactDOMTesting-dev.modern.js | 115 ++++++------------ .../ReactDOMTesting-prod.classic.js | 10 +- .../ReactDOMTesting-prod.modern.js | 10 +- .../ReactReconciler-dev.classic.js | 66 +++------- .../ReactReconciler-dev.modern.js | 66 +++------- .../ReactReconciler-prod.classic.js | 2 +- .../ReactReconciler-prod.modern.js | 2 +- .../ReactTestRenderer-dev.classic.js | 64 +++------- .../ReactTestRenderer-dev.modern.js | 64 +++------- compiled/facebook-www/VERSION_CLASSIC | 2 +- compiled/facebook-www/VERSION_MODERN | 2 +- 34 files changed, 326 insertions(+), 638 deletions(-) diff --git a/compiled/facebook-www/REVISION b/compiled/facebook-www/REVISION index 3347a13c64..3c5d32fd27 100644 --- a/compiled/facebook-www/REVISION +++ b/compiled/facebook-www/REVISION @@ -1 +1 @@ -6a4b46cd70d2672bc4be59dcb5b8dede22ed0cef +2bd1c756c6fffefb00cdb2986218fa2701ece82e diff --git a/compiled/facebook-www/REVISION_TRANSFORMS b/compiled/facebook-www/REVISION_TRANSFORMS index 3347a13c64..3c5d32fd27 100644 --- a/compiled/facebook-www/REVISION_TRANSFORMS +++ b/compiled/facebook-www/REVISION_TRANSFORMS @@ -1 +1 @@ -6a4b46cd70d2672bc4be59dcb5b8dede22ed0cef +2bd1c756c6fffefb00cdb2986218fa2701ece82e diff --git a/compiled/facebook-www/React-dev.classic.js b/compiled/facebook-www/React-dev.classic.js index c44ca8ed45..0d4506ff56 100644 --- a/compiled/facebook-www/React-dev.classic.js +++ b/compiled/facebook-www/React-dev.classic.js @@ -1942,7 +1942,7 @@ __DEV__ && exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.1.0-www-classic-6a4b46cd-20241217"; + exports.version = "19.1.0-www-classic-2bd1c756-20241218"; "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 540d7f36be..4f4d7cbe98 100644 --- a/compiled/facebook-www/React-dev.modern.js +++ b/compiled/facebook-www/React-dev.modern.js @@ -1942,7 +1942,7 @@ __DEV__ && exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.1.0-www-modern-6a4b46cd-20241217"; + exports.version = "19.1.0-www-modern-2bd1c756-20241218"; "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 60a630fc34..a42277cefc 100644 --- a/compiled/facebook-www/React-prod.classic.js +++ b/compiled/facebook-www/React-prod.classic.js @@ -630,4 +630,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.1.0-www-classic-6a4b46cd-20241217"; +exports.version = "19.1.0-www-classic-2bd1c756-20241218"; diff --git a/compiled/facebook-www/React-prod.modern.js b/compiled/facebook-www/React-prod.modern.js index 34b0d56e86..c00a157f98 100644 --- a/compiled/facebook-www/React-prod.modern.js +++ b/compiled/facebook-www/React-prod.modern.js @@ -630,4 +630,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.1.0-www-modern-6a4b46cd-20241217"; +exports.version = "19.1.0-www-modern-2bd1c756-20241218"; diff --git a/compiled/facebook-www/React-profiling.classic.js b/compiled/facebook-www/React-profiling.classic.js index 7c457ead06..ff9c0d7ddb 100644 --- a/compiled/facebook-www/React-profiling.classic.js +++ b/compiled/facebook-www/React-profiling.classic.js @@ -634,7 +634,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.1.0-www-classic-6a4b46cd-20241217"; +exports.version = "19.1.0-www-classic-2bd1c756-20241218"; "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 6924a3c442..ac2c2fe738 100644 --- a/compiled/facebook-www/React-profiling.modern.js +++ b/compiled/facebook-www/React-profiling.modern.js @@ -634,7 +634,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.1.0-www-modern-6a4b46cd-20241217"; +exports.version = "19.1.0-www-modern-2bd1c756-20241218"; "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 e84e9dfd3d..87ec6e1ced 100644 --- a/compiled/facebook-www/ReactART-dev.classic.js +++ b/compiled/facebook-www/ReactART-dev.classic.js @@ -4598,19 +4598,15 @@ __DEV__ && provider = provider.return; } } - function dispatchReducerAction( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p0 - ) { - "function" === typeof JSCompiler_OptimizeArgumentsArray_p0 && + function dispatchReducerAction(fiber, queue, action) { + var args = arguments; + "function" === typeof args[3] && error$jscomp$0( "State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()." ); - JSCompiler_OptimizeArgumentsArray_p0 = requestUpdateLane(fiber); - action = { - lane: JSCompiler_OptimizeArgumentsArray_p0, + args = requestUpdateLane(fiber); + var update = { + lane: args, revertLane: 0, action: action, hasEagerState: !1, @@ -4618,46 +4614,22 @@ __DEV__ && next: null }; isRenderPhaseUpdate(fiber) - ? enqueueRenderPhaseUpdate(queue, action) - : ((action = enqueueConcurrentHookUpdate( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p0 - )), - null !== action && - (scheduleUpdateOnFiber( - action, - fiber, - JSCompiler_OptimizeArgumentsArray_p0 - ), - entangleTransitionUpdate( - action, - queue, - JSCompiler_OptimizeArgumentsArray_p0 - ))); - enableSchedulingProfiler && - markStateUpdateScheduled(fiber, JSCompiler_OptimizeArgumentsArray_p0); + ? enqueueRenderPhaseUpdate(queue, update) + : ((update = enqueueConcurrentHookUpdate(fiber, queue, update, args)), + null !== update && + (scheduleUpdateOnFiber(update, fiber, args), + entangleTransitionUpdate(update, queue, args))); + enableSchedulingProfiler && markStateUpdateScheduled(fiber, args); } - function dispatchSetState( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p1 - ) { - "function" === typeof JSCompiler_OptimizeArgumentsArray_p1 && + function dispatchSetState(fiber, queue, action) { + var args = arguments; + "function" === typeof args[3] && error$jscomp$0( "State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()." ); - JSCompiler_OptimizeArgumentsArray_p1 = requestUpdateLane(fiber); - dispatchSetStateInternal( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p1 - ); - enableSchedulingProfiler && - markStateUpdateScheduled(fiber, JSCompiler_OptimizeArgumentsArray_p1); + args = requestUpdateLane(fiber); + dispatchSetStateInternal(fiber, queue, action, args); + enableSchedulingProfiler && markStateUpdateScheduled(fiber, args); } function dispatchSetStateInternal(fiber, queue, action, lane) { var update = { @@ -16898,10 +16870,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.1.0-www-classic-6a4b46cd-20241217", + version: "19.1.0-www-classic-2bd1c756-20241218", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-6a4b46cd-20241217" + reconcilerVersion: "19.1.0-www-classic-2bd1c756-20241218" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -16935,7 +16907,7 @@ __DEV__ && exports.Shape = Shape; exports.Surface = Surface; exports.Text = Text; - exports.version = "19.1.0-www-classic-6a4b46cd-20241217"; + exports.version = "19.1.0-www-classic-2bd1c756-20241218"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactART-dev.modern.js b/compiled/facebook-www/ReactART-dev.modern.js index 7b6bc09bc8..86ff6f24c7 100644 --- a/compiled/facebook-www/ReactART-dev.modern.js +++ b/compiled/facebook-www/ReactART-dev.modern.js @@ -4490,19 +4490,15 @@ __DEV__ && provider = provider.return; } } - function dispatchReducerAction( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p0 - ) { - "function" === typeof JSCompiler_OptimizeArgumentsArray_p0 && + function dispatchReducerAction(fiber, queue, action) { + var args = arguments; + "function" === typeof args[3] && error$jscomp$0( "State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()." ); - JSCompiler_OptimizeArgumentsArray_p0 = requestUpdateLane(fiber); - action = { - lane: JSCompiler_OptimizeArgumentsArray_p0, + args = requestUpdateLane(fiber); + var update = { + lane: args, revertLane: 0, action: action, hasEagerState: !1, @@ -4510,46 +4506,22 @@ __DEV__ && next: null }; isRenderPhaseUpdate(fiber) - ? enqueueRenderPhaseUpdate(queue, action) - : ((action = enqueueConcurrentHookUpdate( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p0 - )), - null !== action && - (scheduleUpdateOnFiber( - action, - fiber, - JSCompiler_OptimizeArgumentsArray_p0 - ), - entangleTransitionUpdate( - action, - queue, - JSCompiler_OptimizeArgumentsArray_p0 - ))); - enableSchedulingProfiler && - markStateUpdateScheduled(fiber, JSCompiler_OptimizeArgumentsArray_p0); + ? enqueueRenderPhaseUpdate(queue, update) + : ((update = enqueueConcurrentHookUpdate(fiber, queue, update, args)), + null !== update && + (scheduleUpdateOnFiber(update, fiber, args), + entangleTransitionUpdate(update, queue, args))); + enableSchedulingProfiler && markStateUpdateScheduled(fiber, args); } - function dispatchSetState( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p1 - ) { - "function" === typeof JSCompiler_OptimizeArgumentsArray_p1 && + function dispatchSetState(fiber, queue, action) { + var args = arguments; + "function" === typeof args[3] && error$jscomp$0( "State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()." ); - JSCompiler_OptimizeArgumentsArray_p1 = requestUpdateLane(fiber); - dispatchSetStateInternal( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p1 - ); - enableSchedulingProfiler && - markStateUpdateScheduled(fiber, JSCompiler_OptimizeArgumentsArray_p1); + args = requestUpdateLane(fiber); + dispatchSetStateInternal(fiber, queue, action, args); + enableSchedulingProfiler && markStateUpdateScheduled(fiber, args); } function dispatchSetStateInternal(fiber, queue, action, lane) { var update = { @@ -16661,10 +16633,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.1.0-www-modern-6a4b46cd-20241217", + version: "19.1.0-www-modern-2bd1c756-20241218", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-6a4b46cd-20241217" + reconcilerVersion: "19.1.0-www-modern-2bd1c756-20241218" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -16698,7 +16670,7 @@ __DEV__ && exports.Shape = Shape; exports.Surface = Surface; exports.Text = Text; - exports.version = "19.1.0-www-modern-6a4b46cd-20241217"; + exports.version = "19.1.0-www-modern-2bd1c756-20241218"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactART-prod.classic.js b/compiled/facebook-www/ReactART-prod.classic.js index 455e2b75bb..0f51ebbfdb 100644 --- a/compiled/facebook-www/ReactART-prod.classic.js +++ b/compiled/facebook-www/ReactART-prod.classic.js @@ -10757,10 +10757,10 @@ var slice = Array.prototype.slice, })(React.Component); var internals$jscomp$inline_1495 = { bundleType: 0, - version: "19.1.0-www-classic-6a4b46cd-20241217", + version: "19.1.0-www-classic-2bd1c756-20241218", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-6a4b46cd-20241217" + reconcilerVersion: "19.1.0-www-classic-2bd1c756-20241218" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1496 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -10786,4 +10786,4 @@ exports.RadialGradient = RadialGradient; exports.Shape = TYPES.SHAPE; exports.Surface = Surface; exports.Text = Text; -exports.version = "19.1.0-www-classic-6a4b46cd-20241217"; +exports.version = "19.1.0-www-classic-2bd1c756-20241218"; diff --git a/compiled/facebook-www/ReactART-prod.modern.js b/compiled/facebook-www/ReactART-prod.modern.js index 3ad9eb0d58..557f8ff6cc 100644 --- a/compiled/facebook-www/ReactART-prod.modern.js +++ b/compiled/facebook-www/ReactART-prod.modern.js @@ -10473,10 +10473,10 @@ var slice = Array.prototype.slice, })(React.Component); var internals$jscomp$inline_1474 = { bundleType: 0, - version: "19.1.0-www-modern-6a4b46cd-20241217", + version: "19.1.0-www-modern-2bd1c756-20241218", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-6a4b46cd-20241217" + reconcilerVersion: "19.1.0-www-modern-2bd1c756-20241218" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1475 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -10502,4 +10502,4 @@ exports.RadialGradient = RadialGradient; exports.Shape = TYPES.SHAPE; exports.Surface = Surface; exports.Text = Text; -exports.version = "19.1.0-www-modern-6a4b46cd-20241217"; +exports.version = "19.1.0-www-modern-2bd1c756-20241218"; diff --git a/compiled/facebook-www/ReactDOM-dev.classic.js b/compiled/facebook-www/ReactDOM-dev.classic.js index 305d5c2158..98f2956749 100644 --- a/compiled/facebook-www/ReactDOM-dev.classic.js +++ b/compiled/facebook-www/ReactDOM-dev.classic.js @@ -6556,19 +6556,15 @@ __DEV__ && provider = provider.return; } } - function dispatchReducerAction( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p0 - ) { - "function" === typeof JSCompiler_OptimizeArgumentsArray_p0 && + function dispatchReducerAction(fiber, queue, action) { + var args = arguments; + "function" === typeof args[3] && error$jscomp$0( "State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()." ); - JSCompiler_OptimizeArgumentsArray_p0 = requestUpdateLane(fiber); - action = { - lane: JSCompiler_OptimizeArgumentsArray_p0, + args = requestUpdateLane(fiber); + var update = { + lane: args, revertLane: 0, action: action, hasEagerState: !1, @@ -6576,46 +6572,22 @@ __DEV__ && next: null }; isRenderPhaseUpdate(fiber) - ? enqueueRenderPhaseUpdate(queue, action) - : ((action = enqueueConcurrentHookUpdate( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p0 - )), - null !== action && - (scheduleUpdateOnFiber( - action, - fiber, - JSCompiler_OptimizeArgumentsArray_p0 - ), - entangleTransitionUpdate( - action, - queue, - JSCompiler_OptimizeArgumentsArray_p0 - ))); - enableSchedulingProfiler && - markStateUpdateScheduled(fiber, JSCompiler_OptimizeArgumentsArray_p0); + ? enqueueRenderPhaseUpdate(queue, update) + : ((update = enqueueConcurrentHookUpdate(fiber, queue, update, args)), + null !== update && + (scheduleUpdateOnFiber(update, fiber, args), + entangleTransitionUpdate(update, queue, args))); + enableSchedulingProfiler && markStateUpdateScheduled(fiber, args); } - function dispatchSetState( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p1 - ) { - "function" === typeof JSCompiler_OptimizeArgumentsArray_p1 && + function dispatchSetState(fiber, queue, action) { + var args = arguments; + "function" === typeof args[3] && error$jscomp$0( "State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()." ); - JSCompiler_OptimizeArgumentsArray_p1 = requestUpdateLane(fiber); - dispatchSetStateInternal( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p1 - ); - enableSchedulingProfiler && - markStateUpdateScheduled(fiber, JSCompiler_OptimizeArgumentsArray_p1); + args = requestUpdateLane(fiber); + dispatchSetStateInternal(fiber, queue, action, args); + enableSchedulingProfiler && markStateUpdateScheduled(fiber, args); } function dispatchSetStateInternal(fiber, queue, action, lane) { var update = { @@ -27373,11 +27345,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-www-classic-6a4b46cd-20241217" !== isomorphicReactPackageVersion) + if ("19.1.0-www-classic-2bd1c756-20241218" !== 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.1.0-www-classic-6a4b46cd-20241217\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-www-classic-2bd1c756-20241218\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -27420,10 +27392,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.1.0-www-classic-6a4b46cd-20241217", + version: "19.1.0-www-classic-2bd1c756-20241218", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-6a4b46cd-20241217" + reconcilerVersion: "19.1.0-www-classic-2bd1c756-20241218" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -27460,52 +27432,43 @@ __DEV__ && ); } ReactDOMHydrationRoot.prototype.render = ReactDOMRoot.prototype.render = - function (children, JSCompiler_OptimizeArgumentsArray_p2) { + function (children) { var root = this._internalRoot; if (null === root) throw Error("Cannot update an unmounted root."); - "function" === typeof JSCompiler_OptimizeArgumentsArray_p2 + var args = arguments; + "function" === typeof args[1] ? error$jscomp$0( "does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()." ) - : isValidContainer(JSCompiler_OptimizeArgumentsArray_p2) + : isValidContainer(args[1]) ? error$jscomp$0( "You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root." ) - : "undefined" !== typeof JSCompiler_OptimizeArgumentsArray_p2 && + : "undefined" !== typeof args[1] && error$jscomp$0( "You passed a second argument to root.render(...) but it only accepts one argument." ); - JSCompiler_OptimizeArgumentsArray_p2 = root.current; - var lane = requestUpdateLane(JSCompiler_OptimizeArgumentsArray_p2); - updateContainerImpl( - JSCompiler_OptimizeArgumentsArray_p2, - lane, - children, - root, - null, - null - ); + args = children; + var current = root.current, + lane = requestUpdateLane(current); + updateContainerImpl(current, lane, args, root, null, null); }; ReactDOMHydrationRoot.prototype.unmount = ReactDOMRoot.prototype.unmount = - function (JSCompiler_OptimizeArgumentsArray_p3) { - "function" === typeof JSCompiler_OptimizeArgumentsArray_p3 && + function () { + var args = arguments; + "function" === typeof args[0] && error$jscomp$0( "does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()." ); - JSCompiler_OptimizeArgumentsArray_p3 = this._internalRoot; - if (null !== JSCompiler_OptimizeArgumentsArray_p3) { + args = this._internalRoot; + if (null !== args) { this._internalRoot = null; - var container = JSCompiler_OptimizeArgumentsArray_p3.containerInfo; + var container = args.containerInfo; (executionContext & (RenderContext | CommitContext)) !== NoContext && error$jscomp$0( "Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition." ); - updateContainerSync( - null, - JSCompiler_OptimizeArgumentsArray_p3, - null, - null - ); + updateContainerSync(null, args, null, null); flushSyncWork$1(); container[internalContainerInstanceKey] = null; } @@ -28030,7 +27993,7 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.1.0-www-classic-6a4b46cd-20241217"; + exports.version = "19.1.0-www-classic-2bd1c756-20241218"; "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 a81edbf923..3a97bbc11b 100644 --- a/compiled/facebook-www/ReactDOM-dev.modern.js +++ b/compiled/facebook-www/ReactDOM-dev.modern.js @@ -6443,19 +6443,15 @@ __DEV__ && provider = provider.return; } } - function dispatchReducerAction( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p0 - ) { - "function" === typeof JSCompiler_OptimizeArgumentsArray_p0 && + function dispatchReducerAction(fiber, queue, action) { + var args = arguments; + "function" === typeof args[3] && error$jscomp$0( "State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()." ); - JSCompiler_OptimizeArgumentsArray_p0 = requestUpdateLane(fiber); - action = { - lane: JSCompiler_OptimizeArgumentsArray_p0, + args = requestUpdateLane(fiber); + var update = { + lane: args, revertLane: 0, action: action, hasEagerState: !1, @@ -6463,46 +6459,22 @@ __DEV__ && next: null }; isRenderPhaseUpdate(fiber) - ? enqueueRenderPhaseUpdate(queue, action) - : ((action = enqueueConcurrentHookUpdate( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p0 - )), - null !== action && - (scheduleUpdateOnFiber( - action, - fiber, - JSCompiler_OptimizeArgumentsArray_p0 - ), - entangleTransitionUpdate( - action, - queue, - JSCompiler_OptimizeArgumentsArray_p0 - ))); - enableSchedulingProfiler && - markStateUpdateScheduled(fiber, JSCompiler_OptimizeArgumentsArray_p0); + ? enqueueRenderPhaseUpdate(queue, update) + : ((update = enqueueConcurrentHookUpdate(fiber, queue, update, args)), + null !== update && + (scheduleUpdateOnFiber(update, fiber, args), + entangleTransitionUpdate(update, queue, args))); + enableSchedulingProfiler && markStateUpdateScheduled(fiber, args); } - function dispatchSetState( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p1 - ) { - "function" === typeof JSCompiler_OptimizeArgumentsArray_p1 && + function dispatchSetState(fiber, queue, action) { + var args = arguments; + "function" === typeof args[3] && error$jscomp$0( "State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()." ); - JSCompiler_OptimizeArgumentsArray_p1 = requestUpdateLane(fiber); - dispatchSetStateInternal( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p1 - ); - enableSchedulingProfiler && - markStateUpdateScheduled(fiber, JSCompiler_OptimizeArgumentsArray_p1); + args = requestUpdateLane(fiber); + dispatchSetStateInternal(fiber, queue, action, args); + enableSchedulingProfiler && markStateUpdateScheduled(fiber, args); } function dispatchSetStateInternal(fiber, queue, action, lane) { var update = { @@ -27152,11 +27124,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-www-modern-6a4b46cd-20241217" !== isomorphicReactPackageVersion) + if ("19.1.0-www-modern-2bd1c756-20241218" !== 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.1.0-www-modern-6a4b46cd-20241217\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-www-modern-2bd1c756-20241218\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -27199,10 +27171,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.1.0-www-modern-6a4b46cd-20241217", + version: "19.1.0-www-modern-2bd1c756-20241218", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-6a4b46cd-20241217" + reconcilerVersion: "19.1.0-www-modern-2bd1c756-20241218" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -27239,52 +27211,43 @@ __DEV__ && ); } ReactDOMHydrationRoot.prototype.render = ReactDOMRoot.prototype.render = - function (children, JSCompiler_OptimizeArgumentsArray_p2) { + function (children) { var root = this._internalRoot; if (null === root) throw Error("Cannot update an unmounted root."); - "function" === typeof JSCompiler_OptimizeArgumentsArray_p2 + var args = arguments; + "function" === typeof args[1] ? error$jscomp$0( "does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()." ) - : isValidContainer(JSCompiler_OptimizeArgumentsArray_p2) + : isValidContainer(args[1]) ? error$jscomp$0( "You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root." ) - : "undefined" !== typeof JSCompiler_OptimizeArgumentsArray_p2 && + : "undefined" !== typeof args[1] && error$jscomp$0( "You passed a second argument to root.render(...) but it only accepts one argument." ); - JSCompiler_OptimizeArgumentsArray_p2 = root.current; - var lane = requestUpdateLane(JSCompiler_OptimizeArgumentsArray_p2); - updateContainerImpl( - JSCompiler_OptimizeArgumentsArray_p2, - lane, - children, - root, - null, - null - ); + args = children; + var current = root.current, + lane = requestUpdateLane(current); + updateContainerImpl(current, lane, args, root, null, null); }; ReactDOMHydrationRoot.prototype.unmount = ReactDOMRoot.prototype.unmount = - function (JSCompiler_OptimizeArgumentsArray_p3) { - "function" === typeof JSCompiler_OptimizeArgumentsArray_p3 && + function () { + var args = arguments; + "function" === typeof args[0] && error$jscomp$0( "does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()." ); - JSCompiler_OptimizeArgumentsArray_p3 = this._internalRoot; - if (null !== JSCompiler_OptimizeArgumentsArray_p3) { + args = this._internalRoot; + if (null !== args) { this._internalRoot = null; - var container = JSCompiler_OptimizeArgumentsArray_p3.containerInfo; + var container = args.containerInfo; (executionContext & (RenderContext | CommitContext)) !== NoContext && error$jscomp$0( "Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition." ); - updateContainerSync( - null, - JSCompiler_OptimizeArgumentsArray_p3, - null, - null - ); + updateContainerSync(null, args, null, null); flushSyncWork$1(); container[internalContainerInstanceKey] = null; } @@ -27809,7 +27772,7 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.1.0-www-modern-6a4b46cd-20241217"; + exports.version = "19.1.0-www-modern-2bd1c756-20241218"; "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 d540ecf6ad..6b8e0a1d0b 100644 --- a/compiled/facebook-www/ReactDOM-prod.classic.js +++ b/compiled/facebook-www/ReactDOM-prod.classic.js @@ -17221,14 +17221,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1767 = React.version; if ( - "19.1.0-www-classic-6a4b46cd-20241217" !== + "19.1.0-www-classic-2bd1c756-20241218" !== isomorphicReactPackageVersion$jscomp$inline_1767 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1767, - "19.1.0-www-classic-6a4b46cd-20241217" + "19.1.0-www-classic-2bd1c756-20241218" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -17246,10 +17246,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_2301 = { bundleType: 0, - version: "19.1.0-www-classic-6a4b46cd-20241217", + version: "19.1.0-www-classic-2bd1c756-20241218", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-6a4b46cd-20241217" + reconcilerVersion: "19.1.0-www-classic-2bd1c756-20241218" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2302 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -17614,4 +17614,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-www-classic-6a4b46cd-20241217"; +exports.version = "19.1.0-www-classic-2bd1c756-20241218"; diff --git a/compiled/facebook-www/ReactDOM-prod.modern.js b/compiled/facebook-www/ReactDOM-prod.modern.js index ed66f7644c..a0de54cd6e 100644 --- a/compiled/facebook-www/ReactDOM-prod.modern.js +++ b/compiled/facebook-www/ReactDOM-prod.modern.js @@ -16952,14 +16952,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1757 = React.version; if ( - "19.1.0-www-modern-6a4b46cd-20241217" !== + "19.1.0-www-modern-2bd1c756-20241218" !== isomorphicReactPackageVersion$jscomp$inline_1757 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1757, - "19.1.0-www-modern-6a4b46cd-20241217" + "19.1.0-www-modern-2bd1c756-20241218" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -16977,10 +16977,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_2283 = { bundleType: 0, - version: "19.1.0-www-modern-6a4b46cd-20241217", + version: "19.1.0-www-modern-2bd1c756-20241218", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-6a4b46cd-20241217" + reconcilerVersion: "19.1.0-www-modern-2bd1c756-20241218" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2284 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -17345,4 +17345,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-www-modern-6a4b46cd-20241217"; +exports.version = "19.1.0-www-modern-2bd1c756-20241218"; diff --git a/compiled/facebook-www/ReactDOM-profiling.classic.js b/compiled/facebook-www/ReactDOM-profiling.classic.js index da59db87c0..6eaac351d6 100644 --- a/compiled/facebook-www/ReactDOM-profiling.classic.js +++ b/compiled/facebook-www/ReactDOM-profiling.classic.js @@ -17910,14 +17910,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1860 = React.version; if ( - "19.1.0-www-classic-6a4b46cd-20241217" !== + "19.1.0-www-classic-2bd1c756-20241218" !== isomorphicReactPackageVersion$jscomp$inline_1860 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1860, - "19.1.0-www-classic-6a4b46cd-20241217" + "19.1.0-www-classic-2bd1c756-20241218" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -17935,10 +17935,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_1862 = { bundleType: 0, - version: "19.1.0-www-classic-6a4b46cd-20241217", + version: "19.1.0-www-classic-2bd1c756-20241218", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-6a4b46cd-20241217" + reconcilerVersion: "19.1.0-www-classic-2bd1c756-20241218" }; enableSchedulingProfiler && ((internals$jscomp$inline_1862.getLaneLabelMap = getLaneLabelMap), @@ -18306,7 +18306,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-www-classic-6a4b46cd-20241217"; +exports.version = "19.1.0-www-classic-2bd1c756-20241218"; "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 d1a46444a4..3f600dd64e 100644 --- a/compiled/facebook-www/ReactDOM-profiling.modern.js +++ b/compiled/facebook-www/ReactDOM-profiling.modern.js @@ -17640,14 +17640,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1850 = React.version; if ( - "19.1.0-www-modern-6a4b46cd-20241217" !== + "19.1.0-www-modern-2bd1c756-20241218" !== isomorphicReactPackageVersion$jscomp$inline_1850 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1850, - "19.1.0-www-modern-6a4b46cd-20241217" + "19.1.0-www-modern-2bd1c756-20241218" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -17665,10 +17665,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_1852 = { bundleType: 0, - version: "19.1.0-www-modern-6a4b46cd-20241217", + version: "19.1.0-www-modern-2bd1c756-20241218", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-6a4b46cd-20241217" + reconcilerVersion: "19.1.0-www-modern-2bd1c756-20241218" }; enableSchedulingProfiler && ((internals$jscomp$inline_1852.getLaneLabelMap = getLaneLabelMap), @@ -18036,7 +18036,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-www-modern-6a4b46cd-20241217"; +exports.version = "19.1.0-www-modern-2bd1c756-20241218"; "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 e7dbce4e8a..b1853b6270 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.classic.js +++ b/compiled/facebook-www/ReactDOMServer-dev.classic.js @@ -9150,5 +9150,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.1.0-www-classic-6a4b46cd-20241217"; + exports.version = "19.1.0-www-classic-2bd1c756-20241218"; })(); diff --git a/compiled/facebook-www/ReactDOMServer-dev.modern.js b/compiled/facebook-www/ReactDOMServer-dev.modern.js index 1fc9264a84..c0ce9de7a8 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.modern.js +++ b/compiled/facebook-www/ReactDOMServer-dev.modern.js @@ -8976,5 +8976,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.1.0-www-modern-6a4b46cd-20241217"; + exports.version = "19.1.0-www-modern-2bd1c756-20241218"; })(); diff --git a/compiled/facebook-www/ReactDOMServer-prod.classic.js b/compiled/facebook-www/ReactDOMServer-prod.classic.js index e20bde84f5..e66a13bf86 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.classic.js +++ b/compiled/facebook-www/ReactDOMServer-prod.classic.js @@ -5898,4 +5898,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.1.0-www-classic-6a4b46cd-20241217"; +exports.version = "19.1.0-www-classic-2bd1c756-20241218"; diff --git a/compiled/facebook-www/ReactDOMServer-prod.modern.js b/compiled/facebook-www/ReactDOMServer-prod.modern.js index 59f6bfadcf..c9fb33fef1 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.modern.js +++ b/compiled/facebook-www/ReactDOMServer-prod.modern.js @@ -5810,4 +5810,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.1.0-www-modern-6a4b46cd-20241217"; +exports.version = "19.1.0-www-modern-2bd1c756-20241218"; diff --git a/compiled/facebook-www/ReactDOMTesting-dev.classic.js b/compiled/facebook-www/ReactDOMTesting-dev.classic.js index 6f700a5902..4b87a13e0c 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.classic.js @@ -6597,19 +6597,15 @@ __DEV__ && provider = provider.return; } } - function dispatchReducerAction( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p0 - ) { - "function" === typeof JSCompiler_OptimizeArgumentsArray_p0 && + function dispatchReducerAction(fiber, queue, action) { + var args = arguments; + "function" === typeof args[3] && error$jscomp$0( "State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()." ); - JSCompiler_OptimizeArgumentsArray_p0 = requestUpdateLane(fiber); - action = { - lane: JSCompiler_OptimizeArgumentsArray_p0, + args = requestUpdateLane(fiber); + var update = { + lane: args, revertLane: 0, action: action, hasEagerState: !1, @@ -6617,46 +6613,22 @@ __DEV__ && next: null }; isRenderPhaseUpdate(fiber) - ? enqueueRenderPhaseUpdate(queue, action) - : ((action = enqueueConcurrentHookUpdate( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p0 - )), - null !== action && - (scheduleUpdateOnFiber( - action, - fiber, - JSCompiler_OptimizeArgumentsArray_p0 - ), - entangleTransitionUpdate( - action, - queue, - JSCompiler_OptimizeArgumentsArray_p0 - ))); - enableSchedulingProfiler && - markStateUpdateScheduled(fiber, JSCompiler_OptimizeArgumentsArray_p0); + ? enqueueRenderPhaseUpdate(queue, update) + : ((update = enqueueConcurrentHookUpdate(fiber, queue, update, args)), + null !== update && + (scheduleUpdateOnFiber(update, fiber, args), + entangleTransitionUpdate(update, queue, args))); + enableSchedulingProfiler && markStateUpdateScheduled(fiber, args); } - function dispatchSetState( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p1 - ) { - "function" === typeof JSCompiler_OptimizeArgumentsArray_p1 && + function dispatchSetState(fiber, queue, action) { + var args = arguments; + "function" === typeof args[3] && error$jscomp$0( "State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()." ); - JSCompiler_OptimizeArgumentsArray_p1 = requestUpdateLane(fiber); - dispatchSetStateInternal( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p1 - ); - enableSchedulingProfiler && - markStateUpdateScheduled(fiber, JSCompiler_OptimizeArgumentsArray_p1); + args = requestUpdateLane(fiber); + dispatchSetStateInternal(fiber, queue, action, args); + enableSchedulingProfiler && markStateUpdateScheduled(fiber, args); } function dispatchSetStateInternal(fiber, queue, action, lane) { var update = { @@ -27707,11 +27679,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-www-classic-6a4b46cd-20241217" !== isomorphicReactPackageVersion) + if ("19.1.0-www-classic-2bd1c756-20241218" !== 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.1.0-www-classic-6a4b46cd-20241217\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-www-classic-2bd1c756-20241218\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -27754,10 +27726,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.1.0-www-classic-6a4b46cd-20241217", + version: "19.1.0-www-classic-2bd1c756-20241218", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-6a4b46cd-20241217" + reconcilerVersion: "19.1.0-www-classic-2bd1c756-20241218" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -27794,52 +27766,43 @@ __DEV__ && ); } ReactDOMHydrationRoot.prototype.render = ReactDOMRoot.prototype.render = - function (children, JSCompiler_OptimizeArgumentsArray_p2) { + function (children) { var root = this._internalRoot; if (null === root) throw Error("Cannot update an unmounted root."); - "function" === typeof JSCompiler_OptimizeArgumentsArray_p2 + var args = arguments; + "function" === typeof args[1] ? error$jscomp$0( "does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()." ) - : isValidContainer(JSCompiler_OptimizeArgumentsArray_p2) + : isValidContainer(args[1]) ? error$jscomp$0( "You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root." ) - : "undefined" !== typeof JSCompiler_OptimizeArgumentsArray_p2 && + : "undefined" !== typeof args[1] && error$jscomp$0( "You passed a second argument to root.render(...) but it only accepts one argument." ); - JSCompiler_OptimizeArgumentsArray_p2 = root.current; - var lane = requestUpdateLane(JSCompiler_OptimizeArgumentsArray_p2); - updateContainerImpl( - JSCompiler_OptimizeArgumentsArray_p2, - lane, - children, - root, - null, - null - ); + args = children; + var current = root.current, + lane = requestUpdateLane(current); + updateContainerImpl(current, lane, args, root, null, null); }; ReactDOMHydrationRoot.prototype.unmount = ReactDOMRoot.prototype.unmount = - function (JSCompiler_OptimizeArgumentsArray_p3) { - "function" === typeof JSCompiler_OptimizeArgumentsArray_p3 && + function () { + var args = arguments; + "function" === typeof args[0] && error$jscomp$0( "does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()." ); - JSCompiler_OptimizeArgumentsArray_p3 = this._internalRoot; - if (null !== JSCompiler_OptimizeArgumentsArray_p3) { + args = this._internalRoot; + if (null !== args) { this._internalRoot = null; - var container = JSCompiler_OptimizeArgumentsArray_p3.containerInfo; + var container = args.containerInfo; (executionContext & (RenderContext | CommitContext)) !== NoContext && error$jscomp$0( "Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition." ); - updateContainerSync( - null, - JSCompiler_OptimizeArgumentsArray_p3, - null, - null - ); + updateContainerSync(null, args, null, null); flushSyncWork$1(); container[internalContainerInstanceKey] = null; } @@ -28530,5 +28493,5 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.1.0-www-classic-6a4b46cd-20241217"; + exports.version = "19.1.0-www-classic-2bd1c756-20241218"; })(); diff --git a/compiled/facebook-www/ReactDOMTesting-dev.modern.js b/compiled/facebook-www/ReactDOMTesting-dev.modern.js index 796395dbc7..ebe1023c0a 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.modern.js @@ -6484,19 +6484,15 @@ __DEV__ && provider = provider.return; } } - function dispatchReducerAction( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p0 - ) { - "function" === typeof JSCompiler_OptimizeArgumentsArray_p0 && + function dispatchReducerAction(fiber, queue, action) { + var args = arguments; + "function" === typeof args[3] && error$jscomp$0( "State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()." ); - JSCompiler_OptimizeArgumentsArray_p0 = requestUpdateLane(fiber); - action = { - lane: JSCompiler_OptimizeArgumentsArray_p0, + args = requestUpdateLane(fiber); + var update = { + lane: args, revertLane: 0, action: action, hasEagerState: !1, @@ -6504,46 +6500,22 @@ __DEV__ && next: null }; isRenderPhaseUpdate(fiber) - ? enqueueRenderPhaseUpdate(queue, action) - : ((action = enqueueConcurrentHookUpdate( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p0 - )), - null !== action && - (scheduleUpdateOnFiber( - action, - fiber, - JSCompiler_OptimizeArgumentsArray_p0 - ), - entangleTransitionUpdate( - action, - queue, - JSCompiler_OptimizeArgumentsArray_p0 - ))); - enableSchedulingProfiler && - markStateUpdateScheduled(fiber, JSCompiler_OptimizeArgumentsArray_p0); + ? enqueueRenderPhaseUpdate(queue, update) + : ((update = enqueueConcurrentHookUpdate(fiber, queue, update, args)), + null !== update && + (scheduleUpdateOnFiber(update, fiber, args), + entangleTransitionUpdate(update, queue, args))); + enableSchedulingProfiler && markStateUpdateScheduled(fiber, args); } - function dispatchSetState( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p1 - ) { - "function" === typeof JSCompiler_OptimizeArgumentsArray_p1 && + function dispatchSetState(fiber, queue, action) { + var args = arguments; + "function" === typeof args[3] && error$jscomp$0( "State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()." ); - JSCompiler_OptimizeArgumentsArray_p1 = requestUpdateLane(fiber); - dispatchSetStateInternal( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p1 - ); - enableSchedulingProfiler && - markStateUpdateScheduled(fiber, JSCompiler_OptimizeArgumentsArray_p1); + args = requestUpdateLane(fiber); + dispatchSetStateInternal(fiber, queue, action, args); + enableSchedulingProfiler && markStateUpdateScheduled(fiber, args); } function dispatchSetStateInternal(fiber, queue, action, lane) { var update = { @@ -27486,11 +27458,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-www-modern-6a4b46cd-20241217" !== isomorphicReactPackageVersion) + if ("19.1.0-www-modern-2bd1c756-20241218" !== 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.1.0-www-modern-6a4b46cd-20241217\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-www-modern-2bd1c756-20241218\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -27533,10 +27505,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.1.0-www-modern-6a4b46cd-20241217", + version: "19.1.0-www-modern-2bd1c756-20241218", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-6a4b46cd-20241217" + reconcilerVersion: "19.1.0-www-modern-2bd1c756-20241218" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -27573,52 +27545,43 @@ __DEV__ && ); } ReactDOMHydrationRoot.prototype.render = ReactDOMRoot.prototype.render = - function (children, JSCompiler_OptimizeArgumentsArray_p2) { + function (children) { var root = this._internalRoot; if (null === root) throw Error("Cannot update an unmounted root."); - "function" === typeof JSCompiler_OptimizeArgumentsArray_p2 + var args = arguments; + "function" === typeof args[1] ? error$jscomp$0( "does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()." ) - : isValidContainer(JSCompiler_OptimizeArgumentsArray_p2) + : isValidContainer(args[1]) ? error$jscomp$0( "You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root." ) - : "undefined" !== typeof JSCompiler_OptimizeArgumentsArray_p2 && + : "undefined" !== typeof args[1] && error$jscomp$0( "You passed a second argument to root.render(...) but it only accepts one argument." ); - JSCompiler_OptimizeArgumentsArray_p2 = root.current; - var lane = requestUpdateLane(JSCompiler_OptimizeArgumentsArray_p2); - updateContainerImpl( - JSCompiler_OptimizeArgumentsArray_p2, - lane, - children, - root, - null, - null - ); + args = children; + var current = root.current, + lane = requestUpdateLane(current); + updateContainerImpl(current, lane, args, root, null, null); }; ReactDOMHydrationRoot.prototype.unmount = ReactDOMRoot.prototype.unmount = - function (JSCompiler_OptimizeArgumentsArray_p3) { - "function" === typeof JSCompiler_OptimizeArgumentsArray_p3 && + function () { + var args = arguments; + "function" === typeof args[0] && error$jscomp$0( "does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()." ); - JSCompiler_OptimizeArgumentsArray_p3 = this._internalRoot; - if (null !== JSCompiler_OptimizeArgumentsArray_p3) { + args = this._internalRoot; + if (null !== args) { this._internalRoot = null; - var container = JSCompiler_OptimizeArgumentsArray_p3.containerInfo; + var container = args.containerInfo; (executionContext & (RenderContext | CommitContext)) !== NoContext && error$jscomp$0( "Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition." ); - updateContainerSync( - null, - JSCompiler_OptimizeArgumentsArray_p3, - null, - null - ); + updateContainerSync(null, args, null, null); flushSyncWork$1(); container[internalContainerInstanceKey] = null; } @@ -28309,5 +28272,5 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.1.0-www-modern-6a4b46cd-20241217"; + exports.version = "19.1.0-www-modern-2bd1c756-20241218"; })(); diff --git a/compiled/facebook-www/ReactDOMTesting-prod.classic.js b/compiled/facebook-www/ReactDOMTesting-prod.classic.js index 304da2d99c..df3051afc8 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.classic.js @@ -17550,14 +17550,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1796 = React.version; if ( - "19.1.0-www-classic-6a4b46cd-20241217" !== + "19.1.0-www-classic-2bd1c756-20241218" !== isomorphicReactPackageVersion$jscomp$inline_1796 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1796, - "19.1.0-www-classic-6a4b46cd-20241217" + "19.1.0-www-classic-2bd1c756-20241218" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -17575,10 +17575,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_2335 = { bundleType: 0, - version: "19.1.0-www-classic-6a4b46cd-20241217", + version: "19.1.0-www-classic-2bd1c756-20241218", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-6a4b46cd-20241217" + reconcilerVersion: "19.1.0-www-classic-2bd1c756-20241218" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2336 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -18094,4 +18094,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-www-classic-6a4b46cd-20241217"; +exports.version = "19.1.0-www-classic-2bd1c756-20241218"; diff --git a/compiled/facebook-www/ReactDOMTesting-prod.modern.js b/compiled/facebook-www/ReactDOMTesting-prod.modern.js index ab89281e56..a882fcc36a 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.modern.js @@ -17281,14 +17281,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1786 = React.version; if ( - "19.1.0-www-modern-6a4b46cd-20241217" !== + "19.1.0-www-modern-2bd1c756-20241218" !== isomorphicReactPackageVersion$jscomp$inline_1786 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1786, - "19.1.0-www-modern-6a4b46cd-20241217" + "19.1.0-www-modern-2bd1c756-20241218" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -17306,10 +17306,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_2317 = { bundleType: 0, - version: "19.1.0-www-modern-6a4b46cd-20241217", + version: "19.1.0-www-modern-2bd1c756-20241218", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-6a4b46cd-20241217" + reconcilerVersion: "19.1.0-www-modern-2bd1c756-20241218" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2318 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -17825,4 +17825,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-www-modern-6a4b46cd-20241217"; +exports.version = "19.1.0-www-modern-2bd1c756-20241218"; diff --git a/compiled/facebook-www/ReactReconciler-dev.classic.js b/compiled/facebook-www/ReactReconciler-dev.classic.js index b87d58b37f..7122e78190 100644 --- a/compiled/facebook-www/ReactReconciler-dev.classic.js +++ b/compiled/facebook-www/ReactReconciler-dev.classic.js @@ -4896,19 +4896,15 @@ __DEV__ && provider = provider.return; } } - function dispatchReducerAction( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p0 - ) { - "function" === typeof JSCompiler_OptimizeArgumentsArray_p0 && + function dispatchReducerAction(fiber, queue, action) { + var args = arguments; + "function" === typeof args[3] && error$jscomp$0( "State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()." ); - JSCompiler_OptimizeArgumentsArray_p0 = requestUpdateLane(fiber); - action = { - lane: JSCompiler_OptimizeArgumentsArray_p0, + args = requestUpdateLane(fiber); + var update = { + lane: args, revertLane: 0, action: action, hasEagerState: !1, @@ -4916,46 +4912,22 @@ __DEV__ && next: null }; isRenderPhaseUpdate(fiber) - ? enqueueRenderPhaseUpdate(queue, action) - : ((action = enqueueConcurrentHookUpdate( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p0 - )), - null !== action && - (scheduleUpdateOnFiber( - action, - fiber, - JSCompiler_OptimizeArgumentsArray_p0 - ), - entangleTransitionUpdate( - action, - queue, - JSCompiler_OptimizeArgumentsArray_p0 - ))); - enableSchedulingProfiler && - markStateUpdateScheduled(fiber, JSCompiler_OptimizeArgumentsArray_p0); + ? enqueueRenderPhaseUpdate(queue, update) + : ((update = enqueueConcurrentHookUpdate(fiber, queue, update, args)), + null !== update && + (scheduleUpdateOnFiber(update, fiber, args), + entangleTransitionUpdate(update, queue, args))); + enableSchedulingProfiler && markStateUpdateScheduled(fiber, args); } - function dispatchSetState( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p1 - ) { - "function" === typeof JSCompiler_OptimizeArgumentsArray_p1 && + function dispatchSetState(fiber, queue, action) { + var args = arguments; + "function" === typeof args[3] && error$jscomp$0( "State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()." ); - JSCompiler_OptimizeArgumentsArray_p1 = requestUpdateLane(fiber); - dispatchSetStateInternal( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p1 - ); - enableSchedulingProfiler && - markStateUpdateScheduled(fiber, JSCompiler_OptimizeArgumentsArray_p1); + args = requestUpdateLane(fiber); + dispatchSetStateInternal(fiber, queue, action, args); + enableSchedulingProfiler && markStateUpdateScheduled(fiber, args); } function dispatchSetStateInternal(fiber, queue, action, lane) { var update = { @@ -19054,7 +19026,7 @@ __DEV__ && version: rendererVersion, rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-6a4b46cd-20241217" + reconcilerVersion: "19.1.0-www-classic-2bd1c756-20241218" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactReconciler-dev.modern.js b/compiled/facebook-www/ReactReconciler-dev.modern.js index a9294a4d68..c2087da200 100644 --- a/compiled/facebook-www/ReactReconciler-dev.modern.js +++ b/compiled/facebook-www/ReactReconciler-dev.modern.js @@ -4802,19 +4802,15 @@ __DEV__ && provider = provider.return; } } - function dispatchReducerAction( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p0 - ) { - "function" === typeof JSCompiler_OptimizeArgumentsArray_p0 && + function dispatchReducerAction(fiber, queue, action) { + var args = arguments; + "function" === typeof args[3] && error$jscomp$0( "State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()." ); - JSCompiler_OptimizeArgumentsArray_p0 = requestUpdateLane(fiber); - action = { - lane: JSCompiler_OptimizeArgumentsArray_p0, + args = requestUpdateLane(fiber); + var update = { + lane: args, revertLane: 0, action: action, hasEagerState: !1, @@ -4822,46 +4818,22 @@ __DEV__ && next: null }; isRenderPhaseUpdate(fiber) - ? enqueueRenderPhaseUpdate(queue, action) - : ((action = enqueueConcurrentHookUpdate( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p0 - )), - null !== action && - (scheduleUpdateOnFiber( - action, - fiber, - JSCompiler_OptimizeArgumentsArray_p0 - ), - entangleTransitionUpdate( - action, - queue, - JSCompiler_OptimizeArgumentsArray_p0 - ))); - enableSchedulingProfiler && - markStateUpdateScheduled(fiber, JSCompiler_OptimizeArgumentsArray_p0); + ? enqueueRenderPhaseUpdate(queue, update) + : ((update = enqueueConcurrentHookUpdate(fiber, queue, update, args)), + null !== update && + (scheduleUpdateOnFiber(update, fiber, args), + entangleTransitionUpdate(update, queue, args))); + enableSchedulingProfiler && markStateUpdateScheduled(fiber, args); } - function dispatchSetState( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p1 - ) { - "function" === typeof JSCompiler_OptimizeArgumentsArray_p1 && + function dispatchSetState(fiber, queue, action) { + var args = arguments; + "function" === typeof args[3] && error$jscomp$0( "State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()." ); - JSCompiler_OptimizeArgumentsArray_p1 = requestUpdateLane(fiber); - dispatchSetStateInternal( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p1 - ); - enableSchedulingProfiler && - markStateUpdateScheduled(fiber, JSCompiler_OptimizeArgumentsArray_p1); + args = requestUpdateLane(fiber); + dispatchSetStateInternal(fiber, queue, action, args); + enableSchedulingProfiler && markStateUpdateScheduled(fiber, args); } function dispatchSetStateInternal(fiber, queue, action, lane) { var update = { @@ -18828,7 +18800,7 @@ __DEV__ && version: rendererVersion, rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-6a4b46cd-20241217" + reconcilerVersion: "19.1.0-www-modern-2bd1c756-20241218" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactReconciler-prod.classic.js b/compiled/facebook-www/ReactReconciler-prod.classic.js index aa4439cd80..ca5d3cf378 100644 --- a/compiled/facebook-www/ReactReconciler-prod.classic.js +++ b/compiled/facebook-www/ReactReconciler-prod.classic.js @@ -12782,7 +12782,7 @@ module.exports = function ($$$config) { version: rendererVersion, rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-6a4b46cd-20241217" + reconcilerVersion: "19.1.0-www-classic-2bd1c756-20241218" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactReconciler-prod.modern.js b/compiled/facebook-www/ReactReconciler-prod.modern.js index fbf03e8955..c904cef3fa 100644 --- a/compiled/facebook-www/ReactReconciler-prod.modern.js +++ b/compiled/facebook-www/ReactReconciler-prod.modern.js @@ -12501,7 +12501,7 @@ module.exports = function ($$$config) { version: rendererVersion, rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-6a4b46cd-20241217" + reconcilerVersion: "19.1.0-www-modern-2bd1c756-20241218" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactTestRenderer-dev.classic.js b/compiled/facebook-www/ReactTestRenderer-dev.classic.js index 69feaef8d5..882cd81590 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.classic.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.classic.js @@ -4049,19 +4049,15 @@ __DEV__ && provider = provider.return; } } - function dispatchReducerAction( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p0 - ) { - "function" === typeof JSCompiler_OptimizeArgumentsArray_p0 && + function dispatchReducerAction(fiber, queue, action) { + var args = arguments; + "function" === typeof args[3] && error$jscomp$0( "State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()." ); - JSCompiler_OptimizeArgumentsArray_p0 = requestUpdateLane(fiber); - action = { - lane: JSCompiler_OptimizeArgumentsArray_p0, + args = requestUpdateLane(fiber); + var update = { + lane: args, revertLane: 0, action: action, hasEagerState: !1, @@ -4069,42 +4065,20 @@ __DEV__ && next: null }; isRenderPhaseUpdate(fiber) - ? enqueueRenderPhaseUpdate(queue, action) - : ((action = enqueueConcurrentHookUpdate( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p0 - )), - null !== action && - (scheduleUpdateOnFiber( - action, - fiber, - JSCompiler_OptimizeArgumentsArray_p0 - ), - entangleTransitionUpdate( - action, - queue, - JSCompiler_OptimizeArgumentsArray_p0 - ))); + ? enqueueRenderPhaseUpdate(queue, update) + : ((update = enqueueConcurrentHookUpdate(fiber, queue, update, args)), + null !== update && + (scheduleUpdateOnFiber(update, fiber, args), + entangleTransitionUpdate(update, queue, args))); } - function dispatchSetState( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p1 - ) { - "function" === typeof JSCompiler_OptimizeArgumentsArray_p1 && + function dispatchSetState(fiber, queue, action) { + var args = arguments; + "function" === typeof args[3] && error$jscomp$0( "State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()." ); - JSCompiler_OptimizeArgumentsArray_p1 = requestUpdateLane(fiber); - dispatchSetStateInternal( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p1 - ); + args = requestUpdateLane(fiber); + dispatchSetStateInternal(fiber, queue, action, args); } function dispatchSetStateInternal(fiber, queue, action, lane) { var update = { @@ -14917,10 +14891,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.1.0-www-classic-6a4b46cd-20241217", + version: "19.1.0-www-classic-2bd1c756-20241218", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-6a4b46cd-20241217" + reconcilerVersion: "19.1.0-www-classic-2bd1c756-20241218" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -15055,5 +15029,5 @@ __DEV__ && exports.unstable_batchedUpdates = function (fn, a) { return fn(a); }; - exports.version = "19.1.0-www-classic-6a4b46cd-20241217"; + exports.version = "19.1.0-www-classic-2bd1c756-20241218"; })(); diff --git a/compiled/facebook-www/ReactTestRenderer-dev.modern.js b/compiled/facebook-www/ReactTestRenderer-dev.modern.js index 3c5c2268df..412934e526 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.modern.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.modern.js @@ -4049,19 +4049,15 @@ __DEV__ && provider = provider.return; } } - function dispatchReducerAction( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p0 - ) { - "function" === typeof JSCompiler_OptimizeArgumentsArray_p0 && + function dispatchReducerAction(fiber, queue, action) { + var args = arguments; + "function" === typeof args[3] && error$jscomp$0( "State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()." ); - JSCompiler_OptimizeArgumentsArray_p0 = requestUpdateLane(fiber); - action = { - lane: JSCompiler_OptimizeArgumentsArray_p0, + args = requestUpdateLane(fiber); + var update = { + lane: args, revertLane: 0, action: action, hasEagerState: !1, @@ -4069,42 +4065,20 @@ __DEV__ && next: null }; isRenderPhaseUpdate(fiber) - ? enqueueRenderPhaseUpdate(queue, action) - : ((action = enqueueConcurrentHookUpdate( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p0 - )), - null !== action && - (scheduleUpdateOnFiber( - action, - fiber, - JSCompiler_OptimizeArgumentsArray_p0 - ), - entangleTransitionUpdate( - action, - queue, - JSCompiler_OptimizeArgumentsArray_p0 - ))); + ? enqueueRenderPhaseUpdate(queue, update) + : ((update = enqueueConcurrentHookUpdate(fiber, queue, update, args)), + null !== update && + (scheduleUpdateOnFiber(update, fiber, args), + entangleTransitionUpdate(update, queue, args))); } - function dispatchSetState( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p1 - ) { - "function" === typeof JSCompiler_OptimizeArgumentsArray_p1 && + function dispatchSetState(fiber, queue, action) { + var args = arguments; + "function" === typeof args[3] && error$jscomp$0( "State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()." ); - JSCompiler_OptimizeArgumentsArray_p1 = requestUpdateLane(fiber); - dispatchSetStateInternal( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p1 - ); + args = requestUpdateLane(fiber); + dispatchSetStateInternal(fiber, queue, action, args); } function dispatchSetStateInternal(fiber, queue, action, lane) { var update = { @@ -14917,10 +14891,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.1.0-www-modern-6a4b46cd-20241217", + version: "19.1.0-www-modern-2bd1c756-20241218", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-6a4b46cd-20241217" + reconcilerVersion: "19.1.0-www-modern-2bd1c756-20241218" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -15055,5 +15029,5 @@ __DEV__ && exports.unstable_batchedUpdates = function (fn, a) { return fn(a); }; - exports.version = "19.1.0-www-modern-6a4b46cd-20241217"; + exports.version = "19.1.0-www-modern-2bd1c756-20241218"; })(); diff --git a/compiled/facebook-www/VERSION_CLASSIC b/compiled/facebook-www/VERSION_CLASSIC index ca08a764e9..eec775220b 100644 --- a/compiled/facebook-www/VERSION_CLASSIC +++ b/compiled/facebook-www/VERSION_CLASSIC @@ -1 +1 @@ -19.1.0-www-classic-6a4b46cd-20241217 \ No newline at end of file +19.1.0-www-classic-2bd1c756-20241218 \ No newline at end of file diff --git a/compiled/facebook-www/VERSION_MODERN b/compiled/facebook-www/VERSION_MODERN index 5f3a4d66af..13aafbaba3 100644 --- a/compiled/facebook-www/VERSION_MODERN +++ b/compiled/facebook-www/VERSION_MODERN @@ -1 +1 @@ -19.1.0-www-modern-6a4b46cd-20241217 \ No newline at end of file +19.1.0-www-modern-2bd1c756-20241218 \ No newline at end of file