diff --git a/compiled/facebook-www/REVISION b/compiled/facebook-www/REVISION index c827e8097c2f5..00af69531502e 100644 --- a/compiled/facebook-www/REVISION +++ b/compiled/facebook-www/REVISION @@ -1 +1 @@ -a4964987dc140526702e996223fe7ee293def8ac +d5e8f79cf4d11fa7eee263b3f937deecbe65ffd7 diff --git a/compiled/facebook-www/REVISION_TRANSFORMS b/compiled/facebook-www/REVISION_TRANSFORMS index c827e8097c2f5..00af69531502e 100644 --- a/compiled/facebook-www/REVISION_TRANSFORMS +++ b/compiled/facebook-www/REVISION_TRANSFORMS @@ -1 +1 @@ -a4964987dc140526702e996223fe7ee293def8ac +d5e8f79cf4d11fa7eee263b3f937deecbe65ffd7 diff --git a/compiled/facebook-www/React-dev.classic.js b/compiled/facebook-www/React-dev.classic.js index 037b5674b21d7..234b1fba2e398 100644 --- a/compiled/facebook-www/React-dev.classic.js +++ b/compiled/facebook-www/React-dev.classic.js @@ -1954,7 +1954,7 @@ __DEV__ && exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.0.0-www-classic-a4964987-20241211"; + exports.version = "19.1.0-www-classic-d5e8f79c-20241212"; "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 82049ee440c54..9eadeeacd01fc 100644 --- a/compiled/facebook-www/React-dev.modern.js +++ b/compiled/facebook-www/React-dev.modern.js @@ -1954,7 +1954,7 @@ __DEV__ && exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.0.0-www-modern-a4964987-20241211"; + exports.version = "19.1.0-www-modern-d5e8f79c-20241212"; "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 c0f6ac252d82f..69c0b84f03697 100644 --- a/compiled/facebook-www/React-prod.classic.js +++ b/compiled/facebook-www/React-prod.classic.js @@ -635,4 +635,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-www-classic-a4964987-20241211"; +exports.version = "19.1.0-www-classic-d5e8f79c-20241212"; diff --git a/compiled/facebook-www/React-prod.modern.js b/compiled/facebook-www/React-prod.modern.js index b7b2801e3f317..95338ba1f6b6d 100644 --- a/compiled/facebook-www/React-prod.modern.js +++ b/compiled/facebook-www/React-prod.modern.js @@ -635,4 +635,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-www-modern-a4964987-20241211"; +exports.version = "19.1.0-www-modern-d5e8f79c-20241212"; diff --git a/compiled/facebook-www/React-profiling.classic.js b/compiled/facebook-www/React-profiling.classic.js index 5f2a76484e469..b34125179a233 100644 --- a/compiled/facebook-www/React-profiling.classic.js +++ b/compiled/facebook-www/React-profiling.classic.js @@ -639,7 +639,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-www-classic-a4964987-20241211"; +exports.version = "19.1.0-www-classic-d5e8f79c-20241212"; "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 efc8ec8c15f94..81a50e6576f29 100644 --- a/compiled/facebook-www/React-profiling.modern.js +++ b/compiled/facebook-www/React-profiling.modern.js @@ -639,7 +639,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-www-modern-a4964987-20241211"; +exports.version = "19.1.0-www-modern-d5e8f79c-20241212"; "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 27eac3a411d03..08af4028656fb 100644 --- a/compiled/facebook-www/ReactART-dev.classic.js +++ b/compiled/facebook-www/ReactART-dev.classic.js @@ -17237,10 +17237,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.0.0-www-classic-a4964987-20241211", + version: "19.1.0-www-classic-d5e8f79c-20241212", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-www-classic-a4964987-20241211" + reconcilerVersion: "19.1.0-www-classic-d5e8f79c-20241212" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -17274,7 +17274,7 @@ __DEV__ && exports.Shape = Shape; exports.Surface = Surface; exports.Text = Text; - exports.version = "19.0.0-www-classic-a4964987-20241211"; + exports.version = "19.1.0-www-classic-d5e8f79c-20241212"; "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 e5f3767fe146c..3455ba300f557 100644 --- a/compiled/facebook-www/ReactART-dev.modern.js +++ b/compiled/facebook-www/ReactART-dev.modern.js @@ -17000,10 +17000,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.0.0-www-modern-a4964987-20241211", + version: "19.1.0-www-modern-d5e8f79c-20241212", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-www-modern-a4964987-20241211" + reconcilerVersion: "19.1.0-www-modern-d5e8f79c-20241212" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -17037,7 +17037,7 @@ __DEV__ && exports.Shape = Shape; exports.Surface = Surface; exports.Text = Text; - exports.version = "19.0.0-www-modern-a4964987-20241211"; + exports.version = "19.1.0-www-modern-d5e8f79c-20241212"; "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 fddc97993d80e..f547e75ec3e84 100644 --- a/compiled/facebook-www/ReactART-prod.classic.js +++ b/compiled/facebook-www/ReactART-prod.classic.js @@ -10827,10 +10827,10 @@ var slice = Array.prototype.slice, })(React.Component); var internals$jscomp$inline_1509 = { bundleType: 0, - version: "19.0.0-www-classic-a4964987-20241211", + version: "19.1.0-www-classic-d5e8f79c-20241212", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-www-classic-a4964987-20241211" + reconcilerVersion: "19.1.0-www-classic-d5e8f79c-20241212" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1510 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -10856,4 +10856,4 @@ exports.RadialGradient = RadialGradient; exports.Shape = TYPES.SHAPE; exports.Surface = Surface; exports.Text = Text; -exports.version = "19.0.0-www-classic-a4964987-20241211"; +exports.version = "19.1.0-www-classic-d5e8f79c-20241212"; diff --git a/compiled/facebook-www/ReactART-prod.modern.js b/compiled/facebook-www/ReactART-prod.modern.js index 6b0261c725a49..d6924f3b50a35 100644 --- a/compiled/facebook-www/ReactART-prod.modern.js +++ b/compiled/facebook-www/ReactART-prod.modern.js @@ -10543,10 +10543,10 @@ var slice = Array.prototype.slice, })(React.Component); var internals$jscomp$inline_1488 = { bundleType: 0, - version: "19.0.0-www-modern-a4964987-20241211", + version: "19.1.0-www-modern-d5e8f79c-20241212", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-www-modern-a4964987-20241211" + reconcilerVersion: "19.1.0-www-modern-d5e8f79c-20241212" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1489 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -10572,4 +10572,4 @@ exports.RadialGradient = RadialGradient; exports.Shape = TYPES.SHAPE; exports.Surface = Surface; exports.Text = Text; -exports.version = "19.0.0-www-modern-a4964987-20241211"; +exports.version = "19.1.0-www-modern-d5e8f79c-20241212"; diff --git a/compiled/facebook-www/ReactDOM-dev.classic.js b/compiled/facebook-www/ReactDOM-dev.classic.js index 1779aed958b66..9e13ddc5e9e80 100644 --- a/compiled/facebook-www/ReactDOM-dev.classic.js +++ b/compiled/facebook-www/ReactDOM-dev.classic.js @@ -1193,6 +1193,46 @@ __DEV__ && rootEntangledLanes &= ~lane; } } + function getBumpedLaneForHydrationByLane(lane) { + switch (lane) { + case 2: + lane = 1; + break; + case 8: + lane = 4; + break; + case 32: + lane = 16; + break; + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + case 4194304: + case 8388608: + case 16777216: + case 33554432: + lane = 64; + break; + case 268435456: + lane = 134217728; + break; + default: + lane = 0; + } + return lane; + } function addFiberToLanesMap(root, fiber, lanes) { if (isDevToolsPresent) for (root = root.pendingUpdatersLaneMap; 0 < lanes; ) { @@ -9656,73 +9696,38 @@ __DEV__ && didReceiveUpdate || JSCompiler_object_inline_digest_2503) ) { JSCompiler_object_inline_digest_2503 = workInProgressRoot; - if (null !== JSCompiler_object_inline_digest_2503) { - JSCompiler_object_inline_stack_2504 = renderLanes & -renderLanes; - if (0 !== (JSCompiler_object_inline_stack_2504 & 42)) - JSCompiler_object_inline_stack_2504 = 1; - else - switch (JSCompiler_object_inline_stack_2504) { - case 2: - JSCompiler_object_inline_stack_2504 = 1; - break; - case 8: - JSCompiler_object_inline_stack_2504 = 4; - break; - case 32: - JSCompiler_object_inline_stack_2504 = 16; - break; - case 128: - case 256: - case 512: - case 1024: - case 2048: - case 4096: - case 8192: - case 16384: - case 32768: - case 65536: - case 131072: - case 262144: - case 524288: - case 1048576: - case 2097152: - case 4194304: - case 8388608: - case 16777216: - case 33554432: - JSCompiler_object_inline_stack_2504 = 64; - break; - case 268435456: - JSCompiler_object_inline_stack_2504 = 134217728; - break; - default: - JSCompiler_object_inline_stack_2504 = 0; - } - JSCompiler_object_inline_stack_2504 = + if ( + null !== JSCompiler_object_inline_digest_2503 && + ((JSCompiler_object_inline_stack_2504 = renderLanes & -renderLanes), + (JSCompiler_object_inline_stack_2504 = + 0 !== (JSCompiler_object_inline_stack_2504 & 42) + ? 1 + : getBumpedLaneForHydrationByLane( + JSCompiler_object_inline_stack_2504 + )), + (JSCompiler_object_inline_stack_2504 = 0 !== (JSCompiler_object_inline_stack_2504 & (JSCompiler_object_inline_digest_2503.suspendedLanes | renderLanes)) ? 0 - : JSCompiler_object_inline_stack_2504; - if ( - 0 !== JSCompiler_object_inline_stack_2504 && - JSCompiler_object_inline_stack_2504 !== prevState.retryLane - ) - throw ( - ((prevState.retryLane = JSCompiler_object_inline_stack_2504), - enqueueConcurrentRenderForLane( - current, - JSCompiler_object_inline_stack_2504 - ), - scheduleUpdateOnFiber( - JSCompiler_object_inline_digest_2503, - current, - JSCompiler_object_inline_stack_2504 - ), - SelectiveHydrationException) - ); - } + : JSCompiler_object_inline_stack_2504), + 0 !== JSCompiler_object_inline_stack_2504 && + JSCompiler_object_inline_stack_2504 !== prevState.retryLane) + ) + throw ( + ((prevState.retryLane = JSCompiler_object_inline_stack_2504), + enqueueConcurrentRenderForLane( + current, + JSCompiler_object_inline_stack_2504 + ), + scheduleUpdateOnFiber( + JSCompiler_object_inline_digest_2503, + current, + JSCompiler_object_inline_stack_2504 + ), + SelectiveHydrationException) + ); JSCompiler_object_inline_message_2502.data === SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible(); workInProgress = retrySuspenseComponentWithoutHydrating( @@ -23227,8 +23232,12 @@ __DEV__ && queuedTarget.blockedOn = targetInst; runWithPriority(queuedTarget.priority, function () { if (13 === nearestMounted.tag) { - var lane = requestUpdateLane(nearestMounted), - root = enqueueConcurrentRenderForLane(nearestMounted, lane); + var lane = requestUpdateLane(nearestMounted); + lane = getBumpedLaneForHydrationByLane(lane); + var root = enqueueConcurrentRenderForLane( + nearestMounted, + lane + ); null !== root && scheduleUpdateOnFiber(root, nearestMounted, lane); markRetryLaneIfNotHydrated(nearestMounted, lane); @@ -27711,11 +27720,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-www-classic-a4964987-20241211" !== isomorphicReactPackageVersion) + if ("19.1.0-www-classic-d5e8f79c-20241212" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.0.0-www-classic-a4964987-20241211\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-www-classic-d5e8f79c-20241212\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -27758,10 +27767,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.0.0-www-classic-a4964987-20241211", + version: "19.1.0-www-classic-d5e8f79c-20241212", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-www-classic-a4964987-20241211" + reconcilerVersion: "19.1.0-www-classic-d5e8f79c-20241212" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -28035,11 +28044,13 @@ __DEV__ && initialChildren.context = getContextForSubtree(null); options = initialChildren.current; isStrictMode = requestUpdateLane(options); + isStrictMode = getBumpedLaneForHydrationByLane(isStrictMode); identifierPrefix = createUpdate(isStrictMode); identifierPrefix.callback = null; enqueueUpdate(options, identifierPrefix, isStrictMode); - initialChildren.current.lanes = isStrictMode; - markRootUpdated(initialChildren, isStrictMode); + options = isStrictMode; + initialChildren.current.lanes = options; + markRootUpdated(initialChildren, options); ensureRootIsScheduled(initialChildren); container[internalContainerInstanceKey] = initialChildren.current; listenToAllSupportedEvents(container); @@ -28366,7 +28377,7 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-www-classic-a4964987-20241211"; + exports.version = "19.1.0-www-classic-d5e8f79c-20241212"; "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 0c767dc8c15de..de67f301803eb 100644 --- a/compiled/facebook-www/ReactDOM-dev.modern.js +++ b/compiled/facebook-www/ReactDOM-dev.modern.js @@ -1193,6 +1193,46 @@ __DEV__ && rootEntangledLanes &= ~lane; } } + function getBumpedLaneForHydrationByLane(lane) { + switch (lane) { + case 2: + lane = 1; + break; + case 8: + lane = 4; + break; + case 32: + lane = 16; + break; + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + case 4194304: + case 8388608: + case 16777216: + case 33554432: + lane = 64; + break; + case 268435456: + lane = 134217728; + break; + default: + lane = 0; + } + return lane; + } function addFiberToLanesMap(root, fiber, lanes) { if (isDevToolsPresent) for (root = root.pendingUpdatersLaneMap; 0 < lanes; ) { @@ -9468,73 +9508,38 @@ __DEV__ && didReceiveUpdate || JSCompiler_object_inline_digest_2495) ) { JSCompiler_object_inline_digest_2495 = workInProgressRoot; - if (null !== JSCompiler_object_inline_digest_2495) { - JSCompiler_object_inline_stack_2496 = renderLanes & -renderLanes; - if (0 !== (JSCompiler_object_inline_stack_2496 & 42)) - JSCompiler_object_inline_stack_2496 = 1; - else - switch (JSCompiler_object_inline_stack_2496) { - case 2: - JSCompiler_object_inline_stack_2496 = 1; - break; - case 8: - JSCompiler_object_inline_stack_2496 = 4; - break; - case 32: - JSCompiler_object_inline_stack_2496 = 16; - break; - case 128: - case 256: - case 512: - case 1024: - case 2048: - case 4096: - case 8192: - case 16384: - case 32768: - case 65536: - case 131072: - case 262144: - case 524288: - case 1048576: - case 2097152: - case 4194304: - case 8388608: - case 16777216: - case 33554432: - JSCompiler_object_inline_stack_2496 = 64; - break; - case 268435456: - JSCompiler_object_inline_stack_2496 = 134217728; - break; - default: - JSCompiler_object_inline_stack_2496 = 0; - } - JSCompiler_object_inline_stack_2496 = + if ( + null !== JSCompiler_object_inline_digest_2495 && + ((JSCompiler_object_inline_stack_2496 = renderLanes & -renderLanes), + (JSCompiler_object_inline_stack_2496 = + 0 !== (JSCompiler_object_inline_stack_2496 & 42) + ? 1 + : getBumpedLaneForHydrationByLane( + JSCompiler_object_inline_stack_2496 + )), + (JSCompiler_object_inline_stack_2496 = 0 !== (JSCompiler_object_inline_stack_2496 & (JSCompiler_object_inline_digest_2495.suspendedLanes | renderLanes)) ? 0 - : JSCompiler_object_inline_stack_2496; - if ( - 0 !== JSCompiler_object_inline_stack_2496 && - JSCompiler_object_inline_stack_2496 !== prevState.retryLane - ) - throw ( - ((prevState.retryLane = JSCompiler_object_inline_stack_2496), - enqueueConcurrentRenderForLane( - current, - JSCompiler_object_inline_stack_2496 - ), - scheduleUpdateOnFiber( - JSCompiler_object_inline_digest_2495, - current, - JSCompiler_object_inline_stack_2496 - ), - SelectiveHydrationException) - ); - } + : JSCompiler_object_inline_stack_2496), + 0 !== JSCompiler_object_inline_stack_2496 && + JSCompiler_object_inline_stack_2496 !== prevState.retryLane) + ) + throw ( + ((prevState.retryLane = JSCompiler_object_inline_stack_2496), + enqueueConcurrentRenderForLane( + current, + JSCompiler_object_inline_stack_2496 + ), + scheduleUpdateOnFiber( + JSCompiler_object_inline_digest_2495, + current, + JSCompiler_object_inline_stack_2496 + ), + SelectiveHydrationException) + ); JSCompiler_object_inline_message_2494.data === SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible(); workInProgress = retrySuspenseComponentWithoutHydrating( @@ -23014,8 +23019,12 @@ __DEV__ && queuedTarget.blockedOn = targetInst; runWithPriority(queuedTarget.priority, function () { if (13 === nearestMounted.tag) { - var lane = requestUpdateLane(nearestMounted), - root = enqueueConcurrentRenderForLane(nearestMounted, lane); + var lane = requestUpdateLane(nearestMounted); + lane = getBumpedLaneForHydrationByLane(lane); + var root = enqueueConcurrentRenderForLane( + nearestMounted, + lane + ); null !== root && scheduleUpdateOnFiber(root, nearestMounted, lane); markRetryLaneIfNotHydrated(nearestMounted, lane); @@ -27490,11 +27499,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-www-modern-a4964987-20241211" !== isomorphicReactPackageVersion) + if ("19.1.0-www-modern-d5e8f79c-20241212" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.0.0-www-modern-a4964987-20241211\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-www-modern-d5e8f79c-20241212\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -27537,10 +27546,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.0.0-www-modern-a4964987-20241211", + version: "19.1.0-www-modern-d5e8f79c-20241212", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-www-modern-a4964987-20241211" + reconcilerVersion: "19.1.0-www-modern-d5e8f79c-20241212" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -27814,11 +27823,13 @@ __DEV__ && initialChildren.context = getContextForSubtree(null); options = initialChildren.current; isStrictMode = requestUpdateLane(options); + isStrictMode = getBumpedLaneForHydrationByLane(isStrictMode); identifierPrefix = createUpdate(isStrictMode); identifierPrefix.callback = null; enqueueUpdate(options, identifierPrefix, isStrictMode); - initialChildren.current.lanes = isStrictMode; - markRootUpdated(initialChildren, isStrictMode); + options = isStrictMode; + initialChildren.current.lanes = options; + markRootUpdated(initialChildren, options); ensureRootIsScheduled(initialChildren); container[internalContainerInstanceKey] = initialChildren.current; listenToAllSupportedEvents(container); @@ -28145,7 +28156,7 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-www-modern-a4964987-20241211"; + exports.version = "19.1.0-www-modern-d5e8f79c-20241212"; "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 ce935a78a84af..bc9436e1e27ac 100644 --- a/compiled/facebook-www/ReactDOM-prod.classic.js +++ b/compiled/facebook-www/ReactDOM-prod.classic.js @@ -809,6 +809,46 @@ function markRootEntangled(root, entangledLanes) { rootEntangledLanes &= ~lane; } } +function getBumpedLaneForHydrationByLane(lane) { + switch (lane) { + case 2: + lane = 1; + break; + case 8: + lane = 4; + break; + case 32: + lane = 16; + break; + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + case 4194304: + case 8388608: + case 16777216: + case 33554432: + lane = 64; + break; + case 268435456: + lane = 134217728; + break; + default: + lane = 0; + } + return lane; +} function getTransitionsForLanes(root, lanes) { if (!enableTransitionTracing) return null; for (var transitionsForLanes = []; 0 < lanes; ) { @@ -6323,59 +6363,25 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { didReceiveUpdate || JSCompiler_temp) ) { JSCompiler_temp = workInProgressRoot; - if (null !== JSCompiler_temp) { - nextProps = renderLanes & -renderLanes; - if (0 !== (nextProps & 42)) nextProps = 1; - else - switch (nextProps) { - case 2: - nextProps = 1; - break; - case 8: - nextProps = 4; - break; - case 32: - nextProps = 16; - break; - case 128: - case 256: - case 512: - case 1024: - case 2048: - case 4096: - case 8192: - case 16384: - case 32768: - case 65536: - case 131072: - case 262144: - case 524288: - case 1048576: - case 2097152: - case 4194304: - case 8388608: - case 16777216: - case 33554432: - nextProps = 64; - break; - case 268435456: - nextProps = 134217728; - break; - default: - nextProps = 0; - } - nextProps = + if ( + null !== JSCompiler_temp && + ((nextProps = renderLanes & -renderLanes), + (nextProps = + 0 !== (nextProps & 42) + ? 1 + : getBumpedLaneForHydrationByLane(nextProps)), + (nextProps = 0 !== (nextProps & (JSCompiler_temp.suspendedLanes | renderLanes)) ? 0 - : nextProps; - if (0 !== nextProps && nextProps !== JSCompiler_temp$jscomp$0.retryLane) - throw ( - ((JSCompiler_temp$jscomp$0.retryLane = nextProps), - enqueueConcurrentRenderForLane(current, nextProps), - scheduleUpdateOnFiber(JSCompiler_temp, current, nextProps), - SelectiveHydrationException) - ); - } + : nextProps), + 0 !== nextProps && nextProps !== JSCompiler_temp$jscomp$0.retryLane) + ) + throw ( + ((JSCompiler_temp$jscomp$0.retryLane = nextProps), + enqueueConcurrentRenderForLane(current, nextProps), + scheduleUpdateOnFiber(JSCompiler_temp, current, nextProps), + SelectiveHydrationException) + ); "$?" === nextInstance.data || renderDidSuspendDelayIfPossible(); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -16816,8 +16822,9 @@ function attemptExplicitHydrationTarget(queuedTarget) { queuedTarget.blockedOn = targetInst; runWithPriority(queuedTarget.priority, function () { if (13 === nearestMounted.tag) { - var lane = requestUpdateLane(), - root = enqueueConcurrentRenderForLane(nearestMounted, lane); + var lane = requestUpdateLane(); + lane = getBumpedLaneForHydrationByLane(lane); + var root = enqueueConcurrentRenderForLane(nearestMounted, lane); null !== root && scheduleUpdateOnFiber(root, nearestMounted, lane); markRetryLaneIfNotHydrated(nearestMounted, lane); @@ -17277,14 +17284,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1774 = React.version; if ( - "19.0.0-www-classic-a4964987-20241211" !== + "19.1.0-www-classic-d5e8f79c-20241212" !== isomorphicReactPackageVersion$jscomp$inline_1774 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1774, - "19.0.0-www-classic-a4964987-20241211" + "19.1.0-www-classic-d5e8f79c-20241212" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -17302,10 +17309,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_2315 = { bundleType: 0, - version: "19.0.0-www-classic-a4964987-20241211", + version: "19.1.0-www-classic-d5e8f79c-20241212", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-www-classic-a4964987-20241211" + reconcilerVersion: "19.1.0-www-classic-d5e8f79c-20241212" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2316 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -17502,11 +17509,13 @@ exports.hydrateRoot = function (container, initialChildren, options) { initialChildren.context = getContextForSubtree(null); options = initialChildren.current; isStrictMode = requestUpdateLane(); + isStrictMode = getBumpedLaneForHydrationByLane(isStrictMode); identifierPrefix = createUpdate(isStrictMode); identifierPrefix.callback = null; enqueueUpdate(options, identifierPrefix, isStrictMode); - initialChildren.current.lanes = isStrictMode; - markRootUpdated(initialChildren, isStrictMode); + options = isStrictMode; + initialChildren.current.lanes = options; + markRootUpdated(initialChildren, options); ensureRootIsScheduled(initialChildren); container[internalContainerInstanceKey] = initialChildren.current; listenToAllSupportedEvents(container); @@ -17668,4 +17677,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-classic-a4964987-20241211"; +exports.version = "19.1.0-www-classic-d5e8f79c-20241212"; diff --git a/compiled/facebook-www/ReactDOM-prod.modern.js b/compiled/facebook-www/ReactDOM-prod.modern.js index 47c60ca350924..cb087b1cda4af 100644 --- a/compiled/facebook-www/ReactDOM-prod.modern.js +++ b/compiled/facebook-www/ReactDOM-prod.modern.js @@ -744,6 +744,46 @@ function markRootEntangled(root, entangledLanes) { rootEntangledLanes &= ~lane; } } +function getBumpedLaneForHydrationByLane(lane) { + switch (lane) { + case 2: + lane = 1; + break; + case 8: + lane = 4; + break; + case 32: + lane = 16; + break; + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + case 4194304: + case 8388608: + case 16777216: + case 33554432: + lane = 64; + break; + case 268435456: + lane = 134217728; + break; + default: + lane = 0; + } + return lane; +} function getTransitionsForLanes(root, lanes) { if (!enableTransitionTracing) return null; for (var transitionsForLanes = []; 0 < lanes; ) { @@ -6097,59 +6137,25 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { didReceiveUpdate || JSCompiler_temp) ) { JSCompiler_temp = workInProgressRoot; - if (null !== JSCompiler_temp) { - nextProps = renderLanes & -renderLanes; - if (0 !== (nextProps & 42)) nextProps = 1; - else - switch (nextProps) { - case 2: - nextProps = 1; - break; - case 8: - nextProps = 4; - break; - case 32: - nextProps = 16; - break; - case 128: - case 256: - case 512: - case 1024: - case 2048: - case 4096: - case 8192: - case 16384: - case 32768: - case 65536: - case 131072: - case 262144: - case 524288: - case 1048576: - case 2097152: - case 4194304: - case 8388608: - case 16777216: - case 33554432: - nextProps = 64; - break; - case 268435456: - nextProps = 134217728; - break; - default: - nextProps = 0; - } - nextProps = + if ( + null !== JSCompiler_temp && + ((nextProps = renderLanes & -renderLanes), + (nextProps = + 0 !== (nextProps & 42) + ? 1 + : getBumpedLaneForHydrationByLane(nextProps)), + (nextProps = 0 !== (nextProps & (JSCompiler_temp.suspendedLanes | renderLanes)) ? 0 - : nextProps; - if (0 !== nextProps && nextProps !== JSCompiler_temp$jscomp$0.retryLane) - throw ( - ((JSCompiler_temp$jscomp$0.retryLane = nextProps), - enqueueConcurrentRenderForLane(current, nextProps), - scheduleUpdateOnFiber(JSCompiler_temp, current, nextProps), - SelectiveHydrationException) - ); - } + : nextProps), + 0 !== nextProps && nextProps !== JSCompiler_temp$jscomp$0.retryLane) + ) + throw ( + ((JSCompiler_temp$jscomp$0.retryLane = nextProps), + enqueueConcurrentRenderForLane(current, nextProps), + scheduleUpdateOnFiber(JSCompiler_temp, current, nextProps), + SelectiveHydrationException) + ); "$?" === nextInstance.data || renderDidSuspendDelayIfPossible(); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -16547,8 +16553,9 @@ function attemptExplicitHydrationTarget(queuedTarget) { queuedTarget.blockedOn = targetInst; runWithPriority(queuedTarget.priority, function () { if (13 === nearestMounted.tag) { - var lane = requestUpdateLane(), - root = enqueueConcurrentRenderForLane(nearestMounted, lane); + var lane = requestUpdateLane(); + lane = getBumpedLaneForHydrationByLane(lane); + var root = enqueueConcurrentRenderForLane(nearestMounted, lane); null !== root && scheduleUpdateOnFiber(root, nearestMounted, lane); markRetryLaneIfNotHydrated(nearestMounted, lane); @@ -17008,14 +17015,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1764 = React.version; if ( - "19.0.0-www-modern-a4964987-20241211" !== + "19.1.0-www-modern-d5e8f79c-20241212" !== isomorphicReactPackageVersion$jscomp$inline_1764 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1764, - "19.0.0-www-modern-a4964987-20241211" + "19.1.0-www-modern-d5e8f79c-20241212" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -17033,10 +17040,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_2297 = { bundleType: 0, - version: "19.0.0-www-modern-a4964987-20241211", + version: "19.1.0-www-modern-d5e8f79c-20241212", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-www-modern-a4964987-20241211" + reconcilerVersion: "19.1.0-www-modern-d5e8f79c-20241212" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2298 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -17233,11 +17240,13 @@ exports.hydrateRoot = function (container, initialChildren, options) { initialChildren.context = emptyContextObject; options = initialChildren.current; isStrictMode = requestUpdateLane(); + isStrictMode = getBumpedLaneForHydrationByLane(isStrictMode); identifierPrefix = createUpdate(isStrictMode); identifierPrefix.callback = null; enqueueUpdate(options, identifierPrefix, isStrictMode); - initialChildren.current.lanes = isStrictMode; - markRootUpdated(initialChildren, isStrictMode); + options = isStrictMode; + initialChildren.current.lanes = options; + markRootUpdated(initialChildren, options); ensureRootIsScheduled(initialChildren); container[internalContainerInstanceKey] = initialChildren.current; listenToAllSupportedEvents(container); @@ -17399,4 +17408,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-modern-a4964987-20241211"; +exports.version = "19.1.0-www-modern-d5e8f79c-20241212"; diff --git a/compiled/facebook-www/ReactDOM-profiling.classic.js b/compiled/facebook-www/ReactDOM-profiling.classic.js index f6d1fb900aa37..14b72fb055ced 100644 --- a/compiled/facebook-www/ReactDOM-profiling.classic.js +++ b/compiled/facebook-www/ReactDOM-profiling.classic.js @@ -890,6 +890,46 @@ function markRootEntangled(root, entangledLanes) { rootEntangledLanes &= ~lane; } } +function getBumpedLaneForHydrationByLane(lane) { + switch (lane) { + case 2: + lane = 1; + break; + case 8: + lane = 4; + break; + case 32: + lane = 16; + break; + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + case 4194304: + case 8388608: + case 16777216: + case 33554432: + lane = 64; + break; + case 268435456: + lane = 134217728; + break; + default: + lane = 0; + } + return lane; +} function addFiberToLanesMap(root, fiber, lanes) { if (isDevToolsPresent) for (root = root.pendingUpdatersLaneMap; 0 < lanes; ) { @@ -6511,59 +6551,25 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { didReceiveUpdate || JSCompiler_temp) ) { JSCompiler_temp = workInProgressRoot; - if (null !== JSCompiler_temp) { - nextProps = renderLanes & -renderLanes; - if (0 !== (nextProps & 42)) nextProps = 1; - else - switch (nextProps) { - case 2: - nextProps = 1; - break; - case 8: - nextProps = 4; - break; - case 32: - nextProps = 16; - break; - case 128: - case 256: - case 512: - case 1024: - case 2048: - case 4096: - case 8192: - case 16384: - case 32768: - case 65536: - case 131072: - case 262144: - case 524288: - case 1048576: - case 2097152: - case 4194304: - case 8388608: - case 16777216: - case 33554432: - nextProps = 64; - break; - case 268435456: - nextProps = 134217728; - break; - default: - nextProps = 0; - } - nextProps = + if ( + null !== JSCompiler_temp && + ((nextProps = renderLanes & -renderLanes), + (nextProps = + 0 !== (nextProps & 42) + ? 1 + : getBumpedLaneForHydrationByLane(nextProps)), + (nextProps = 0 !== (nextProps & (JSCompiler_temp.suspendedLanes | renderLanes)) ? 0 - : nextProps; - if (0 !== nextProps && nextProps !== JSCompiler_temp$jscomp$0.retryLane) - throw ( - ((JSCompiler_temp$jscomp$0.retryLane = nextProps), - enqueueConcurrentRenderForLane(current, nextProps), - scheduleUpdateOnFiber(JSCompiler_temp, current, nextProps), - SelectiveHydrationException) - ); - } + : nextProps), + 0 !== nextProps && nextProps !== JSCompiler_temp$jscomp$0.retryLane) + ) + throw ( + ((JSCompiler_temp$jscomp$0.retryLane = nextProps), + enqueueConcurrentRenderForLane(current, nextProps), + scheduleUpdateOnFiber(JSCompiler_temp, current, nextProps), + SelectiveHydrationException) + ); "$?" === nextInstance.data || renderDidSuspendDelayIfPossible(); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -17505,8 +17511,9 @@ function attemptExplicitHydrationTarget(queuedTarget) { queuedTarget.blockedOn = targetInst; runWithPriority(queuedTarget.priority, function () { if (13 === nearestMounted.tag) { - var lane = requestUpdateLane(), - root = enqueueConcurrentRenderForLane(nearestMounted, lane); + var lane = requestUpdateLane(); + lane = getBumpedLaneForHydrationByLane(lane); + var root = enqueueConcurrentRenderForLane(nearestMounted, lane); null !== root && scheduleUpdateOnFiber(root, nearestMounted, lane); markRetryLaneIfNotHydrated(nearestMounted, lane); @@ -17966,14 +17973,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1867 = React.version; if ( - "19.0.0-www-classic-a4964987-20241211" !== + "19.1.0-www-classic-d5e8f79c-20241212" !== isomorphicReactPackageVersion$jscomp$inline_1867 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1867, - "19.0.0-www-classic-a4964987-20241211" + "19.1.0-www-classic-d5e8f79c-20241212" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -17991,10 +17998,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_1869 = { bundleType: 0, - version: "19.0.0-www-classic-a4964987-20241211", + version: "19.1.0-www-classic-d5e8f79c-20241212", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-www-classic-a4964987-20241211" + reconcilerVersion: "19.1.0-www-classic-d5e8f79c-20241212" }; enableSchedulingProfiler && ((internals$jscomp$inline_1869.getLaneLabelMap = getLaneLabelMap), @@ -18194,11 +18201,13 @@ exports.hydrateRoot = function (container, initialChildren, options) { initialChildren.context = getContextForSubtree(null); options = initialChildren.current; isStrictMode = requestUpdateLane(); + isStrictMode = getBumpedLaneForHydrationByLane(isStrictMode); identifierPrefix = createUpdate(isStrictMode); identifierPrefix.callback = null; enqueueUpdate(options, identifierPrefix, isStrictMode); - initialChildren.current.lanes = isStrictMode; - markRootUpdated(initialChildren, isStrictMode); + options = isStrictMode; + initialChildren.current.lanes = options; + markRootUpdated(initialChildren, options); ensureRootIsScheduled(initialChildren); container[internalContainerInstanceKey] = initialChildren.current; listenToAllSupportedEvents(container); @@ -18360,7 +18369,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-classic-a4964987-20241211"; +exports.version = "19.1.0-www-classic-d5e8f79c-20241212"; "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 9f31bc6d95649..0f15c8dc532a4 100644 --- a/compiled/facebook-www/ReactDOM-profiling.modern.js +++ b/compiled/facebook-www/ReactDOM-profiling.modern.js @@ -825,6 +825,46 @@ function markRootEntangled(root, entangledLanes) { rootEntangledLanes &= ~lane; } } +function getBumpedLaneForHydrationByLane(lane) { + switch (lane) { + case 2: + lane = 1; + break; + case 8: + lane = 4; + break; + case 32: + lane = 16; + break; + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + case 4194304: + case 8388608: + case 16777216: + case 33554432: + lane = 64; + break; + case 268435456: + lane = 134217728; + break; + default: + lane = 0; + } + return lane; +} function addFiberToLanesMap(root, fiber, lanes) { if (isDevToolsPresent) for (root = root.pendingUpdatersLaneMap; 0 < lanes; ) { @@ -6284,59 +6324,25 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { didReceiveUpdate || JSCompiler_temp) ) { JSCompiler_temp = workInProgressRoot; - if (null !== JSCompiler_temp) { - nextProps = renderLanes & -renderLanes; - if (0 !== (nextProps & 42)) nextProps = 1; - else - switch (nextProps) { - case 2: - nextProps = 1; - break; - case 8: - nextProps = 4; - break; - case 32: - nextProps = 16; - break; - case 128: - case 256: - case 512: - case 1024: - case 2048: - case 4096: - case 8192: - case 16384: - case 32768: - case 65536: - case 131072: - case 262144: - case 524288: - case 1048576: - case 2097152: - case 4194304: - case 8388608: - case 16777216: - case 33554432: - nextProps = 64; - break; - case 268435456: - nextProps = 134217728; - break; - default: - nextProps = 0; - } - nextProps = + if ( + null !== JSCompiler_temp && + ((nextProps = renderLanes & -renderLanes), + (nextProps = + 0 !== (nextProps & 42) + ? 1 + : getBumpedLaneForHydrationByLane(nextProps)), + (nextProps = 0 !== (nextProps & (JSCompiler_temp.suspendedLanes | renderLanes)) ? 0 - : nextProps; - if (0 !== nextProps && nextProps !== JSCompiler_temp$jscomp$0.retryLane) - throw ( - ((JSCompiler_temp$jscomp$0.retryLane = nextProps), - enqueueConcurrentRenderForLane(current, nextProps), - scheduleUpdateOnFiber(JSCompiler_temp, current, nextProps), - SelectiveHydrationException) - ); - } + : nextProps), + 0 !== nextProps && nextProps !== JSCompiler_temp$jscomp$0.retryLane) + ) + throw ( + ((JSCompiler_temp$jscomp$0.retryLane = nextProps), + enqueueConcurrentRenderForLane(current, nextProps), + scheduleUpdateOnFiber(JSCompiler_temp, current, nextProps), + SelectiveHydrationException) + ); "$?" === nextInstance.data || renderDidSuspendDelayIfPossible(); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -17235,8 +17241,9 @@ function attemptExplicitHydrationTarget(queuedTarget) { queuedTarget.blockedOn = targetInst; runWithPriority(queuedTarget.priority, function () { if (13 === nearestMounted.tag) { - var lane = requestUpdateLane(), - root = enqueueConcurrentRenderForLane(nearestMounted, lane); + var lane = requestUpdateLane(); + lane = getBumpedLaneForHydrationByLane(lane); + var root = enqueueConcurrentRenderForLane(nearestMounted, lane); null !== root && scheduleUpdateOnFiber(root, nearestMounted, lane); markRetryLaneIfNotHydrated(nearestMounted, lane); @@ -17696,14 +17703,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1857 = React.version; if ( - "19.0.0-www-modern-a4964987-20241211" !== + "19.1.0-www-modern-d5e8f79c-20241212" !== isomorphicReactPackageVersion$jscomp$inline_1857 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1857, - "19.0.0-www-modern-a4964987-20241211" + "19.1.0-www-modern-d5e8f79c-20241212" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -17721,10 +17728,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_1859 = { bundleType: 0, - version: "19.0.0-www-modern-a4964987-20241211", + version: "19.1.0-www-modern-d5e8f79c-20241212", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-www-modern-a4964987-20241211" + reconcilerVersion: "19.1.0-www-modern-d5e8f79c-20241212" }; enableSchedulingProfiler && ((internals$jscomp$inline_1859.getLaneLabelMap = getLaneLabelMap), @@ -17924,11 +17931,13 @@ exports.hydrateRoot = function (container, initialChildren, options) { initialChildren.context = emptyContextObject; options = initialChildren.current; isStrictMode = requestUpdateLane(); + isStrictMode = getBumpedLaneForHydrationByLane(isStrictMode); identifierPrefix = createUpdate(isStrictMode); identifierPrefix.callback = null; enqueueUpdate(options, identifierPrefix, isStrictMode); - initialChildren.current.lanes = isStrictMode; - markRootUpdated(initialChildren, isStrictMode); + options = isStrictMode; + initialChildren.current.lanes = options; + markRootUpdated(initialChildren, options); ensureRootIsScheduled(initialChildren); container[internalContainerInstanceKey] = initialChildren.current; listenToAllSupportedEvents(container); @@ -18090,7 +18099,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-modern-a4964987-20241211"; +exports.version = "19.1.0-www-modern-d5e8f79c-20241212"; "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 2952f35da4c03..2f09ffbdf2d00 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.classic.js +++ b/compiled/facebook-www/ReactDOMServer-dev.classic.js @@ -9161,5 +9161,5 @@ __DEV__ && 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server' ); }; - exports.version = "19.0.0-www-classic-a4964987-20241211"; + exports.version = "19.1.0-www-classic-d5e8f79c-20241212"; })(); diff --git a/compiled/facebook-www/ReactDOMServer-dev.modern.js b/compiled/facebook-www/ReactDOMServer-dev.modern.js index d3ec293601fb1..f867ab2094791 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.modern.js +++ b/compiled/facebook-www/ReactDOMServer-dev.modern.js @@ -8987,5 +8987,5 @@ __DEV__ && 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server' ); }; - exports.version = "19.0.0-www-modern-a4964987-20241211"; + exports.version = "19.1.0-www-modern-d5e8f79c-20241212"; })(); diff --git a/compiled/facebook-www/ReactDOMServer-prod.classic.js b/compiled/facebook-www/ReactDOMServer-prod.classic.js index 061794ffa9f08..bc9354f43d688 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.classic.js +++ b/compiled/facebook-www/ReactDOMServer-prod.classic.js @@ -5910,4 +5910,4 @@ exports.renderToString = function (children, options) { 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server' ); }; -exports.version = "19.0.0-www-classic-a4964987-20241211"; +exports.version = "19.1.0-www-classic-d5e8f79c-20241212"; diff --git a/compiled/facebook-www/ReactDOMServer-prod.modern.js b/compiled/facebook-www/ReactDOMServer-prod.modern.js index ac5876a58a038..6cecd869a52de 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.modern.js +++ b/compiled/facebook-www/ReactDOMServer-prod.modern.js @@ -5822,4 +5822,4 @@ exports.renderToString = function (children, options) { 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server' ); }; -exports.version = "19.0.0-www-modern-a4964987-20241211"; +exports.version = "19.1.0-www-modern-d5e8f79c-20241212"; diff --git a/compiled/facebook-www/ReactDOMTesting-dev.classic.js b/compiled/facebook-www/ReactDOMTesting-dev.classic.js index f1402ee70efc0..5627b725d9a4d 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.classic.js @@ -1193,6 +1193,46 @@ __DEV__ && rootEntangledLanes &= ~lane; } } + function getBumpedLaneForHydrationByLane(lane) { + switch (lane) { + case 2: + lane = 1; + break; + case 8: + lane = 4; + break; + case 32: + lane = 16; + break; + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + case 4194304: + case 8388608: + case 16777216: + case 33554432: + lane = 64; + break; + case 268435456: + lane = 134217728; + break; + default: + lane = 0; + } + return lane; + } function addFiberToLanesMap(root, fiber, lanes) { if (isDevToolsPresent) for (root = root.pendingUpdatersLaneMap; 0 < lanes; ) { @@ -9697,73 +9737,38 @@ __DEV__ && didReceiveUpdate || JSCompiler_object_inline_digest_2537) ) { JSCompiler_object_inline_digest_2537 = workInProgressRoot; - if (null !== JSCompiler_object_inline_digest_2537) { - JSCompiler_object_inline_stack_2538 = renderLanes & -renderLanes; - if (0 !== (JSCompiler_object_inline_stack_2538 & 42)) - JSCompiler_object_inline_stack_2538 = 1; - else - switch (JSCompiler_object_inline_stack_2538) { - case 2: - JSCompiler_object_inline_stack_2538 = 1; - break; - case 8: - JSCompiler_object_inline_stack_2538 = 4; - break; - case 32: - JSCompiler_object_inline_stack_2538 = 16; - break; - case 128: - case 256: - case 512: - case 1024: - case 2048: - case 4096: - case 8192: - case 16384: - case 32768: - case 65536: - case 131072: - case 262144: - case 524288: - case 1048576: - case 2097152: - case 4194304: - case 8388608: - case 16777216: - case 33554432: - JSCompiler_object_inline_stack_2538 = 64; - break; - case 268435456: - JSCompiler_object_inline_stack_2538 = 134217728; - break; - default: - JSCompiler_object_inline_stack_2538 = 0; - } - JSCompiler_object_inline_stack_2538 = + if ( + null !== JSCompiler_object_inline_digest_2537 && + ((JSCompiler_object_inline_stack_2538 = renderLanes & -renderLanes), + (JSCompiler_object_inline_stack_2538 = + 0 !== (JSCompiler_object_inline_stack_2538 & 42) + ? 1 + : getBumpedLaneForHydrationByLane( + JSCompiler_object_inline_stack_2538 + )), + (JSCompiler_object_inline_stack_2538 = 0 !== (JSCompiler_object_inline_stack_2538 & (JSCompiler_object_inline_digest_2537.suspendedLanes | renderLanes)) ? 0 - : JSCompiler_object_inline_stack_2538; - if ( - 0 !== JSCompiler_object_inline_stack_2538 && - JSCompiler_object_inline_stack_2538 !== prevState.retryLane - ) - throw ( - ((prevState.retryLane = JSCompiler_object_inline_stack_2538), - enqueueConcurrentRenderForLane( - current, - JSCompiler_object_inline_stack_2538 - ), - scheduleUpdateOnFiber( - JSCompiler_object_inline_digest_2537, - current, - JSCompiler_object_inline_stack_2538 - ), - SelectiveHydrationException) - ); - } + : JSCompiler_object_inline_stack_2538), + 0 !== JSCompiler_object_inline_stack_2538 && + JSCompiler_object_inline_stack_2538 !== prevState.retryLane) + ) + throw ( + ((prevState.retryLane = JSCompiler_object_inline_stack_2538), + enqueueConcurrentRenderForLane( + current, + JSCompiler_object_inline_stack_2538 + ), + scheduleUpdateOnFiber( + JSCompiler_object_inline_digest_2537, + current, + JSCompiler_object_inline_stack_2538 + ), + SelectiveHydrationException) + ); JSCompiler_object_inline_message_2536.data === SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible(); workInProgress = retrySuspenseComponentWithoutHydrating( @@ -23515,8 +23520,12 @@ __DEV__ && queuedTarget.blockedOn = targetInst; runWithPriority(queuedTarget.priority, function () { if (13 === nearestMounted.tag) { - var lane = requestUpdateLane(nearestMounted), - root = enqueueConcurrentRenderForLane(nearestMounted, lane); + var lane = requestUpdateLane(nearestMounted); + lane = getBumpedLaneForHydrationByLane(lane); + var root = enqueueConcurrentRenderForLane( + nearestMounted, + lane + ); null !== root && scheduleUpdateOnFiber(root, nearestMounted, lane); markRetryLaneIfNotHydrated(nearestMounted, lane); @@ -28045,11 +28054,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-www-classic-a4964987-20241211" !== isomorphicReactPackageVersion) + if ("19.1.0-www-classic-d5e8f79c-20241212" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.0.0-www-classic-a4964987-20241211\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-www-classic-d5e8f79c-20241212\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -28092,10 +28101,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.0.0-www-classic-a4964987-20241211", + version: "19.1.0-www-classic-d5e8f79c-20241212", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-www-classic-a4964987-20241211" + reconcilerVersion: "19.1.0-www-classic-d5e8f79c-20241212" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -28506,11 +28515,13 @@ __DEV__ && initialChildren.context = getContextForSubtree(null); options = initialChildren.current; isStrictMode = requestUpdateLane(options); + isStrictMode = getBumpedLaneForHydrationByLane(isStrictMode); identifierPrefix = createUpdate(isStrictMode); identifierPrefix.callback = null; enqueueUpdate(options, identifierPrefix, isStrictMode); - initialChildren.current.lanes = isStrictMode; - markRootUpdated(initialChildren, isStrictMode); + options = isStrictMode; + initialChildren.current.lanes = options; + markRootUpdated(initialChildren, options); ensureRootIsScheduled(initialChildren); container[internalContainerInstanceKey] = initialChildren.current; listenToAllSupportedEvents(container); @@ -28866,5 +28877,5 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-www-classic-a4964987-20241211"; + exports.version = "19.1.0-www-classic-d5e8f79c-20241212"; })(); diff --git a/compiled/facebook-www/ReactDOMTesting-dev.modern.js b/compiled/facebook-www/ReactDOMTesting-dev.modern.js index 57f7b8685ba5b..219578a00c0cd 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.modern.js @@ -1193,6 +1193,46 @@ __DEV__ && rootEntangledLanes &= ~lane; } } + function getBumpedLaneForHydrationByLane(lane) { + switch (lane) { + case 2: + lane = 1; + break; + case 8: + lane = 4; + break; + case 32: + lane = 16; + break; + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + case 4194304: + case 8388608: + case 16777216: + case 33554432: + lane = 64; + break; + case 268435456: + lane = 134217728; + break; + default: + lane = 0; + } + return lane; + } function addFiberToLanesMap(root, fiber, lanes) { if (isDevToolsPresent) for (root = root.pendingUpdatersLaneMap; 0 < lanes; ) { @@ -9509,73 +9549,38 @@ __DEV__ && didReceiveUpdate || JSCompiler_object_inline_digest_2529) ) { JSCompiler_object_inline_digest_2529 = workInProgressRoot; - if (null !== JSCompiler_object_inline_digest_2529) { - JSCompiler_object_inline_stack_2530 = renderLanes & -renderLanes; - if (0 !== (JSCompiler_object_inline_stack_2530 & 42)) - JSCompiler_object_inline_stack_2530 = 1; - else - switch (JSCompiler_object_inline_stack_2530) { - case 2: - JSCompiler_object_inline_stack_2530 = 1; - break; - case 8: - JSCompiler_object_inline_stack_2530 = 4; - break; - case 32: - JSCompiler_object_inline_stack_2530 = 16; - break; - case 128: - case 256: - case 512: - case 1024: - case 2048: - case 4096: - case 8192: - case 16384: - case 32768: - case 65536: - case 131072: - case 262144: - case 524288: - case 1048576: - case 2097152: - case 4194304: - case 8388608: - case 16777216: - case 33554432: - JSCompiler_object_inline_stack_2530 = 64; - break; - case 268435456: - JSCompiler_object_inline_stack_2530 = 134217728; - break; - default: - JSCompiler_object_inline_stack_2530 = 0; - } - JSCompiler_object_inline_stack_2530 = + if ( + null !== JSCompiler_object_inline_digest_2529 && + ((JSCompiler_object_inline_stack_2530 = renderLanes & -renderLanes), + (JSCompiler_object_inline_stack_2530 = + 0 !== (JSCompiler_object_inline_stack_2530 & 42) + ? 1 + : getBumpedLaneForHydrationByLane( + JSCompiler_object_inline_stack_2530 + )), + (JSCompiler_object_inline_stack_2530 = 0 !== (JSCompiler_object_inline_stack_2530 & (JSCompiler_object_inline_digest_2529.suspendedLanes | renderLanes)) ? 0 - : JSCompiler_object_inline_stack_2530; - if ( - 0 !== JSCompiler_object_inline_stack_2530 && - JSCompiler_object_inline_stack_2530 !== prevState.retryLane - ) - throw ( - ((prevState.retryLane = JSCompiler_object_inline_stack_2530), - enqueueConcurrentRenderForLane( - current, - JSCompiler_object_inline_stack_2530 - ), - scheduleUpdateOnFiber( - JSCompiler_object_inline_digest_2529, - current, - JSCompiler_object_inline_stack_2530 - ), - SelectiveHydrationException) - ); - } + : JSCompiler_object_inline_stack_2530), + 0 !== JSCompiler_object_inline_stack_2530 && + JSCompiler_object_inline_stack_2530 !== prevState.retryLane) + ) + throw ( + ((prevState.retryLane = JSCompiler_object_inline_stack_2530), + enqueueConcurrentRenderForLane( + current, + JSCompiler_object_inline_stack_2530 + ), + scheduleUpdateOnFiber( + JSCompiler_object_inline_digest_2529, + current, + JSCompiler_object_inline_stack_2530 + ), + SelectiveHydrationException) + ); JSCompiler_object_inline_message_2528.data === SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible(); workInProgress = retrySuspenseComponentWithoutHydrating( @@ -23302,8 +23307,12 @@ __DEV__ && queuedTarget.blockedOn = targetInst; runWithPriority(queuedTarget.priority, function () { if (13 === nearestMounted.tag) { - var lane = requestUpdateLane(nearestMounted), - root = enqueueConcurrentRenderForLane(nearestMounted, lane); + var lane = requestUpdateLane(nearestMounted); + lane = getBumpedLaneForHydrationByLane(lane); + var root = enqueueConcurrentRenderForLane( + nearestMounted, + lane + ); null !== root && scheduleUpdateOnFiber(root, nearestMounted, lane); markRetryLaneIfNotHydrated(nearestMounted, lane); @@ -27824,11 +27833,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-www-modern-a4964987-20241211" !== isomorphicReactPackageVersion) + if ("19.1.0-www-modern-d5e8f79c-20241212" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.0.0-www-modern-a4964987-20241211\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-www-modern-d5e8f79c-20241212\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -27871,10 +27880,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.0.0-www-modern-a4964987-20241211", + version: "19.1.0-www-modern-d5e8f79c-20241212", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-www-modern-a4964987-20241211" + reconcilerVersion: "19.1.0-www-modern-d5e8f79c-20241212" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -28285,11 +28294,13 @@ __DEV__ && initialChildren.context = getContextForSubtree(null); options = initialChildren.current; isStrictMode = requestUpdateLane(options); + isStrictMode = getBumpedLaneForHydrationByLane(isStrictMode); identifierPrefix = createUpdate(isStrictMode); identifierPrefix.callback = null; enqueueUpdate(options, identifierPrefix, isStrictMode); - initialChildren.current.lanes = isStrictMode; - markRootUpdated(initialChildren, isStrictMode); + options = isStrictMode; + initialChildren.current.lanes = options; + markRootUpdated(initialChildren, options); ensureRootIsScheduled(initialChildren); container[internalContainerInstanceKey] = initialChildren.current; listenToAllSupportedEvents(container); @@ -28645,5 +28656,5 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-www-modern-a4964987-20241211"; + exports.version = "19.1.0-www-modern-d5e8f79c-20241212"; })(); diff --git a/compiled/facebook-www/ReactDOMTesting-prod.classic.js b/compiled/facebook-www/ReactDOMTesting-prod.classic.js index 4468783ffbf61..2c88ab7fb46a0 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.classic.js @@ -809,6 +809,46 @@ function markRootEntangled(root, entangledLanes) { rootEntangledLanes &= ~lane; } } +function getBumpedLaneForHydrationByLane(lane) { + switch (lane) { + case 2: + lane = 1; + break; + case 8: + lane = 4; + break; + case 32: + lane = 16; + break; + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + case 4194304: + case 8388608: + case 16777216: + case 33554432: + lane = 64; + break; + case 268435456: + lane = 134217728; + break; + default: + lane = 0; + } + return lane; +} function getTransitionsForLanes(root, lanes) { if (!enableTransitionTracing) return null; for (var transitionsForLanes = []; 0 < lanes; ) { @@ -6409,59 +6449,25 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { didReceiveUpdate || JSCompiler_temp) ) { JSCompiler_temp = workInProgressRoot; - if (null !== JSCompiler_temp) { - nextProps = renderLanes & -renderLanes; - if (0 !== (nextProps & 42)) nextProps = 1; - else - switch (nextProps) { - case 2: - nextProps = 1; - break; - case 8: - nextProps = 4; - break; - case 32: - nextProps = 16; - break; - case 128: - case 256: - case 512: - case 1024: - case 2048: - case 4096: - case 8192: - case 16384: - case 32768: - case 65536: - case 131072: - case 262144: - case 524288: - case 1048576: - case 2097152: - case 4194304: - case 8388608: - case 16777216: - case 33554432: - nextProps = 64; - break; - case 268435456: - nextProps = 134217728; - break; - default: - nextProps = 0; - } - nextProps = + if ( + null !== JSCompiler_temp && + ((nextProps = renderLanes & -renderLanes), + (nextProps = + 0 !== (nextProps & 42) + ? 1 + : getBumpedLaneForHydrationByLane(nextProps)), + (nextProps = 0 !== (nextProps & (JSCompiler_temp.suspendedLanes | renderLanes)) ? 0 - : nextProps; - if (0 !== nextProps && nextProps !== JSCompiler_temp$jscomp$0.retryLane) - throw ( - ((JSCompiler_temp$jscomp$0.retryLane = nextProps), - enqueueConcurrentRenderForLane(current, nextProps), - scheduleUpdateOnFiber(JSCompiler_temp, current, nextProps), - SelectiveHydrationException) - ); - } + : nextProps), + 0 !== nextProps && nextProps !== JSCompiler_temp$jscomp$0.retryLane) + ) + throw ( + ((JSCompiler_temp$jscomp$0.retryLane = nextProps), + enqueueConcurrentRenderForLane(current, nextProps), + scheduleUpdateOnFiber(JSCompiler_temp, current, nextProps), + SelectiveHydrationException) + ); "$?" === nextInstance.data || renderDidSuspendDelayIfPossible(); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -17145,8 +17151,9 @@ function attemptExplicitHydrationTarget(queuedTarget) { queuedTarget.blockedOn = targetInst; runWithPriority(queuedTarget.priority, function () { if (13 === nearestMounted.tag) { - var lane = requestUpdateLane(), - root = enqueueConcurrentRenderForLane(nearestMounted, lane); + var lane = requestUpdateLane(); + lane = getBumpedLaneForHydrationByLane(lane); + var root = enqueueConcurrentRenderForLane(nearestMounted, lane); null !== root && scheduleUpdateOnFiber(root, nearestMounted, lane); markRetryLaneIfNotHydrated(nearestMounted, lane); @@ -17606,14 +17613,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1803 = React.version; if ( - "19.0.0-www-classic-a4964987-20241211" !== + "19.1.0-www-classic-d5e8f79c-20241212" !== isomorphicReactPackageVersion$jscomp$inline_1803 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1803, - "19.0.0-www-classic-a4964987-20241211" + "19.1.0-www-classic-d5e8f79c-20241212" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -17631,10 +17638,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_2349 = { bundleType: 0, - version: "19.0.0-www-classic-a4964987-20241211", + version: "19.1.0-www-classic-d5e8f79c-20241212", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-www-classic-a4964987-20241211" + reconcilerVersion: "19.1.0-www-classic-d5e8f79c-20241212" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2350 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -17964,11 +17971,13 @@ exports.hydrateRoot = function (container, initialChildren, options) { initialChildren.context = getContextForSubtree(null); options = initialChildren.current; isStrictMode = requestUpdateLane(); + isStrictMode = getBumpedLaneForHydrationByLane(isStrictMode); identifierPrefix = createUpdate(isStrictMode); identifierPrefix.callback = null; enqueueUpdate(options, identifierPrefix, isStrictMode); - initialChildren.current.lanes = isStrictMode; - markRootUpdated(initialChildren, isStrictMode); + options = isStrictMode; + initialChildren.current.lanes = options; + markRootUpdated(initialChildren, options); ensureRootIsScheduled(initialChildren); container[internalContainerInstanceKey] = initialChildren.current; listenToAllSupportedEvents(container); @@ -18148,4 +18157,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-classic-a4964987-20241211"; +exports.version = "19.1.0-www-classic-d5e8f79c-20241212"; diff --git a/compiled/facebook-www/ReactDOMTesting-prod.modern.js b/compiled/facebook-www/ReactDOMTesting-prod.modern.js index 4e735560ef8d9..58fbc4c18de75 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.modern.js @@ -744,6 +744,46 @@ function markRootEntangled(root, entangledLanes) { rootEntangledLanes &= ~lane; } } +function getBumpedLaneForHydrationByLane(lane) { + switch (lane) { + case 2: + lane = 1; + break; + case 8: + lane = 4; + break; + case 32: + lane = 16; + break; + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + case 4194304: + case 8388608: + case 16777216: + case 33554432: + lane = 64; + break; + case 268435456: + lane = 134217728; + break; + default: + lane = 0; + } + return lane; +} function getTransitionsForLanes(root, lanes) { if (!enableTransitionTracing) return null; for (var transitionsForLanes = []; 0 < lanes; ) { @@ -6183,59 +6223,25 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { didReceiveUpdate || JSCompiler_temp) ) { JSCompiler_temp = workInProgressRoot; - if (null !== JSCompiler_temp) { - nextProps = renderLanes & -renderLanes; - if (0 !== (nextProps & 42)) nextProps = 1; - else - switch (nextProps) { - case 2: - nextProps = 1; - break; - case 8: - nextProps = 4; - break; - case 32: - nextProps = 16; - break; - case 128: - case 256: - case 512: - case 1024: - case 2048: - case 4096: - case 8192: - case 16384: - case 32768: - case 65536: - case 131072: - case 262144: - case 524288: - case 1048576: - case 2097152: - case 4194304: - case 8388608: - case 16777216: - case 33554432: - nextProps = 64; - break; - case 268435456: - nextProps = 134217728; - break; - default: - nextProps = 0; - } - nextProps = + if ( + null !== JSCompiler_temp && + ((nextProps = renderLanes & -renderLanes), + (nextProps = + 0 !== (nextProps & 42) + ? 1 + : getBumpedLaneForHydrationByLane(nextProps)), + (nextProps = 0 !== (nextProps & (JSCompiler_temp.suspendedLanes | renderLanes)) ? 0 - : nextProps; - if (0 !== nextProps && nextProps !== JSCompiler_temp$jscomp$0.retryLane) - throw ( - ((JSCompiler_temp$jscomp$0.retryLane = nextProps), - enqueueConcurrentRenderForLane(current, nextProps), - scheduleUpdateOnFiber(JSCompiler_temp, current, nextProps), - SelectiveHydrationException) - ); - } + : nextProps), + 0 !== nextProps && nextProps !== JSCompiler_temp$jscomp$0.retryLane) + ) + throw ( + ((JSCompiler_temp$jscomp$0.retryLane = nextProps), + enqueueConcurrentRenderForLane(current, nextProps), + scheduleUpdateOnFiber(JSCompiler_temp, current, nextProps), + SelectiveHydrationException) + ); "$?" === nextInstance.data || renderDidSuspendDelayIfPossible(); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -16876,8 +16882,9 @@ function attemptExplicitHydrationTarget(queuedTarget) { queuedTarget.blockedOn = targetInst; runWithPriority(queuedTarget.priority, function () { if (13 === nearestMounted.tag) { - var lane = requestUpdateLane(), - root = enqueueConcurrentRenderForLane(nearestMounted, lane); + var lane = requestUpdateLane(); + lane = getBumpedLaneForHydrationByLane(lane); + var root = enqueueConcurrentRenderForLane(nearestMounted, lane); null !== root && scheduleUpdateOnFiber(root, nearestMounted, lane); markRetryLaneIfNotHydrated(nearestMounted, lane); @@ -17337,14 +17344,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1793 = React.version; if ( - "19.0.0-www-modern-a4964987-20241211" !== + "19.1.0-www-modern-d5e8f79c-20241212" !== isomorphicReactPackageVersion$jscomp$inline_1793 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1793, - "19.0.0-www-modern-a4964987-20241211" + "19.1.0-www-modern-d5e8f79c-20241212" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -17362,10 +17369,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_2331 = { bundleType: 0, - version: "19.0.0-www-modern-a4964987-20241211", + version: "19.1.0-www-modern-d5e8f79c-20241212", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-www-modern-a4964987-20241211" + reconcilerVersion: "19.1.0-www-modern-d5e8f79c-20241212" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2332 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -17695,11 +17702,13 @@ exports.hydrateRoot = function (container, initialChildren, options) { initialChildren.context = emptyContextObject; options = initialChildren.current; isStrictMode = requestUpdateLane(); + isStrictMode = getBumpedLaneForHydrationByLane(isStrictMode); identifierPrefix = createUpdate(isStrictMode); identifierPrefix.callback = null; enqueueUpdate(options, identifierPrefix, isStrictMode); - initialChildren.current.lanes = isStrictMode; - markRootUpdated(initialChildren, isStrictMode); + options = isStrictMode; + initialChildren.current.lanes = options; + markRootUpdated(initialChildren, options); ensureRootIsScheduled(initialChildren); container[internalContainerInstanceKey] = initialChildren.current; listenToAllSupportedEvents(container); @@ -17879,4 +17888,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-modern-a4964987-20241211"; +exports.version = "19.1.0-www-modern-d5e8f79c-20241212"; diff --git a/compiled/facebook-www/ReactReconciler-dev.classic.js b/compiled/facebook-www/ReactReconciler-dev.classic.js index ec94a428bc6de..e4665244a7f1f 100644 --- a/compiled/facebook-www/ReactReconciler-dev.classic.js +++ b/compiled/facebook-www/ReactReconciler-dev.classic.js @@ -1184,6 +1184,46 @@ __DEV__ && rootEntangledLanes &= ~lane; } } + function getBumpedLaneForHydrationByLane(lane) { + switch (lane) { + case 2: + lane = 1; + break; + case 8: + lane = 4; + break; + case 32: + lane = 16; + break; + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + case 4194304: + case 8388608: + case 16777216: + case 33554432: + lane = 64; + break; + case 268435456: + lane = 134217728; + break; + default: + lane = 0; + } + return lane; + } function addFiberToLanesMap(root, fiber, lanes) { if (isDevToolsPresent) for (root = root.pendingUpdatersLaneMap; 0 < lanes; ) { @@ -7844,62 +7884,25 @@ __DEV__ && didReceiveUpdate || JSCompiler_temp) ) { JSCompiler_temp = workInProgressRoot; - if (null !== JSCompiler_temp) { - nextProps = renderLanes & -renderLanes; - if (0 !== (nextProps & 42)) nextProps = 1; - else - switch (nextProps) { - case 2: - nextProps = 1; - break; - case 8: - nextProps = 4; - break; - case 32: - nextProps = 16; - break; - case 128: - case 256: - case 512: - case 1024: - case 2048: - case 4096: - case 8192: - case 16384: - case 32768: - case 65536: - case 131072: - case 262144: - case 524288: - case 1048576: - case 2097152: - case 4194304: - case 8388608: - case 16777216: - case 33554432: - nextProps = 64; - break; - case 268435456: - nextProps = 134217728; - break; - default: - nextProps = 0; - } - nextProps = + if ( + null !== JSCompiler_temp && + ((nextProps = renderLanes & -renderLanes), + (nextProps = + 0 !== (nextProps & 42) + ? 1 + : getBumpedLaneForHydrationByLane(nextProps)), + (nextProps = 0 !== (nextProps & (JSCompiler_temp.suspendedLanes | renderLanes)) ? 0 - : nextProps; - if ( - 0 !== nextProps && - nextProps !== JSCompiler_temp$jscomp$0.retryLane - ) - throw ( - ((JSCompiler_temp$jscomp$0.retryLane = nextProps), - enqueueConcurrentRenderForLane(current, nextProps), - scheduleUpdateOnFiber(JSCompiler_temp, current, nextProps), - SelectiveHydrationException) - ); - } + : nextProps), + 0 !== nextProps && nextProps !== JSCompiler_temp$jscomp$0.retryLane) + ) + throw ( + ((JSCompiler_temp$jscomp$0.retryLane = nextProps), + enqueueConcurrentRenderForLane(current, nextProps), + scheduleUpdateOnFiber(JSCompiler_temp, current, nextProps), + SelectiveHydrationException) + ); isSuspenseInstancePending(nextInstance) || renderDidSuspendDelayIfPossible(); workInProgress = retrySuspenseComponentWithoutHydrating( @@ -18936,8 +18939,9 @@ __DEV__ && }; exports.attemptHydrationAtCurrentPriority = function (fiber) { if (13 === fiber.tag) { - var lane = requestUpdateLane(fiber), - root = enqueueConcurrentRenderForLane(fiber, lane); + var lane = requestUpdateLane(fiber); + lane = getBumpedLaneForHydrationByLane(lane); + var root = enqueueConcurrentRenderForLane(fiber, lane); null !== root && scheduleUpdateOnFiber(root, fiber, lane); markRetryLaneIfNotHydrated(fiber, lane); } @@ -19039,12 +19043,14 @@ __DEV__ && initialChildren.context = getContextForSubtree(null); containerInfo = initialChildren.current; tag = requestUpdateLane(containerInfo); + tag = getBumpedLaneForHydrationByLane(tag); hydrationCallbacks = createUpdate(tag); hydrationCallbacks.callback = void 0 !== callback && null !== callback ? callback : null; enqueueUpdate(containerInfo, hydrationCallbacks, tag); - initialChildren.current.lanes = tag; - markRootUpdated(initialChildren, tag); + callback = tag; + initialChildren.current.lanes = callback; + markRootUpdated(initialChildren, callback); ensureRootIsScheduled(initialChildren); return initialChildren; }; @@ -19395,7 +19401,7 @@ __DEV__ && version: rendererVersion, rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-www-classic-a4964987-20241211" + reconcilerVersion: "19.1.0-www-classic-d5e8f79c-20241212" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactReconciler-dev.modern.js b/compiled/facebook-www/ReactReconciler-dev.modern.js index e34a36c7be76b..a8c585fd9e2b5 100644 --- a/compiled/facebook-www/ReactReconciler-dev.modern.js +++ b/compiled/facebook-www/ReactReconciler-dev.modern.js @@ -1090,6 +1090,46 @@ __DEV__ && rootEntangledLanes &= ~lane; } } + function getBumpedLaneForHydrationByLane(lane) { + switch (lane) { + case 2: + lane = 1; + break; + case 8: + lane = 4; + break; + case 32: + lane = 16; + break; + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + case 4194304: + case 8388608: + case 16777216: + case 33554432: + lane = 64; + break; + case 268435456: + lane = 134217728; + break; + default: + lane = 0; + } + return lane; + } function addFiberToLanesMap(root, fiber, lanes) { if (isDevToolsPresent) for (root = root.pendingUpdatersLaneMap; 0 < lanes; ) { @@ -7675,62 +7715,25 @@ __DEV__ && didReceiveUpdate || JSCompiler_temp) ) { JSCompiler_temp = workInProgressRoot; - if (null !== JSCompiler_temp) { - nextProps = renderLanes & -renderLanes; - if (0 !== (nextProps & 42)) nextProps = 1; - else - switch (nextProps) { - case 2: - nextProps = 1; - break; - case 8: - nextProps = 4; - break; - case 32: - nextProps = 16; - break; - case 128: - case 256: - case 512: - case 1024: - case 2048: - case 4096: - case 8192: - case 16384: - case 32768: - case 65536: - case 131072: - case 262144: - case 524288: - case 1048576: - case 2097152: - case 4194304: - case 8388608: - case 16777216: - case 33554432: - nextProps = 64; - break; - case 268435456: - nextProps = 134217728; - break; - default: - nextProps = 0; - } - nextProps = + if ( + null !== JSCompiler_temp && + ((nextProps = renderLanes & -renderLanes), + (nextProps = + 0 !== (nextProps & 42) + ? 1 + : getBumpedLaneForHydrationByLane(nextProps)), + (nextProps = 0 !== (nextProps & (JSCompiler_temp.suspendedLanes | renderLanes)) ? 0 - : nextProps; - if ( - 0 !== nextProps && - nextProps !== JSCompiler_temp$jscomp$0.retryLane - ) - throw ( - ((JSCompiler_temp$jscomp$0.retryLane = nextProps), - enqueueConcurrentRenderForLane(current, nextProps), - scheduleUpdateOnFiber(JSCompiler_temp, current, nextProps), - SelectiveHydrationException) - ); - } + : nextProps), + 0 !== nextProps && nextProps !== JSCompiler_temp$jscomp$0.retryLane) + ) + throw ( + ((JSCompiler_temp$jscomp$0.retryLane = nextProps), + enqueueConcurrentRenderForLane(current, nextProps), + scheduleUpdateOnFiber(JSCompiler_temp, current, nextProps), + SelectiveHydrationException) + ); isSuspenseInstancePending(nextInstance) || renderDidSuspendDelayIfPossible(); workInProgress = retrySuspenseComponentWithoutHydrating( @@ -18710,8 +18713,9 @@ __DEV__ && }; exports.attemptHydrationAtCurrentPriority = function (fiber) { if (13 === fiber.tag) { - var lane = requestUpdateLane(fiber), - root = enqueueConcurrentRenderForLane(fiber, lane); + var lane = requestUpdateLane(fiber); + lane = getBumpedLaneForHydrationByLane(lane); + var root = enqueueConcurrentRenderForLane(fiber, lane); null !== root && scheduleUpdateOnFiber(root, fiber, lane); markRetryLaneIfNotHydrated(fiber, lane); } @@ -18813,12 +18817,14 @@ __DEV__ && initialChildren.context = getContextForSubtree(null); containerInfo = initialChildren.current; tag = requestUpdateLane(containerInfo); + tag = getBumpedLaneForHydrationByLane(tag); hydrationCallbacks = createUpdate(tag); hydrationCallbacks.callback = void 0 !== callback && null !== callback ? callback : null; enqueueUpdate(containerInfo, hydrationCallbacks, tag); - initialChildren.current.lanes = tag; - markRootUpdated(initialChildren, tag); + callback = tag; + initialChildren.current.lanes = callback; + markRootUpdated(initialChildren, callback); ensureRootIsScheduled(initialChildren); return initialChildren; }; @@ -19169,7 +19175,7 @@ __DEV__ && version: rendererVersion, rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-www-modern-a4964987-20241211" + reconcilerVersion: "19.1.0-www-modern-d5e8f79c-20241212" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactReconciler-prod.classic.js b/compiled/facebook-www/ReactReconciler-prod.classic.js index 34924af2cad90..aea4964c183af 100644 --- a/compiled/facebook-www/ReactReconciler-prod.classic.js +++ b/compiled/facebook-www/ReactReconciler-prod.classic.js @@ -796,6 +796,46 @@ module.exports = function ($$$config) { rootEntangledLanes &= ~lane; } } + function getBumpedLaneForHydrationByLane(lane) { + switch (lane) { + case 2: + lane = 1; + break; + case 8: + lane = 4; + break; + case 32: + lane = 16; + break; + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + case 4194304: + case 8388608: + case 16777216: + case 33554432: + lane = 64; + break; + case 268435456: + lane = 134217728; + break; + default: + lane = 0; + } + return lane; + } function getTransitionsForLanes(root, lanes) { if (!enableTransitionTracing) return null; for (var transitionsForLanes = []; 0 < lanes; ) { @@ -5051,62 +5091,25 @@ module.exports = function ($$$config) { didReceiveUpdate || JSCompiler_temp) ) { JSCompiler_temp = workInProgressRoot; - if (null !== JSCompiler_temp) { - nextProps = renderLanes & -renderLanes; - if (0 !== (nextProps & 42)) nextProps = 1; - else - switch (nextProps) { - case 2: - nextProps = 1; - break; - case 8: - nextProps = 4; - break; - case 32: - nextProps = 16; - break; - case 128: - case 256: - case 512: - case 1024: - case 2048: - case 4096: - case 8192: - case 16384: - case 32768: - case 65536: - case 131072: - case 262144: - case 524288: - case 1048576: - case 2097152: - case 4194304: - case 8388608: - case 16777216: - case 33554432: - nextProps = 64; - break; - case 268435456: - nextProps = 134217728; - break; - default: - nextProps = 0; - } - nextProps = + if ( + null !== JSCompiler_temp && + ((nextProps = renderLanes & -renderLanes), + (nextProps = + 0 !== (nextProps & 42) + ? 1 + : getBumpedLaneForHydrationByLane(nextProps)), + (nextProps = 0 !== (nextProps & (JSCompiler_temp.suspendedLanes | renderLanes)) ? 0 - : nextProps; - if ( - 0 !== nextProps && - nextProps !== JSCompiler_temp$jscomp$0.retryLane - ) - throw ( - ((JSCompiler_temp$jscomp$0.retryLane = nextProps), - enqueueConcurrentRenderForLane(current, nextProps), - scheduleUpdateOnFiber(JSCompiler_temp, current, nextProps), - SelectiveHydrationException) - ); - } + : nextProps), + 0 !== nextProps && nextProps !== JSCompiler_temp$jscomp$0.retryLane) + ) + throw ( + ((JSCompiler_temp$jscomp$0.retryLane = nextProps), + enqueueConcurrentRenderForLane(current, nextProps), + scheduleUpdateOnFiber(JSCompiler_temp, current, nextProps), + SelectiveHydrationException) + ); isSuspenseInstancePending(nextInstance) || renderDidSuspendDelayIfPossible(); workInProgress = retrySuspenseComponentWithoutHydrating( @@ -12515,8 +12518,9 @@ module.exports = function ($$$config) { }; exports.attemptHydrationAtCurrentPriority = function (fiber) { if (13 === fiber.tag) { - var lane = requestUpdateLane(), - root = enqueueConcurrentRenderForLane(fiber, lane); + var lane = requestUpdateLane(); + lane = getBumpedLaneForHydrationByLane(lane); + var root = enqueueConcurrentRenderForLane(fiber, lane); null !== root && scheduleUpdateOnFiber(root, fiber, lane); markRetryLaneIfNotHydrated(fiber, lane); } @@ -12616,12 +12620,14 @@ module.exports = function ($$$config) { initialChildren.context = getContextForSubtree(null); containerInfo = initialChildren.current; tag = requestUpdateLane(); + tag = getBumpedLaneForHydrationByLane(tag); hydrationCallbacks = createUpdate(tag); hydrationCallbacks.callback = void 0 !== callback && null !== callback ? callback : null; enqueueUpdate(containerInfo, hydrationCallbacks, tag); - initialChildren.current.lanes = tag; - markRootUpdated(initialChildren, tag); + callback = tag; + initialChildren.current.lanes = callback; + markRootUpdated(initialChildren, callback); ensureRootIsScheduled(initialChildren); return initialChildren; }; @@ -12851,7 +12857,7 @@ module.exports = function ($$$config) { version: rendererVersion, rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-www-classic-a4964987-20241211" + reconcilerVersion: "19.1.0-www-classic-d5e8f79c-20241212" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactReconciler-prod.modern.js b/compiled/facebook-www/ReactReconciler-prod.modern.js index e05b6ded1eb45..56220c7438cfe 100644 --- a/compiled/facebook-www/ReactReconciler-prod.modern.js +++ b/compiled/facebook-www/ReactReconciler-prod.modern.js @@ -662,6 +662,46 @@ module.exports = function ($$$config) { rootEntangledLanes &= ~lane; } } + function getBumpedLaneForHydrationByLane(lane) { + switch (lane) { + case 2: + lane = 1; + break; + case 8: + lane = 4; + break; + case 32: + lane = 16; + break; + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + case 4194304: + case 8388608: + case 16777216: + case 33554432: + lane = 64; + break; + case 268435456: + lane = 134217728; + break; + default: + lane = 0; + } + return lane; + } function getTransitionsForLanes(root, lanes) { if (!enableTransitionTracing) return null; for (var transitionsForLanes = []; 0 < lanes; ) { @@ -4833,62 +4873,25 @@ module.exports = function ($$$config) { didReceiveUpdate || JSCompiler_temp) ) { JSCompiler_temp = workInProgressRoot; - if (null !== JSCompiler_temp) { - nextProps = renderLanes & -renderLanes; - if (0 !== (nextProps & 42)) nextProps = 1; - else - switch (nextProps) { - case 2: - nextProps = 1; - break; - case 8: - nextProps = 4; - break; - case 32: - nextProps = 16; - break; - case 128: - case 256: - case 512: - case 1024: - case 2048: - case 4096: - case 8192: - case 16384: - case 32768: - case 65536: - case 131072: - case 262144: - case 524288: - case 1048576: - case 2097152: - case 4194304: - case 8388608: - case 16777216: - case 33554432: - nextProps = 64; - break; - case 268435456: - nextProps = 134217728; - break; - default: - nextProps = 0; - } - nextProps = + if ( + null !== JSCompiler_temp && + ((nextProps = renderLanes & -renderLanes), + (nextProps = + 0 !== (nextProps & 42) + ? 1 + : getBumpedLaneForHydrationByLane(nextProps)), + (nextProps = 0 !== (nextProps & (JSCompiler_temp.suspendedLanes | renderLanes)) ? 0 - : nextProps; - if ( - 0 !== nextProps && - nextProps !== JSCompiler_temp$jscomp$0.retryLane - ) - throw ( - ((JSCompiler_temp$jscomp$0.retryLane = nextProps), - enqueueConcurrentRenderForLane(current, nextProps), - scheduleUpdateOnFiber(JSCompiler_temp, current, nextProps), - SelectiveHydrationException) - ); - } + : nextProps), + 0 !== nextProps && nextProps !== JSCompiler_temp$jscomp$0.retryLane) + ) + throw ( + ((JSCompiler_temp$jscomp$0.retryLane = nextProps), + enqueueConcurrentRenderForLane(current, nextProps), + scheduleUpdateOnFiber(JSCompiler_temp, current, nextProps), + SelectiveHydrationException) + ); isSuspenseInstancePending(nextInstance) || renderDidSuspendDelayIfPossible(); workInProgress = retrySuspenseComponentWithoutHydrating( @@ -12234,8 +12237,9 @@ module.exports = function ($$$config) { }; exports.attemptHydrationAtCurrentPriority = function (fiber) { if (13 === fiber.tag) { - var lane = requestUpdateLane(), - root = enqueueConcurrentRenderForLane(fiber, lane); + var lane = requestUpdateLane(); + lane = getBumpedLaneForHydrationByLane(lane); + var root = enqueueConcurrentRenderForLane(fiber, lane); null !== root && scheduleUpdateOnFiber(root, fiber, lane); markRetryLaneIfNotHydrated(fiber, lane); } @@ -12335,12 +12339,14 @@ module.exports = function ($$$config) { initialChildren.context = getContextForSubtree(null); containerInfo = initialChildren.current; tag = requestUpdateLane(); + tag = getBumpedLaneForHydrationByLane(tag); hydrationCallbacks = createUpdate(tag); hydrationCallbacks.callback = void 0 !== callback && null !== callback ? callback : null; enqueueUpdate(containerInfo, hydrationCallbacks, tag); - initialChildren.current.lanes = tag; - markRootUpdated(initialChildren, tag); + callback = tag; + initialChildren.current.lanes = callback; + markRootUpdated(initialChildren, callback); ensureRootIsScheduled(initialChildren); return initialChildren; }; @@ -12570,7 +12576,7 @@ module.exports = function ($$$config) { version: rendererVersion, rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-www-modern-a4964987-20241211" + reconcilerVersion: "19.1.0-www-modern-d5e8f79c-20241212" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactTestRenderer-dev.classic.js b/compiled/facebook-www/ReactTestRenderer-dev.classic.js index 52697b0f7acc1..91c3e581b61ed 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.classic.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.classic.js @@ -15030,10 +15030,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.0.0-www-classic-a4964987-20241211", + version: "19.1.0-www-classic-d5e8f79c-20241212", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-www-classic-a4964987-20241211" + reconcilerVersion: "19.1.0-www-classic-d5e8f79c-20241212" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -15168,5 +15168,5 @@ __DEV__ && exports.unstable_batchedUpdates = function (fn, a) { return fn(a); }; - exports.version = "19.0.0-www-classic-a4964987-20241211"; + exports.version = "19.1.0-www-classic-d5e8f79c-20241212"; })(); diff --git a/compiled/facebook-www/ReactTestRenderer-dev.modern.js b/compiled/facebook-www/ReactTestRenderer-dev.modern.js index df3989b189c3e..ffaf9741ed573 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.modern.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.modern.js @@ -15030,10 +15030,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.0.0-www-modern-a4964987-20241211", + version: "19.1.0-www-modern-d5e8f79c-20241212", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-www-modern-a4964987-20241211" + reconcilerVersion: "19.1.0-www-modern-d5e8f79c-20241212" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -15168,5 +15168,5 @@ __DEV__ && exports.unstable_batchedUpdates = function (fn, a) { return fn(a); }; - exports.version = "19.0.0-www-modern-a4964987-20241211"; + exports.version = "19.1.0-www-modern-d5e8f79c-20241212"; })(); diff --git a/compiled/facebook-www/VERSION_CLASSIC b/compiled/facebook-www/VERSION_CLASSIC index 25ae544bd3693..21004f8821ad2 100644 --- a/compiled/facebook-www/VERSION_CLASSIC +++ b/compiled/facebook-www/VERSION_CLASSIC @@ -1 +1 @@ -19.0.0-www-classic-a4964987-20241211 \ No newline at end of file +19.1.0-www-classic-d5e8f79c-20241212 \ No newline at end of file diff --git a/compiled/facebook-www/VERSION_MODERN b/compiled/facebook-www/VERSION_MODERN index 517841ce1e21c..075f8487ff495 100644 --- a/compiled/facebook-www/VERSION_MODERN +++ b/compiled/facebook-www/VERSION_MODERN @@ -1 +1 @@ -19.0.0-www-modern-a4964987-20241211 \ No newline at end of file +19.1.0-www-modern-d5e8f79c-20241212 \ No newline at end of file