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 | 72 ++++------- compiled/facebook-www/ReactART-dev.modern.js | 72 ++++------- .../facebook-www/ReactART-prod.classic.js | 6 +- compiled/facebook-www/ReactART-prod.modern.js | 6 +- compiled/facebook-www/ReactDOM-dev.classic.js | 117 ++++++------------ compiled/facebook-www/ReactDOM-dev.modern.js | 117 ++++++------------ .../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 | 117 ++++++------------ .../ReactDOMTesting-dev.modern.js | 117 ++++++------------ .../ReactDOMTesting-prod.classic.js | 10 +- .../ReactDOMTesting-prod.modern.js | 10 +- .../ReactReconciler-dev.classic.js | 68 +++------- .../ReactReconciler-dev.modern.js | 68 +++------- .../ReactReconciler-prod.classic.js | 2 +- .../ReactReconciler-prod.modern.js | 2 +- .../ReactTestRenderer-dev.classic.js | 66 +++------- .../ReactTestRenderer-dev.modern.js | 66 +++------- compiled/facebook-www/VERSION_CLASSIC | 2 +- compiled/facebook-www/VERSION_MODERN | 2 +- 34 files changed, 336 insertions(+), 648 deletions(-) diff --git a/compiled/facebook-www/REVISION b/compiled/facebook-www/REVISION index 3347a13c640ed..3c5d32fd27644 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 3347a13c640ed..3c5d32fd27644 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 c44ca8ed4584d..0d4506ff56f6d 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 540d7f36bec51..4f4d7cbe98c3e 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 60a630fc34193..a42277cefc72d 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 34b0d56e86402..c00a157f98d30 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 7c457ead066b5..ff9c0d7ddb6fd 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 6924a3c442437..ac2c2fe7386de 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 e84e9dfd3d1b4..87ec6e1ced45e 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); - } - function dispatchSetState( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p1 - ) { - "function" === typeof JSCompiler_OptimizeArgumentsArray_p1 && + ? 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) { + 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 7b6bc09bc8298..86ff6f24c7afd 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); - } - function dispatchSetState( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p1 - ) { - "function" === typeof JSCompiler_OptimizeArgumentsArray_p1 && + ? 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) { + 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 455e2b75bb43f..0f51ebbfdbc6e 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 3ad9eb0d58b86..557f8ff6cca28 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 305d5c2158879..98f29567496d9 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); - } - function dispatchSetState( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p1 - ) { - "function" === typeof JSCompiler_OptimizeArgumentsArray_p1 && + ? 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) { + 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 a81edbf923b82..3a97bbc11b335 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); - } - function dispatchSetState( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p1 - ) { - "function" === typeof JSCompiler_OptimizeArgumentsArray_p1 && + ? 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) { + 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 d540ecf6addda..6b8e0a1d0b43e 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 ed66f7644c69b..a0de54cd6e2c7 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 da59db87c017c..6eaac351d6a77 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 d1a46444a4d44..3f600dd64eb48 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 e7dbce4e8a037..b1853b62708f7 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 1fc9264a842de..c0ce9de7a82c2 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 e20bde84f5f8b..e66a13bf86198 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 59f6bfadcfe53..c9fb33fef1ce2 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 6f700a59025c0..4b87a13e0c190 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); - } - function dispatchSetState( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p1 - ) { - "function" === typeof JSCompiler_OptimizeArgumentsArray_p1 && + ? 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) { + 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 796395dbc78cb..ebe1023c0ad5e 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); - } - function dispatchSetState( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p1 - ) { - "function" === typeof JSCompiler_OptimizeArgumentsArray_p1 && + ? 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) { + 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 304da2d99ca33..df3051afc8136 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 ab89281e56714..a882fcc36a209 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 b87d58b37f038..7122e781905f9 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); - } - function dispatchSetState( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p1 - ) { - "function" === typeof JSCompiler_OptimizeArgumentsArray_p1 && + ? 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) { + 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 a9294a4d68c86..c2087da2005d4 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); - } - function dispatchSetState( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p1 - ) { - "function" === typeof JSCompiler_OptimizeArgumentsArray_p1 && + ? 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) { + 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 aa4439cd80238..ca5d3cf378a84 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 fbf03e8955f10..c904cef3fa383 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 69feaef8d52af..882cd81590900 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 - ))); - } - function dispatchSetState( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p1 - ) { - "function" === typeof JSCompiler_OptimizeArgumentsArray_p1 && + ? enqueueRenderPhaseUpdate(queue, update) + : ((update = enqueueConcurrentHookUpdate(fiber, queue, update, args)), + null !== update && + (scheduleUpdateOnFiber(update, fiber, args), + entangleTransitionUpdate(update, queue, args))); + } + 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 3c5c2268df135..412934e526d21 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 - ))); - } - function dispatchSetState( - fiber, - queue, - action, - JSCompiler_OptimizeArgumentsArray_p1 - ) { - "function" === typeof JSCompiler_OptimizeArgumentsArray_p1 && + ? enqueueRenderPhaseUpdate(queue, update) + : ((update = enqueueConcurrentHookUpdate(fiber, queue, update, args)), + null !== update && + (scheduleUpdateOnFiber(update, fiber, args), + entangleTransitionUpdate(update, queue, args))); + } + 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 ca08a764e9687..eec775220b821 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 5f3a4d66afbb1..13aafbaba3e5b 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