From 2c0264bf44bbe8d8e4fe5a668c4de4f36c57041e Mon Sep 17 00:00:00 2001 From: tyao1 Date: Mon, 28 Nov 2022 17:21:27 +0000 Subject: [PATCH] Build for 8a23def32f9eb7495d6ece67af25fdfbebe42fcd --- compiled/facebook-www/React-dev.classic.js | 2 +- compiled/facebook-www/React-dev.modern.js | 2 +- compiled/facebook-www/React-prod.classic.js | 2 +- compiled/facebook-www/React-prod.modern.js | 2 +- .../facebook-www/React-profiling.classic.js | 2 +- .../facebook-www/React-profiling.modern.js | 2 +- compiled/facebook-www/ReactART-dev.classic.js | 95 +++++---- compiled/facebook-www/ReactART-dev.modern.js | 95 +++++---- .../facebook-www/ReactART-prod.classic.js | 131 ++++++------ compiled/facebook-www/ReactART-prod.modern.js | 131 ++++++------ compiled/facebook-www/ReactDOM-dev.classic.js | 95 +++++---- compiled/facebook-www/ReactDOM-dev.modern.js | 95 +++++---- .../facebook-www/ReactDOM-prod.classic.js | 177 ++++++++-------- compiled/facebook-www/ReactDOM-prod.modern.js | 177 ++++++++-------- .../ReactDOM-profiling.classic.js | 200 +++++++++--------- .../facebook-www/ReactDOM-profiling.modern.js | 200 +++++++++--------- .../ReactDOMForked-dev.classic.js | 95 +++++---- .../facebook-www/ReactDOMForked-dev.modern.js | 95 +++++---- .../ReactDOMForked-prod.classic.js | 177 ++++++++-------- .../ReactDOMForked-prod.modern.js | 177 ++++++++-------- .../ReactDOMForked-profiling.classic.js | 200 +++++++++--------- .../ReactDOMForked-profiling.modern.js | 200 +++++++++--------- .../ReactDOMServer-dev.classic.js | 2 +- .../facebook-www/ReactDOMServer-dev.modern.js | 2 +- .../ReactDOMServer-prod.classic.js | 2 +- .../ReactDOMServer-prod.modern.js | 2 +- .../ReactDOMTesting-dev.classic.js | 91 ++++---- .../ReactDOMTesting-dev.modern.js | 91 ++++---- .../ReactDOMTesting-prod.classic.js | 171 +++++++-------- .../ReactDOMTesting-prod.modern.js | 171 +++++++-------- .../ReactTestRenderer-dev.classic.js | 91 ++++---- .../ReactTestRenderer-dev.modern.js | 91 ++++---- 32 files changed, 1600 insertions(+), 1466 deletions(-) diff --git a/compiled/facebook-www/React-dev.classic.js b/compiled/facebook-www/React-dev.classic.js index a14aa1d766..4ca744fa23 100644 --- a/compiled/facebook-www/React-dev.classic.js +++ b/compiled/facebook-www/React-dev.classic.js @@ -27,7 +27,7 @@ if ( } "use strict"; -var ReactVersion = "18.3.0-www-classic-2655c9354-20221121"; +var ReactVersion = "18.3.0-www-classic-8a23def32-20221128"; // ATTENTION // When adding new symbols to this file, diff --git a/compiled/facebook-www/React-dev.modern.js b/compiled/facebook-www/React-dev.modern.js index e21f3d6aa7..1a95567e4a 100644 --- a/compiled/facebook-www/React-dev.modern.js +++ b/compiled/facebook-www/React-dev.modern.js @@ -27,7 +27,7 @@ if ( } "use strict"; -var ReactVersion = "18.3.0-www-modern-2655c9354-20221121"; +var ReactVersion = "18.3.0-www-modern-8a23def32-20221128"; // ATTENTION // When adding new symbols to this file, diff --git a/compiled/facebook-www/React-prod.classic.js b/compiled/facebook-www/React-prod.classic.js index 478b7ca6cd..dfda7ebfe2 100644 --- a/compiled/facebook-www/React-prod.classic.js +++ b/compiled/facebook-www/React-prod.classic.js @@ -643,4 +643,4 @@ exports.useSyncExternalStore = function( ); }; exports.useTransition = useTransition; -exports.version = "18.3.0-www-classic-2655c9354-20221121"; +exports.version = "18.3.0-www-classic-8a23def32-20221128"; diff --git a/compiled/facebook-www/React-prod.modern.js b/compiled/facebook-www/React-prod.modern.js index 46bfbfdcc8..37eed4aed6 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 = useTransition; -exports.version = "18.3.0-www-modern-2655c9354-20221121"; +exports.version = "18.3.0-www-modern-8a23def32-20221128"; diff --git a/compiled/facebook-www/React-profiling.classic.js b/compiled/facebook-www/React-profiling.classic.js index de78046352..61afdfcb3b 100644 --- a/compiled/facebook-www/React-profiling.classic.js +++ b/compiled/facebook-www/React-profiling.classic.js @@ -654,7 +654,7 @@ exports.useSyncExternalStore = function( ); }; exports.useTransition = useTransition; -exports.version = "18.3.0-www-classic-2655c9354-20221121"; +exports.version = "18.3.0-www-classic-8a23def32-20221128"; /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ if ( diff --git a/compiled/facebook-www/React-profiling.modern.js b/compiled/facebook-www/React-profiling.modern.js index 250052b3c0..7307126b93 100644 --- a/compiled/facebook-www/React-profiling.modern.js +++ b/compiled/facebook-www/React-profiling.modern.js @@ -646,7 +646,7 @@ exports.useSyncExternalStore = function( ); }; exports.useTransition = useTransition; -exports.version = "18.3.0-www-modern-2655c9354-20221121"; +exports.version = "18.3.0-www-modern-8a23def32-20221128"; /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ if ( diff --git a/compiled/facebook-www/ReactART-dev.classic.js b/compiled/facebook-www/ReactART-dev.classic.js index 04e37e4f5a..397268c35a 100644 --- a/compiled/facebook-www/ReactART-dev.classic.js +++ b/compiled/facebook-www/ReactART-dev.classic.js @@ -69,7 +69,7 @@ function _assertThisInitialized(self) { return self; } -var ReactVersion = "18.3.0-www-classic-2655c9354-20221121"; +var ReactVersion = "18.3.0-www-classic-8a23def32-20221128"; var LegacyRoot = 0; var ConcurrentRoot = 1; @@ -1577,91 +1577,91 @@ var NoLanes = var NoLane = /* */ 0; +var SyncHydrationLane = + /* */ + 1; var SyncLane = /* */ - 1; + 2; var InputContinuousHydrationLane = /* */ - 2; + 4; var InputContinuousLane = /* */ - 4; + 8; var DefaultHydrationLane = /* */ - 8; + 16; var DefaultLane = /* */ - 16; + 32; var TransitionHydrationLane = /* */ - 32; + 64; var TransitionLanes = /* */ - 4194240; + 8388480; var TransitionLane1 = /* */ - 64; + 128; var TransitionLane2 = /* */ - 128; + 256; var TransitionLane3 = /* */ - 256; + 512; var TransitionLane4 = /* */ - 512; + 1024; var TransitionLane5 = /* */ - 1024; + 2048; var TransitionLane6 = /* */ - 2048; + 4096; var TransitionLane7 = /* */ - 4096; + 8192; var TransitionLane8 = /* */ - 8192; + 16384; var TransitionLane9 = /* */ - 16384; + 32768; var TransitionLane10 = /* */ - 32768; + 65536; var TransitionLane11 = /* */ - 65536; + 131072; var TransitionLane12 = /* */ - 131072; + 262144; var TransitionLane13 = /* */ - 262144; + 524288; var TransitionLane14 = /* */ - 524288; + 1048576; var TransitionLane15 = /* */ - 1048576; + 2097152; var TransitionLane16 = /* */ - 2097152; + 4194304; var RetryLanes = /* */ - 130023424; + 125829120; var RetryLane1 = /* */ - 4194304; + 8388608; var RetryLane2 = /* */ - 8388608; + 16777216; var RetryLane3 = - /* */ - 16777216; -var RetryLane4 = /* */ 33554432; -var RetryLane5 = +var RetryLane4 = /* */ 67108864; var SomeRetryLane = RetryLane1; @@ -1684,6 +1684,10 @@ var OffscreenLane = function getLabelForLane(lane) { if (enableSchedulingProfiler) { + if (lane & SyncHydrationLane) { + return "SyncHydrationLane"; + } + if (lane & SyncLane) { return "Sync"; } @@ -1739,6 +1743,9 @@ var nextRetryLane = RetryLane1; function getHighestPriorityLanes(lanes) { switch (getHighestPriorityLane(lanes)) { + case SyncHydrationLane: + return SyncHydrationLane; + case SyncLane: return SyncLane; @@ -1779,7 +1786,6 @@ function getHighestPriorityLanes(lanes) { case RetryLane2: case RetryLane3: case RetryLane4: - case RetryLane5: return lanes & RetryLanes; case SelectiveHydrationLane: @@ -1940,6 +1946,7 @@ function getMostRecentEventTime(root, lanes) { function computeExpirationTime(lane, currentTime) { switch (lane) { + case SyncHydrationLane: case SyncLane: case InputContinuousHydrationLane: case InputContinuousLane: @@ -1979,7 +1986,6 @@ function computeExpirationTime(lane, currentTime) { case RetryLane2: case RetryLane3: case RetryLane4: - case RetryLane5: // TODO: Retries should be allowed to expire if they are CPU bound for // too long, but when I made this change it caused a spike in browser // crashes. There must be some other underlying bug; not super urgent but @@ -2062,6 +2068,9 @@ function getLanesToRetrySynchronouslyOnError(root, originallyAttemptedLanes) { return NoLanes; } +function includesSyncLane(lanes) { + return (lanes & (SyncLane | SyncHydrationLane)) !== NoLanes; +} function includesNonIdleWork(lanes) { return (lanes & NonIdleLanes) !== NoLanes; } @@ -2069,6 +2078,8 @@ function includesOnlyRetries(lanes) { return (lanes & RetryLanes) === lanes; } function includesOnlyNonUrgentLanes(lanes) { + // TODO: Should hydration lanes be included here? This function is only + // used in `updateDeferredValueImpl`. var UrgentLanes = SyncLane | InputContinuousLane | DefaultLane; return (lanes & UrgentLanes) === NoLanes; } @@ -2306,6 +2317,10 @@ function getBumpedLaneForHydration(root, renderLanes) { var lane; switch (renderLane) { + case SyncLane: + lane = SyncHydrationLane; + break; + case InputContinuousLane: lane = InputContinuousHydrationLane; break; @@ -2334,7 +2349,6 @@ function getBumpedLaneForHydration(root, renderLanes) { case RetryLane2: case RetryLane3: case RetryLane4: - case RetryLane5: lane = TransitionHydrationLane; break; @@ -23428,7 +23442,7 @@ function ensureRootIsScheduled(root, currentTime) { // TODO: Temporary until we confirm this warning is not fired. if ( existingCallbackNode == null && - existingCallbackPriority !== SyncLane + !includesSyncLane(existingCallbackPriority) ) { error( "Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue." @@ -23446,7 +23460,7 @@ function ensureRootIsScheduled(root, currentTime) { var newCallbackNode; - if (newCallbackPriority === SyncLane) { + if (includesSyncLane(newCallbackPriority)) { // Special case: Sync React callbacks are scheduled on a special // internal queue if (root.tag === LegacyRoot) { @@ -23983,7 +23997,7 @@ function performSyncWorkOnRoot(root) { flushPassiveEffects(); var lanes = getNextLanes(root, NoLanes); - if (!includesSomeLane(lanes, SyncLane)) { + if (!includesSyncLane(lanes)) { // There's no remaining sync work left. ensureRootIsScheduled(root, now()); return null; @@ -25281,16 +25295,13 @@ function commitRootImpl( // currently schedule the callback in multiple places, will wait until those // are consolidated. - if ( - includesSomeLane(pendingPassiveEffectsLanes, SyncLane) && - root.tag !== LegacyRoot - ) { + if (includesSyncLane(pendingPassiveEffectsLanes) && root.tag !== LegacyRoot) { flushPassiveEffects(); } // Read this again, since a passive effect might have updated it remainingLanes = root.pendingLanes; - if (includesSomeLane(remainingLanes, SyncLane)) { + if (includesSyncLane(remainingLanes)) { { markNestedUpdateScheduled(); } // Count the number of times the root synchronously re-renders without diff --git a/compiled/facebook-www/ReactART-dev.modern.js b/compiled/facebook-www/ReactART-dev.modern.js index 2b4a9605a0..34f0c98bac 100644 --- a/compiled/facebook-www/ReactART-dev.modern.js +++ b/compiled/facebook-www/ReactART-dev.modern.js @@ -69,7 +69,7 @@ function _assertThisInitialized(self) { return self; } -var ReactVersion = "18.3.0-www-modern-2655c9354-20221121"; +var ReactVersion = "18.3.0-www-modern-8a23def32-20221128"; var LegacyRoot = 0; var ConcurrentRoot = 1; @@ -1574,91 +1574,91 @@ var NoLanes = var NoLane = /* */ 0; +var SyncHydrationLane = + /* */ + 1; var SyncLane = /* */ - 1; + 2; var InputContinuousHydrationLane = /* */ - 2; + 4; var InputContinuousLane = /* */ - 4; + 8; var DefaultHydrationLane = /* */ - 8; + 16; var DefaultLane = /* */ - 16; + 32; var TransitionHydrationLane = /* */ - 32; + 64; var TransitionLanes = /* */ - 4194240; + 8388480; var TransitionLane1 = /* */ - 64; + 128; var TransitionLane2 = /* */ - 128; + 256; var TransitionLane3 = /* */ - 256; + 512; var TransitionLane4 = /* */ - 512; + 1024; var TransitionLane5 = /* */ - 1024; + 2048; var TransitionLane6 = /* */ - 2048; + 4096; var TransitionLane7 = /* */ - 4096; + 8192; var TransitionLane8 = /* */ - 8192; + 16384; var TransitionLane9 = /* */ - 16384; + 32768; var TransitionLane10 = /* */ - 32768; + 65536; var TransitionLane11 = /* */ - 65536; + 131072; var TransitionLane12 = /* */ - 131072; + 262144; var TransitionLane13 = /* */ - 262144; + 524288; var TransitionLane14 = /* */ - 524288; + 1048576; var TransitionLane15 = /* */ - 1048576; + 2097152; var TransitionLane16 = /* */ - 2097152; + 4194304; var RetryLanes = /* */ - 130023424; + 125829120; var RetryLane1 = /* */ - 4194304; + 8388608; var RetryLane2 = /* */ - 8388608; + 16777216; var RetryLane3 = - /* */ - 16777216; -var RetryLane4 = /* */ 33554432; -var RetryLane5 = +var RetryLane4 = /* */ 67108864; var SomeRetryLane = RetryLane1; @@ -1681,6 +1681,10 @@ var OffscreenLane = function getLabelForLane(lane) { if (enableSchedulingProfiler) { + if (lane & SyncHydrationLane) { + return "SyncHydrationLane"; + } + if (lane & SyncLane) { return "Sync"; } @@ -1736,6 +1740,9 @@ var nextRetryLane = RetryLane1; function getHighestPriorityLanes(lanes) { switch (getHighestPriorityLane(lanes)) { + case SyncHydrationLane: + return SyncHydrationLane; + case SyncLane: return SyncLane; @@ -1776,7 +1783,6 @@ function getHighestPriorityLanes(lanes) { case RetryLane2: case RetryLane3: case RetryLane4: - case RetryLane5: return lanes & RetryLanes; case SelectiveHydrationLane: @@ -1937,6 +1943,7 @@ function getMostRecentEventTime(root, lanes) { function computeExpirationTime(lane, currentTime) { switch (lane) { + case SyncHydrationLane: case SyncLane: case InputContinuousHydrationLane: case InputContinuousLane: @@ -1976,7 +1983,6 @@ function computeExpirationTime(lane, currentTime) { case RetryLane2: case RetryLane3: case RetryLane4: - case RetryLane5: // TODO: Retries should be allowed to expire if they are CPU bound for // too long, but when I made this change it caused a spike in browser // crashes. There must be some other underlying bug; not super urgent but @@ -2059,6 +2065,9 @@ function getLanesToRetrySynchronouslyOnError(root, originallyAttemptedLanes) { return NoLanes; } +function includesSyncLane(lanes) { + return (lanes & (SyncLane | SyncHydrationLane)) !== NoLanes; +} function includesNonIdleWork(lanes) { return (lanes & NonIdleLanes) !== NoLanes; } @@ -2066,6 +2075,8 @@ function includesOnlyRetries(lanes) { return (lanes & RetryLanes) === lanes; } function includesOnlyNonUrgentLanes(lanes) { + // TODO: Should hydration lanes be included here? This function is only + // used in `updateDeferredValueImpl`. var UrgentLanes = SyncLane | InputContinuousLane | DefaultLane; return (lanes & UrgentLanes) === NoLanes; } @@ -2303,6 +2314,10 @@ function getBumpedLaneForHydration(root, renderLanes) { var lane; switch (renderLane) { + case SyncLane: + lane = SyncHydrationLane; + break; + case InputContinuousLane: lane = InputContinuousHydrationLane; break; @@ -2331,7 +2346,6 @@ function getBumpedLaneForHydration(root, renderLanes) { case RetryLane2: case RetryLane3: case RetryLane4: - case RetryLane5: lane = TransitionHydrationLane; break; @@ -23117,7 +23131,7 @@ function ensureRootIsScheduled(root, currentTime) { // TODO: Temporary until we confirm this warning is not fired. if ( existingCallbackNode == null && - existingCallbackPriority !== SyncLane + !includesSyncLane(existingCallbackPriority) ) { error( "Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue." @@ -23135,7 +23149,7 @@ function ensureRootIsScheduled(root, currentTime) { var newCallbackNode; - if (newCallbackPriority === SyncLane) { + if (includesSyncLane(newCallbackPriority)) { // Special case: Sync React callbacks are scheduled on a special // internal queue if (root.tag === LegacyRoot) { @@ -23672,7 +23686,7 @@ function performSyncWorkOnRoot(root) { flushPassiveEffects(); var lanes = getNextLanes(root, NoLanes); - if (!includesSomeLane(lanes, SyncLane)) { + if (!includesSyncLane(lanes)) { // There's no remaining sync work left. ensureRootIsScheduled(root, now()); return null; @@ -24970,16 +24984,13 @@ function commitRootImpl( // currently schedule the callback in multiple places, will wait until those // are consolidated. - if ( - includesSomeLane(pendingPassiveEffectsLanes, SyncLane) && - root.tag !== LegacyRoot - ) { + if (includesSyncLane(pendingPassiveEffectsLanes) && root.tag !== LegacyRoot) { flushPassiveEffects(); } // Read this again, since a passive effect might have updated it remainingLanes = root.pendingLanes; - if (includesSomeLane(remainingLanes, SyncLane)) { + if (includesSyncLane(remainingLanes)) { { markNestedUpdateScheduled(); } // Count the number of times the root synchronously re-renders without diff --git a/compiled/facebook-www/ReactART-prod.classic.js b/compiled/facebook-www/ReactART-prod.classic.js index dafd816408..45db37c789 100644 --- a/compiled/facebook-www/ReactART-prod.classic.js +++ b/compiled/facebook-www/ReactART-prod.classic.js @@ -391,8 +391,8 @@ function clz32Fallback(x) { x >>>= 0; return 0 === x ? 32 : (31 - ((log(x) / LN2) | 0)) | 0; } -var nextTransitionLane = 64, - nextRetryLane = 4194304; +var nextTransitionLane = 128, + nextRetryLane = 8388608; function getHighestPriorityLanes(lanes) { switch (lanes & -lanes) { case 1: @@ -408,6 +408,7 @@ function getHighestPriorityLanes(lanes) { case 32: return 32; case 64: + return 64; case 128: case 256: case 512: @@ -423,13 +424,13 @@ function getHighestPriorityLanes(lanes) { case 524288: case 1048576: case 2097152: - return lanes & 4194240; case 4194304: + return lanes & 8388480; case 8388608: case 16777216: case 33554432: case 67108864: - return lanes & 130023424; + return lanes & 125829120; case 134217728: return 134217728; case 268435456: @@ -470,12 +471,12 @@ function getNextLanes(root, wipLanes) { ((suspendedLanes = nextLanes & -nextLanes), (pingedLanes = wipLanes & -wipLanes), suspendedLanes >= pingedLanes || - (16 === suspendedLanes && 0 !== (pingedLanes & 4194240))) + (32 === suspendedLanes && 0 !== (pingedLanes & 8388480))) ) return wipLanes; 0 === (root.current.mode & 32) && - 0 !== (nextLanes & 4) && - (nextLanes |= pendingLanes & 16); + 0 !== (nextLanes & 8) && + (nextLanes |= pendingLanes & 32); wipLanes = root.entangledLanes; if (0 !== wipLanes) for (root = root.entanglements, wipLanes &= nextLanes; 0 < wipLanes; ) @@ -490,8 +491,8 @@ function computeExpirationTime(lane, currentTime) { case 1: case 2: case 4: - return currentTime + 250; case 8: + return currentTime + 250; case 16: case 32: case 64: @@ -510,8 +511,8 @@ function computeExpirationTime(lane, currentTime) { case 524288: case 1048576: case 2097152: - return currentTime + 5e3; case 4194304: + return currentTime + 5e3; case 8388608: case 16777216: case 33554432: @@ -532,12 +533,12 @@ function getLanesToRetrySynchronouslyOnError(root, originallyAttemptedLanes) { return 0 !== root ? root : root & 1073741824 ? 1073741824 : 0; } function includesBlockingLane(root, lanes) { - return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 30); + return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 60); } function claimNextTransitionLane() { var lane = nextTransitionLane; nextTransitionLane <<= 1; - 0 === (nextTransitionLane & 4194240) && (nextTransitionLane = 64); + 0 === (nextTransitionLane & 8388480) && (nextTransitionLane = 128); return lane; } function createLaneMap(initial) { @@ -620,13 +621,13 @@ function clearTransitionsForLanes(root, lanes) { var currentUpdatePriority = 0; function lanesToEventPriority(lanes) { lanes &= -lanes; - return 1 < lanes - ? 4 < lanes + return 2 < lanes + ? 8 < lanes ? 0 !== (lanes & 268435455) - ? 16 + ? 32 : 536870912 - : 4 - : 1; + : 8 + : 2; } function shim() { throw Error(formatProdErrorMessage(305)); @@ -991,7 +992,7 @@ function flushSyncCallbacks() { previousUpdatePriority = currentUpdatePriority; try { var queue = syncQueue; - for (currentUpdatePriority = 1; i < queue.length; i++) { + for (currentUpdatePriority = 2; i < queue.length; i++) { var callback = queue[i]; do callback = callback(!0); while (null !== callback); @@ -2138,7 +2139,7 @@ function enqueueUpdate$1(fiber, update, lane) { } function entangleTransitions(root, fiber, lane) { fiber = fiber.updateQueue; - if (null !== fiber && ((fiber = fiber.shared), 0 !== (lane & 4194240))) { + if (null !== fiber && ((fiber = fiber.shared), 0 !== (lane & 8388480))) { var queueLanes = fiber.lanes; queueLanes &= root.pendingLanes; lane |= queueLanes; @@ -2977,8 +2978,8 @@ function checkIfSnapshotChanged(inst) { } } function forceStoreRerender(fiber) { - var root = enqueueConcurrentRenderForLane(fiber, 1); - null !== root && scheduleUpdateOnFiber(root, fiber, 1, -1); + var root = enqueueConcurrentRenderForLane(fiber, 2); + null !== root && scheduleUpdateOnFiber(root, fiber, 2, -1); } function mountState(initialState) { var hook = mountWorkInProgressHook(); @@ -3134,7 +3135,7 @@ function updateMemo(nextCreate, deps) { return nextCreate; } function updateDeferredValueImpl(hook, prevValue, value) { - if (0 === (renderLanes & 21)) + if (0 === (renderLanes & 42)) return ( hook.baseState && ((hook.baseState = !1), (didReceiveUpdate = !0)), (hook.memoizedState = value) @@ -3149,7 +3150,7 @@ function updateDeferredValueImpl(hook, prevValue, value) { function startTransition(setPending, callback, options) { var previousPriority = currentUpdatePriority; currentUpdatePriority = - 0 !== previousPriority && 4 > previousPriority ? previousPriority : 4; + 0 !== previousPriority && 8 > previousPriority ? previousPriority : 8; setPending(!0); var prevTransition = ReactCurrentBatchConfig$1.transition; ReactCurrentBatchConfig$1.transition = {}; @@ -3268,7 +3269,7 @@ function enqueueRenderPhaseUpdate(queue, update) { queue.pending = update; } function entangleTransitionUpdate(root, queue, lane) { - if (0 !== (lane & 4194240)) { + if (0 !== (lane & 8388480)) { var queueLanes = queue.lanes; queueLanes &= root.pendingLanes; lane |= queueLanes; @@ -4526,7 +4527,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - (workInProgress.lanes = 4194304), + (workInProgress.lanes = 8388608), current ); pushPrimaryTreeSuspenseHandler(workInProgress); @@ -4784,13 +4785,15 @@ function updateDehydratedSuspenseComponent( nextProps = workInProgressRoot; if (null !== nextProps) { switch (renderLanes & -renderLanes) { - case 4: - didSuspend = 2; + case 2: + didSuspend = 1; break; - case 16: - didSuspend = 8; + case 8: + didSuspend = 4; + break; + case 32: + didSuspend = 16; break; - case 64: case 128: case 256: case 512: @@ -4811,7 +4814,7 @@ function updateDehydratedSuspenseComponent( case 16777216: case 33554432: case 67108864: - didSuspend = 32; + didSuspend = 64; break; case 536870912: didSuspend = 268435456; @@ -5530,7 +5533,7 @@ function completeWork(current, workInProgress, renderLanes) { ((workInProgress.flags |= 64), (newProps = !0), cutOffTailIfNeeded(instance, !1), - (workInProgress.lanes = 4194304)); + (workInProgress.lanes = 8388608)); } else { if (!newProps) @@ -5558,7 +5561,7 @@ function completeWork(current, workInProgress, renderLanes) { ((workInProgress.flags |= 64), (newProps = !0), cutOffTailIfNeeded(instance, !1), - (workInProgress.lanes = 4194304)); + (workInProgress.lanes = 8388608)); instance.isBackwards ? ((JSCompiler_inline_result.sibling = workInProgress.child), (workInProgress.child = JSCompiler_inline_result)) @@ -7689,7 +7692,7 @@ function requestEventTime() { : (currentEventTime = now()); } function requestUpdateLane(fiber) { - if (0 === (fiber.mode & 1)) return 1; + if (0 === (fiber.mode & 1)) return 2; if ( !deferRenderPhaseUpdateToNextBatch && 0 !== (executionContext & 2) && @@ -7703,7 +7706,7 @@ function requestUpdateLane(fiber) { currentEventTransitionLane ); fiber = currentUpdatePriority; - return 0 !== fiber ? fiber : 16; + return 0 !== fiber ? fiber : 32; } function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { 2 === workInProgressSuspendedReason && @@ -7735,7 +7738,7 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { markRootSuspended$1(root, workInProgressRootRenderLanes); } ensureRootIsScheduled(root, eventTime); - 1 === lane && + 2 === lane && 0 === executionContext && 0 === (fiber.mode & 1) && ((workInProgressRootRenderTargetTime = now() + 500), @@ -7748,7 +7751,7 @@ function ensureRootIsScheduled(root, currentTime) { suspendedLanes = root.suspendedLanes, pingedLanes = root.pingedLanes, expirationTimes = root.expirationTimes, - lanes = root.pendingLanes & -130023425; + lanes = root.pendingLanes & -125829121; 0 < lanes; ) { @@ -7774,7 +7777,7 @@ function ensureRootIsScheduled(root, currentTime) { root.callbackPriority !== currentTime) ) { null != existingCallbackNode && cancelCallback(existingCallbackNode); - if (1 === currentTime) + if (0 !== (currentTime & 3)) 0 === root.tag ? ((existingCallbackNode = performSyncWorkOnRoot.bind(null, root)), (includesLegacySyncCallbacks = !0), @@ -7789,13 +7792,13 @@ function ensureRootIsScheduled(root, currentTime) { (existingCallbackNode = null); else { switch (lanesToEventPriority(suspendedLanes)) { - case 1: + case 2: existingCallbackNode = ImmediatePriority; break; - case 4: + case 8: existingCallbackNode = UserBlockingPriority; break; - case 16: + case 32: existingCallbackNode = NormalPriority; break; case 536870912: @@ -7898,7 +7901,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) { case 3: markRootSuspended$1(root, lanes); if ( - (lanes & 130023424) === lanes && + (lanes & 125829120) === lanes && ((didTimeout = globalMostRecentFallbackTime + 500 - now()), 10 < didTimeout) ) { @@ -7929,7 +7932,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) { break; case 4: markRootSuspended$1(root, lanes); - if ((lanes & 4194240) === lanes) break; + if ((lanes & 8388480) === lanes) break; didTimeout = root.eventTimes; for (originallyAttemptedLanes = -1; 0 < lanes; ) (errorRetryLanes$127 = 31 - clz32(lanes)), @@ -8072,7 +8075,7 @@ function performSyncWorkOnRoot(root) { if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); flushPassiveEffects(); var lanes = getNextLanes(root, 0); - if (0 === (lanes & 1)) return ensureRootIsScheduled(root, now()), null; + if (0 === (lanes & 3)) return ensureRootIsScheduled(root, now()), null; var exitStatus = renderRootSync(root, lanes); if (0 !== root.tag && 2 === exitStatus) { var originallyAttemptedLanes = lanes, @@ -8166,7 +8169,7 @@ function handleThrow(root, thrownValue) { } function shouldAttemptToSuspendUntilDataResolves() { if ( - (workInProgressRootRenderLanes & 130023424) === + (workInProgressRootRenderLanes & 125829120) === workInProgressRootRenderLanes ) return !0; @@ -8176,7 +8179,7 @@ function shouldAttemptToSuspendUntilDataResolves() { ) return !1; if ( - (workInProgressRootRenderLanes & 4194240) === + (workInProgressRootRenderLanes & 8388480) === workInProgressRootRenderLanes ) { var suspenseHandler = suspenseHandlerStackCursor.current; @@ -8439,11 +8442,11 @@ function unwindSuspendedUnitOfWork(unitOfWork, thrownValue) { if (1 === unitOfWork.tag) if (null === unitOfWork.alternate) unitOfWork.tag = 17; else { - var update = createUpdate(-1, 1); + var update = createUpdate(-1, 2); update.tag = 2; - enqueueUpdate$1(unitOfWork, update, 1); + enqueueUpdate$1(unitOfWork, update, 2); } - unitOfWork.lanes |= 1; + unitOfWork.lanes |= 2; } else (suspenseBoundary.flags |= 32768), @@ -8582,7 +8585,7 @@ function commitRoot(root, recoverableErrors, transitions) { prevTransition = ReactCurrentBatchConfig$2.transition; try { (ReactCurrentBatchConfig$2.transition = null), - (currentUpdatePriority = 1), + (currentUpdatePriority = 2), commitRootImpl( root, recoverableErrors, @@ -8633,7 +8636,7 @@ function commitRootImpl( transitions = ReactCurrentBatchConfig$2.transition; ReactCurrentBatchConfig$2.transition = null; var previousPriority = currentUpdatePriority; - currentUpdatePriority = 1; + currentUpdatePriority = 2; var prevExecutionContext = executionContext; executionContext |= 4; ReactCurrentOwner$2.current = null; @@ -8672,11 +8675,11 @@ function commitRootImpl( (root = firstUncaughtError), (firstUncaughtError = null), root); - 0 !== (pendingPassiveEffectsLanes & 1) && + 0 !== (pendingPassiveEffectsLanes & 3) && 0 !== root.tag && flushPassiveEffects(); remainingLanes = root.pendingLanes; - 0 !== (remainingLanes & 1) + 0 !== (remainingLanes & 3) ? root === rootWithNestedUpdates ? nestedUpdateCount++ : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root)) @@ -8696,7 +8699,7 @@ function flushPassiveEffects() { remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes); - renderPriority = 16 > renderPriority ? 16 : renderPriority; + renderPriority = 32 > renderPriority ? 32 : renderPriority; var prevTransition = ReactCurrentBatchConfig$2.transition, previousPriority = currentUpdatePriority; try { @@ -8752,11 +8755,11 @@ function flushPassiveEffectsImpl() { } function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) { sourceFiber = createCapturedValueAtFiber(error, sourceFiber); - sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 1); - rootFiber = enqueueUpdate$1(rootFiber, sourceFiber, 1); + sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 2); + rootFiber = enqueueUpdate$1(rootFiber, sourceFiber, 2); sourceFiber = requestEventTime(); null !== rootFiber && - (markRootUpdated(rootFiber, 1, sourceFiber), + (markRootUpdated(rootFiber, 2, sourceFiber), ensureRootIsScheduled(rootFiber, sourceFiber)); } function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) { @@ -8790,16 +8793,16 @@ function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) { sourceFiber = createClassErrorUpdate( nearestMountedAncestor, sourceFiber, - 1 + 2 ); nearestMountedAncestor = enqueueUpdate$1( nearestMountedAncestor, sourceFiber, - 1 + 2 ); sourceFiber = requestEventTime(); null !== nearestMountedAncestor && - (markRootUpdated(nearestMountedAncestor, 1, sourceFiber), + (markRootUpdated(nearestMountedAncestor, 2, sourceFiber), ensureRootIsScheduled(nearestMountedAncestor, sourceFiber)); break; } @@ -8832,7 +8835,7 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) { (workInProgressRootRenderLanes & pingedLanes) === pingedLanes && (4 === workInProgressRootExitStatus || (3 === workInProgressRootExitStatus && - (workInProgressRootRenderLanes & 130023424) === + (workInProgressRootRenderLanes & 125829120) === workInProgressRootRenderLanes && 500 > now() - globalMostRecentFallbackTime) ? prepareFreshStack(root, 0) @@ -8842,10 +8845,10 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) { function retryTimedOutBoundary(boundaryFiber, retryLane) { 0 === retryLane && (0 === (boundaryFiber.mode & 1) - ? (retryLane = 1) + ? (retryLane = 2) : ((retryLane = nextRetryLane), (nextRetryLane <<= 1), - 0 === (nextRetryLane & 130023424) && (nextRetryLane = 4194304))); + 0 === (nextRetryLane & 125829120) && (nextRetryLane = 8388608))); var eventTime = requestEventTime(); boundaryFiber = enqueueConcurrentRenderForLane(boundaryFiber, retryLane); null !== boundaryFiber && @@ -9791,7 +9794,7 @@ var slice = Array.prototype.slice, return null; }, bundleType: 0, - version: "18.3.0-www-classic-2655c9354-20221121", + version: "18.3.0-www-classic-8a23def32-20221128", rendererPackageName: "react-art" }; var internals$jscomp$inline_1333 = { @@ -9822,7 +9825,7 @@ var internals$jscomp$inline_1333 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-next-2655c9354-20221121" + reconcilerVersion: "18.3.0-next-8a23def32-20221128" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1334 = __REACT_DEVTOOLS_GLOBAL_HOOK__; diff --git a/compiled/facebook-www/ReactART-prod.modern.js b/compiled/facebook-www/ReactART-prod.modern.js index 9e5ffed7ca..dec092088f 100644 --- a/compiled/facebook-www/ReactART-prod.modern.js +++ b/compiled/facebook-www/ReactART-prod.modern.js @@ -275,8 +275,8 @@ function clz32Fallback(x) { x >>>= 0; return 0 === x ? 32 : (31 - ((log(x) / LN2) | 0)) | 0; } -var nextTransitionLane = 64, - nextRetryLane = 4194304; +var nextTransitionLane = 128, + nextRetryLane = 8388608; function getHighestPriorityLanes(lanes) { switch (lanes & -lanes) { case 1: @@ -292,6 +292,7 @@ function getHighestPriorityLanes(lanes) { case 32: return 32; case 64: + return 64; case 128: case 256: case 512: @@ -307,13 +308,13 @@ function getHighestPriorityLanes(lanes) { case 524288: case 1048576: case 2097152: - return lanes & 4194240; case 4194304: + return lanes & 8388480; case 8388608: case 16777216: case 33554432: case 67108864: - return lanes & 130023424; + return lanes & 125829120; case 134217728: return 134217728; case 268435456: @@ -354,12 +355,12 @@ function getNextLanes(root, wipLanes) { ((suspendedLanes = nextLanes & -nextLanes), (pingedLanes = wipLanes & -wipLanes), suspendedLanes >= pingedLanes || - (16 === suspendedLanes && 0 !== (pingedLanes & 4194240))) + (32 === suspendedLanes && 0 !== (pingedLanes & 8388480))) ) return wipLanes; 0 === (root.current.mode & 32) && - 0 !== (nextLanes & 4) && - (nextLanes |= pendingLanes & 16); + 0 !== (nextLanes & 8) && + (nextLanes |= pendingLanes & 32); wipLanes = root.entangledLanes; if (0 !== wipLanes) for (root = root.entanglements, wipLanes &= nextLanes; 0 < wipLanes; ) @@ -374,8 +375,8 @@ function computeExpirationTime(lane, currentTime) { case 1: case 2: case 4: - return currentTime + 250; case 8: + return currentTime + 250; case 16: case 32: case 64: @@ -394,8 +395,8 @@ function computeExpirationTime(lane, currentTime) { case 524288: case 1048576: case 2097152: - return currentTime + 5e3; case 4194304: + return currentTime + 5e3; case 8388608: case 16777216: case 33554432: @@ -416,12 +417,12 @@ function getLanesToRetrySynchronouslyOnError(root, originallyAttemptedLanes) { return 0 !== root ? root : root & 1073741824 ? 1073741824 : 0; } function includesBlockingLane(root, lanes) { - return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 30); + return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 60); } function claimNextTransitionLane() { var lane = nextTransitionLane; nextTransitionLane <<= 1; - 0 === (nextTransitionLane & 4194240) && (nextTransitionLane = 64); + 0 === (nextTransitionLane & 8388480) && (nextTransitionLane = 128); return lane; } function createLaneMap(initial) { @@ -504,13 +505,13 @@ function clearTransitionsForLanes(root, lanes) { var currentUpdatePriority = 0; function lanesToEventPriority(lanes) { lanes &= -lanes; - return 1 < lanes - ? 4 < lanes + return 2 < lanes + ? 8 < lanes ? 0 !== (lanes & 268435455) - ? 16 + ? 32 : 536870912 - : 4 - : 1; + : 8 + : 2; } function shim() { throw Error(formatProdErrorMessage(305)); @@ -798,7 +799,7 @@ function flushSyncCallbacks() { previousUpdatePriority = currentUpdatePriority; try { var queue = syncQueue; - for (currentUpdatePriority = 1; i < queue.length; i++) { + for (currentUpdatePriority = 2; i < queue.length; i++) { var callback = queue[i]; do callback = callback(!0); while (null !== callback); @@ -1945,7 +1946,7 @@ function enqueueUpdate$1(fiber, update, lane) { } function entangleTransitions(root, fiber, lane) { fiber = fiber.updateQueue; - if (null !== fiber && ((fiber = fiber.shared), 0 !== (lane & 4194240))) { + if (null !== fiber && ((fiber = fiber.shared), 0 !== (lane & 8388480))) { var queueLanes = fiber.lanes; queueLanes &= root.pendingLanes; lane |= queueLanes; @@ -2784,8 +2785,8 @@ function checkIfSnapshotChanged(inst) { } } function forceStoreRerender(fiber) { - var root = enqueueConcurrentRenderForLane(fiber, 1); - null !== root && scheduleUpdateOnFiber(root, fiber, 1, -1); + var root = enqueueConcurrentRenderForLane(fiber, 2); + null !== root && scheduleUpdateOnFiber(root, fiber, 2, -1); } function mountState(initialState) { var hook = mountWorkInProgressHook(); @@ -2941,7 +2942,7 @@ function updateMemo(nextCreate, deps) { return nextCreate; } function updateDeferredValueImpl(hook, prevValue, value) { - if (0 === (renderLanes & 21)) + if (0 === (renderLanes & 42)) return ( hook.baseState && ((hook.baseState = !1), (didReceiveUpdate = !0)), (hook.memoizedState = value) @@ -2956,7 +2957,7 @@ function updateDeferredValueImpl(hook, prevValue, value) { function startTransition(setPending, callback, options) { var previousPriority = currentUpdatePriority; currentUpdatePriority = - 0 !== previousPriority && 4 > previousPriority ? previousPriority : 4; + 0 !== previousPriority && 8 > previousPriority ? previousPriority : 8; setPending(!0); var prevTransition = ReactCurrentBatchConfig$1.transition; ReactCurrentBatchConfig$1.transition = {}; @@ -3075,7 +3076,7 @@ function enqueueRenderPhaseUpdate(queue, update) { queue.pending = update; } function entangleTransitionUpdate(root, queue, lane) { - if (0 !== (lane & 4194240)) { + if (0 !== (lane & 8388480)) { var queueLanes = queue.lanes; queueLanes &= root.pendingLanes; lane |= queueLanes; @@ -4283,7 +4284,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - (workInProgress.lanes = 4194304), + (workInProgress.lanes = 8388608), current ); pushPrimaryTreeSuspenseHandler(workInProgress); @@ -4541,13 +4542,15 @@ function updateDehydratedSuspenseComponent( nextProps = workInProgressRoot; if (null !== nextProps) { switch (renderLanes & -renderLanes) { - case 4: - didSuspend = 2; + case 2: + didSuspend = 1; break; - case 16: - didSuspend = 8; + case 8: + didSuspend = 4; + break; + case 32: + didSuspend = 16; break; - case 64: case 128: case 256: case 512: @@ -4568,7 +4571,7 @@ function updateDehydratedSuspenseComponent( case 16777216: case 33554432: case 67108864: - didSuspend = 32; + didSuspend = 64; break; case 536870912: didSuspend = 268435456; @@ -5273,7 +5276,7 @@ function completeWork(current, workInProgress, renderLanes) { ((workInProgress.flags |= 64), (newProps = !0), cutOffTailIfNeeded(instance, !1), - (workInProgress.lanes = 4194304)); + (workInProgress.lanes = 8388608)); } else { if (!newProps) @@ -5301,7 +5304,7 @@ function completeWork(current, workInProgress, renderLanes) { ((workInProgress.flags |= 64), (newProps = !0), cutOffTailIfNeeded(instance, !1), - (workInProgress.lanes = 4194304)); + (workInProgress.lanes = 8388608)); instance.isBackwards ? ((JSCompiler_inline_result.sibling = workInProgress.child), (workInProgress.child = JSCompiler_inline_result)) @@ -7423,7 +7426,7 @@ function requestEventTime() { : (currentEventTime = now()); } function requestUpdateLane(fiber) { - if (0 === (fiber.mode & 1)) return 1; + if (0 === (fiber.mode & 1)) return 2; if ( !deferRenderPhaseUpdateToNextBatch && 0 !== (executionContext & 2) && @@ -7437,7 +7440,7 @@ function requestUpdateLane(fiber) { currentEventTransitionLane ); fiber = currentUpdatePriority; - return 0 !== fiber ? fiber : 16; + return 0 !== fiber ? fiber : 32; } function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { 2 === workInProgressSuspendedReason && @@ -7469,7 +7472,7 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { markRootSuspended$1(root, workInProgressRootRenderLanes); } ensureRootIsScheduled(root, eventTime); - 1 === lane && + 2 === lane && 0 === executionContext && 0 === (fiber.mode & 1) && ((workInProgressRootRenderTargetTime = now() + 500), @@ -7482,7 +7485,7 @@ function ensureRootIsScheduled(root, currentTime) { suspendedLanes = root.suspendedLanes, pingedLanes = root.pingedLanes, expirationTimes = root.expirationTimes, - lanes = root.pendingLanes & -130023425; + lanes = root.pendingLanes & -125829121; 0 < lanes; ) { @@ -7508,7 +7511,7 @@ function ensureRootIsScheduled(root, currentTime) { root.callbackPriority !== currentTime) ) { null != existingCallbackNode && cancelCallback(existingCallbackNode); - if (1 === currentTime) + if (0 !== (currentTime & 3)) 0 === root.tag ? ((existingCallbackNode = performSyncWorkOnRoot.bind(null, root)), (includesLegacySyncCallbacks = !0), @@ -7523,13 +7526,13 @@ function ensureRootIsScheduled(root, currentTime) { (existingCallbackNode = null); else { switch (lanesToEventPriority(suspendedLanes)) { - case 1: + case 2: existingCallbackNode = ImmediatePriority; break; - case 4: + case 8: existingCallbackNode = UserBlockingPriority; break; - case 16: + case 32: existingCallbackNode = NormalPriority; break; case 536870912: @@ -7632,7 +7635,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) { case 3: markRootSuspended$1(root, lanes); if ( - (lanes & 130023424) === lanes && + (lanes & 125829120) === lanes && ((didTimeout = globalMostRecentFallbackTime + 500 - now()), 10 < didTimeout) ) { @@ -7663,7 +7666,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) { break; case 4: markRootSuspended$1(root, lanes); - if ((lanes & 4194240) === lanes) break; + if ((lanes & 8388480) === lanes) break; didTimeout = root.eventTimes; for (originallyAttemptedLanes = -1; 0 < lanes; ) (errorRetryLanes$127 = 31 - clz32(lanes)), @@ -7806,7 +7809,7 @@ function performSyncWorkOnRoot(root) { if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); flushPassiveEffects(); var lanes = getNextLanes(root, 0); - if (0 === (lanes & 1)) return ensureRootIsScheduled(root, now()), null; + if (0 === (lanes & 3)) return ensureRootIsScheduled(root, now()), null; var exitStatus = renderRootSync(root, lanes); if (0 !== root.tag && 2 === exitStatus) { var originallyAttemptedLanes = lanes, @@ -7900,7 +7903,7 @@ function handleThrow(root, thrownValue) { } function shouldAttemptToSuspendUntilDataResolves() { if ( - (workInProgressRootRenderLanes & 130023424) === + (workInProgressRootRenderLanes & 125829120) === workInProgressRootRenderLanes ) return !0; @@ -7910,7 +7913,7 @@ function shouldAttemptToSuspendUntilDataResolves() { ) return !1; if ( - (workInProgressRootRenderLanes & 4194240) === + (workInProgressRootRenderLanes & 8388480) === workInProgressRootRenderLanes ) { var suspenseHandler = suspenseHandlerStackCursor.current; @@ -8173,11 +8176,11 @@ function unwindSuspendedUnitOfWork(unitOfWork, thrownValue) { if (1 === unitOfWork.tag) if (null === unitOfWork.alternate) unitOfWork.tag = 17; else { - var update = createUpdate(-1, 1); + var update = createUpdate(-1, 2); update.tag = 2; - enqueueUpdate$1(unitOfWork, update, 1); + enqueueUpdate$1(unitOfWork, update, 2); } - unitOfWork.lanes |= 1; + unitOfWork.lanes |= 2; } else (suspenseBoundary.flags |= 32768), @@ -8316,7 +8319,7 @@ function commitRoot(root, recoverableErrors, transitions) { prevTransition = ReactCurrentBatchConfig$2.transition; try { (ReactCurrentBatchConfig$2.transition = null), - (currentUpdatePriority = 1), + (currentUpdatePriority = 2), commitRootImpl( root, recoverableErrors, @@ -8367,7 +8370,7 @@ function commitRootImpl( transitions = ReactCurrentBatchConfig$2.transition; ReactCurrentBatchConfig$2.transition = null; var previousPriority = currentUpdatePriority; - currentUpdatePriority = 1; + currentUpdatePriority = 2; var prevExecutionContext = executionContext; executionContext |= 4; ReactCurrentOwner$2.current = null; @@ -8406,11 +8409,11 @@ function commitRootImpl( (root = firstUncaughtError), (firstUncaughtError = null), root); - 0 !== (pendingPassiveEffectsLanes & 1) && + 0 !== (pendingPassiveEffectsLanes & 3) && 0 !== root.tag && flushPassiveEffects(); remainingLanes = root.pendingLanes; - 0 !== (remainingLanes & 1) + 0 !== (remainingLanes & 3) ? root === rootWithNestedUpdates ? nestedUpdateCount++ : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root)) @@ -8430,7 +8433,7 @@ function flushPassiveEffects() { remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes); - renderPriority = 16 > renderPriority ? 16 : renderPriority; + renderPriority = 32 > renderPriority ? 32 : renderPriority; var prevTransition = ReactCurrentBatchConfig$2.transition, previousPriority = currentUpdatePriority; try { @@ -8486,11 +8489,11 @@ function flushPassiveEffectsImpl() { } function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) { sourceFiber = createCapturedValueAtFiber(error, sourceFiber); - sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 1); - rootFiber = enqueueUpdate$1(rootFiber, sourceFiber, 1); + sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 2); + rootFiber = enqueueUpdate$1(rootFiber, sourceFiber, 2); sourceFiber = requestEventTime(); null !== rootFiber && - (markRootUpdated(rootFiber, 1, sourceFiber), + (markRootUpdated(rootFiber, 2, sourceFiber), ensureRootIsScheduled(rootFiber, sourceFiber)); } function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) { @@ -8524,16 +8527,16 @@ function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) { sourceFiber = createClassErrorUpdate( nearestMountedAncestor, sourceFiber, - 1 + 2 ); nearestMountedAncestor = enqueueUpdate$1( nearestMountedAncestor, sourceFiber, - 1 + 2 ); sourceFiber = requestEventTime(); null !== nearestMountedAncestor && - (markRootUpdated(nearestMountedAncestor, 1, sourceFiber), + (markRootUpdated(nearestMountedAncestor, 2, sourceFiber), ensureRootIsScheduled(nearestMountedAncestor, sourceFiber)); break; } @@ -8566,7 +8569,7 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) { (workInProgressRootRenderLanes & pingedLanes) === pingedLanes && (4 === workInProgressRootExitStatus || (3 === workInProgressRootExitStatus && - (workInProgressRootRenderLanes & 130023424) === + (workInProgressRootRenderLanes & 125829120) === workInProgressRootRenderLanes && 500 > now() - globalMostRecentFallbackTime) ? prepareFreshStack(root, 0) @@ -8576,10 +8579,10 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) { function retryTimedOutBoundary(boundaryFiber, retryLane) { 0 === retryLane && (0 === (boundaryFiber.mode & 1) - ? (retryLane = 1) + ? (retryLane = 2) : ((retryLane = nextRetryLane), (nextRetryLane <<= 1), - 0 === (nextRetryLane & 130023424) && (nextRetryLane = 4194304))); + 0 === (nextRetryLane & 125829120) && (nextRetryLane = 8388608))); var eventTime = requestEventTime(); boundaryFiber = enqueueConcurrentRenderForLane(boundaryFiber, retryLane); null !== boundaryFiber && @@ -9458,7 +9461,7 @@ var slice = Array.prototype.slice, return null; }, bundleType: 0, - version: "18.3.0-www-modern-2655c9354-20221121", + version: "18.3.0-www-modern-8a23def32-20221128", rendererPackageName: "react-art" }; var internals$jscomp$inline_1324 = { @@ -9489,7 +9492,7 @@ var internals$jscomp$inline_1324 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-next-2655c9354-20221121" + reconcilerVersion: "18.3.0-next-8a23def32-20221128" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1325 = __REACT_DEVTOOLS_GLOBAL_HOOK__; diff --git a/compiled/facebook-www/ReactDOM-dev.classic.js b/compiled/facebook-www/ReactDOM-dev.classic.js index 36e421deb9..0fc9bd5cda 100644 --- a/compiled/facebook-www/ReactDOM-dev.classic.js +++ b/compiled/facebook-www/ReactDOM-dev.classic.js @@ -7988,91 +7988,91 @@ var NoLanes = var NoLane = /* */ 0; +var SyncHydrationLane = + /* */ + 1; var SyncLane = /* */ - 1; + 2; var InputContinuousHydrationLane = /* */ - 2; + 4; var InputContinuousLane = /* */ - 4; + 8; var DefaultHydrationLane = /* */ - 8; + 16; var DefaultLane = /* */ - 16; + 32; var TransitionHydrationLane = /* */ - 32; + 64; var TransitionLanes = /* */ - 4194240; + 8388480; var TransitionLane1 = /* */ - 64; + 128; var TransitionLane2 = /* */ - 128; + 256; var TransitionLane3 = /* */ - 256; + 512; var TransitionLane4 = /* */ - 512; + 1024; var TransitionLane5 = /* */ - 1024; + 2048; var TransitionLane6 = /* */ - 2048; + 4096; var TransitionLane7 = /* */ - 4096; + 8192; var TransitionLane8 = /* */ - 8192; + 16384; var TransitionLane9 = /* */ - 16384; + 32768; var TransitionLane10 = /* */ - 32768; + 65536; var TransitionLane11 = /* */ - 65536; + 131072; var TransitionLane12 = /* */ - 131072; + 262144; var TransitionLane13 = /* */ - 262144; + 524288; var TransitionLane14 = /* */ - 524288; + 1048576; var TransitionLane15 = /* */ - 1048576; + 2097152; var TransitionLane16 = /* */ - 2097152; + 4194304; var RetryLanes = /* */ - 130023424; + 125829120; var RetryLane1 = /* */ - 4194304; + 8388608; var RetryLane2 = /* */ - 8388608; + 16777216; var RetryLane3 = - /* */ - 16777216; -var RetryLane4 = /* */ 33554432; -var RetryLane5 = +var RetryLane4 = /* */ 67108864; var SomeRetryLane = RetryLane1; @@ -8095,6 +8095,10 @@ var OffscreenLane = function getLabelForLane(lane) { if (enableSchedulingProfiler) { + if (lane & SyncHydrationLane) { + return "SyncHydrationLane"; + } + if (lane & SyncLane) { return "Sync"; } @@ -8150,6 +8154,9 @@ var nextRetryLane = RetryLane1; function getHighestPriorityLanes(lanes) { switch (getHighestPriorityLane(lanes)) { + case SyncHydrationLane: + return SyncHydrationLane; + case SyncLane: return SyncLane; @@ -8190,7 +8197,6 @@ function getHighestPriorityLanes(lanes) { case RetryLane2: case RetryLane3: case RetryLane4: - case RetryLane5: return lanes & RetryLanes; case SelectiveHydrationLane: @@ -8351,6 +8357,7 @@ function getMostRecentEventTime(root, lanes) { function computeExpirationTime(lane, currentTime) { switch (lane) { + case SyncHydrationLane: case SyncLane: case InputContinuousHydrationLane: case InputContinuousLane: @@ -8390,7 +8397,6 @@ function computeExpirationTime(lane, currentTime) { case RetryLane2: case RetryLane3: case RetryLane4: - case RetryLane5: // TODO: Retries should be allowed to expire if they are CPU bound for // too long, but when I made this change it caused a spike in browser // crashes. There must be some other underlying bug; not super urgent but @@ -8478,6 +8484,9 @@ function getLanesToRetrySynchronouslyOnError(root, originallyAttemptedLanes) { return NoLanes; } +function includesSyncLane(lanes) { + return (lanes & (SyncLane | SyncHydrationLane)) !== NoLanes; +} function includesNonIdleWork(lanes) { return (lanes & NonIdleLanes) !== NoLanes; } @@ -8485,6 +8494,8 @@ function includesOnlyRetries(lanes) { return (lanes & RetryLanes) === lanes; } function includesOnlyNonUrgentLanes(lanes) { + // TODO: Should hydration lanes be included here? This function is only + // used in `updateDeferredValueImpl`. var UrgentLanes = SyncLane | InputContinuousLane | DefaultLane; return (lanes & UrgentLanes) === NoLanes; } @@ -8726,6 +8737,10 @@ function getBumpedLaneForHydration(root, renderLanes) { var lane; switch (renderLane) { + case SyncLane: + lane = SyncHydrationLane; + break; + case InputContinuousLane: lane = InputContinuousHydrationLane; break; @@ -8754,7 +8769,6 @@ function getBumpedLaneForHydration(root, renderLanes) { case RetryLane2: case RetryLane3: case RetryLane4: - case RetryLane5: lane = TransitionHydrationLane; break; @@ -38330,7 +38344,7 @@ function ensureRootIsScheduled(root, currentTime) { // TODO: Temporary until we confirm this warning is not fired. if ( existingCallbackNode == null && - existingCallbackPriority !== SyncLane + !includesSyncLane(existingCallbackPriority) ) { error( "Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue." @@ -38348,7 +38362,7 @@ function ensureRootIsScheduled(root, currentTime) { var newCallbackNode; - if (newCallbackPriority === SyncLane) { + if (includesSyncLane(newCallbackPriority)) { // Special case: Sync React callbacks are scheduled on a special // internal queue if (root.tag === LegacyRoot) { @@ -38905,7 +38919,7 @@ function performSyncWorkOnRoot(root) { flushPassiveEffects(); var lanes = getNextLanes(root, NoLanes); - if (!includesSomeLane(lanes, SyncLane)) { + if (!includesSyncLane(lanes)) { // There's no remaining sync work left. ensureRootIsScheduled(root, now()); return null; @@ -40290,16 +40304,13 @@ function commitRootImpl( // currently schedule the callback in multiple places, will wait until those // are consolidated. - if ( - includesSomeLane(pendingPassiveEffectsLanes, SyncLane) && - root.tag !== LegacyRoot - ) { + if (includesSyncLane(pendingPassiveEffectsLanes) && root.tag !== LegacyRoot) { flushPassiveEffects(); } // Read this again, since a passive effect might have updated it remainingLanes = root.pendingLanes; - if (includesSomeLane(remainingLanes, SyncLane)) { + if (includesSyncLane(remainingLanes)) { { markNestedUpdateScheduled(); } // Count the number of times the root synchronously re-renders without @@ -42570,7 +42581,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-classic-2655c9354-20221121"; +var ReactVersion = "18.3.0-www-classic-8a23def32-20221128"; function createPortal( children, diff --git a/compiled/facebook-www/ReactDOM-dev.modern.js b/compiled/facebook-www/ReactDOM-dev.modern.js index 9db64dcb6e..e48c41a509 100644 --- a/compiled/facebook-www/ReactDOM-dev.modern.js +++ b/compiled/facebook-www/ReactDOM-dev.modern.js @@ -6157,91 +6157,91 @@ var NoLanes = var NoLane = /* */ 0; +var SyncHydrationLane = + /* */ + 1; var SyncLane = /* */ - 1; + 2; var InputContinuousHydrationLane = /* */ - 2; + 4; var InputContinuousLane = /* */ - 4; + 8; var DefaultHydrationLane = /* */ - 8; + 16; var DefaultLane = /* */ - 16; + 32; var TransitionHydrationLane = /* */ - 32; + 64; var TransitionLanes = /* */ - 4194240; + 8388480; var TransitionLane1 = /* */ - 64; + 128; var TransitionLane2 = /* */ - 128; + 256; var TransitionLane3 = /* */ - 256; + 512; var TransitionLane4 = /* */ - 512; + 1024; var TransitionLane5 = /* */ - 1024; + 2048; var TransitionLane6 = /* */ - 2048; + 4096; var TransitionLane7 = /* */ - 4096; + 8192; var TransitionLane8 = /* */ - 8192; + 16384; var TransitionLane9 = /* */ - 16384; + 32768; var TransitionLane10 = /* */ - 32768; + 65536; var TransitionLane11 = /* */ - 65536; + 131072; var TransitionLane12 = /* */ - 131072; + 262144; var TransitionLane13 = /* */ - 262144; + 524288; var TransitionLane14 = /* */ - 524288; + 1048576; var TransitionLane15 = /* */ - 1048576; + 2097152; var TransitionLane16 = /* */ - 2097152; + 4194304; var RetryLanes = /* */ - 130023424; + 125829120; var RetryLane1 = /* */ - 4194304; + 8388608; var RetryLane2 = /* */ - 8388608; + 16777216; var RetryLane3 = - /* */ - 16777216; -var RetryLane4 = /* */ 33554432; -var RetryLane5 = +var RetryLane4 = /* */ 67108864; var SomeRetryLane = RetryLane1; @@ -6264,6 +6264,10 @@ var OffscreenLane = function getLabelForLane(lane) { if (enableSchedulingProfiler) { + if (lane & SyncHydrationLane) { + return "SyncHydrationLane"; + } + if (lane & SyncLane) { return "Sync"; } @@ -6319,6 +6323,9 @@ var nextRetryLane = RetryLane1; function getHighestPriorityLanes(lanes) { switch (getHighestPriorityLane(lanes)) { + case SyncHydrationLane: + return SyncHydrationLane; + case SyncLane: return SyncLane; @@ -6359,7 +6366,6 @@ function getHighestPriorityLanes(lanes) { case RetryLane2: case RetryLane3: case RetryLane4: - case RetryLane5: return lanes & RetryLanes; case SelectiveHydrationLane: @@ -6520,6 +6526,7 @@ function getMostRecentEventTime(root, lanes) { function computeExpirationTime(lane, currentTime) { switch (lane) { + case SyncHydrationLane: case SyncLane: case InputContinuousHydrationLane: case InputContinuousLane: @@ -6559,7 +6566,6 @@ function computeExpirationTime(lane, currentTime) { case RetryLane2: case RetryLane3: case RetryLane4: - case RetryLane5: // TODO: Retries should be allowed to expire if they are CPU bound for // too long, but when I made this change it caused a spike in browser // crashes. There must be some other underlying bug; not super urgent but @@ -6647,6 +6653,9 @@ function getLanesToRetrySynchronouslyOnError(root, originallyAttemptedLanes) { return NoLanes; } +function includesSyncLane(lanes) { + return (lanes & (SyncLane | SyncHydrationLane)) !== NoLanes; +} function includesNonIdleWork(lanes) { return (lanes & NonIdleLanes) !== NoLanes; } @@ -6654,6 +6663,8 @@ function includesOnlyRetries(lanes) { return (lanes & RetryLanes) === lanes; } function includesOnlyNonUrgentLanes(lanes) { + // TODO: Should hydration lanes be included here? This function is only + // used in `updateDeferredValueImpl`. var UrgentLanes = SyncLane | InputContinuousLane | DefaultLane; return (lanes & UrgentLanes) === NoLanes; } @@ -6895,6 +6906,10 @@ function getBumpedLaneForHydration(root, renderLanes) { var lane; switch (renderLane) { + case SyncLane: + lane = SyncHydrationLane; + break; + case InputContinuousLane: lane = InputContinuousHydrationLane; break; @@ -6923,7 +6938,6 @@ function getBumpedLaneForHydration(root, renderLanes) { case RetryLane2: case RetryLane3: case RetryLane4: - case RetryLane5: lane = TransitionHydrationLane; break; @@ -38054,7 +38068,7 @@ function ensureRootIsScheduled(root, currentTime) { // TODO: Temporary until we confirm this warning is not fired. if ( existingCallbackNode == null && - existingCallbackPriority !== SyncLane + !includesSyncLane(existingCallbackPriority) ) { error( "Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue." @@ -38072,7 +38086,7 @@ function ensureRootIsScheduled(root, currentTime) { var newCallbackNode; - if (newCallbackPriority === SyncLane) { + if (includesSyncLane(newCallbackPriority)) { // Special case: Sync React callbacks are scheduled on a special // internal queue if (root.tag === LegacyRoot) { @@ -38629,7 +38643,7 @@ function performSyncWorkOnRoot(root) { flushPassiveEffects(); var lanes = getNextLanes(root, NoLanes); - if (!includesSomeLane(lanes, SyncLane)) { + if (!includesSyncLane(lanes)) { // There's no remaining sync work left. ensureRootIsScheduled(root, now()); return null; @@ -40014,16 +40028,13 @@ function commitRootImpl( // currently schedule the callback in multiple places, will wait until those // are consolidated. - if ( - includesSomeLane(pendingPassiveEffectsLanes, SyncLane) && - root.tag !== LegacyRoot - ) { + if (includesSyncLane(pendingPassiveEffectsLanes) && root.tag !== LegacyRoot) { flushPassiveEffects(); } // Read this again, since a passive effect might have updated it remainingLanes = root.pendingLanes; - if (includesSomeLane(remainingLanes, SyncLane)) { + if (includesSyncLane(remainingLanes)) { { markNestedUpdateScheduled(); } // Count the number of times the root synchronously re-renders without @@ -42294,7 +42305,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-modern-2655c9354-20221121"; +var ReactVersion = "18.3.0-www-modern-8a23def32-20221128"; function createPortal( children, diff --git a/compiled/facebook-www/ReactDOM-prod.classic.js b/compiled/facebook-www/ReactDOM-prod.classic.js index 1ac910c6fd..15a574243f 100644 --- a/compiled/facebook-www/ReactDOM-prod.classic.js +++ b/compiled/facebook-www/ReactDOM-prod.classic.js @@ -1583,8 +1583,8 @@ function clz32Fallback(x) { x >>>= 0; return 0 === x ? 32 : (31 - ((log(x) / LN2) | 0)) | 0; } -var nextTransitionLane = 64, - nextRetryLane = 4194304; +var nextTransitionLane = 128, + nextRetryLane = 8388608; function getHighestPriorityLanes(lanes) { switch (lanes & -lanes) { case 1: @@ -1600,6 +1600,7 @@ function getHighestPriorityLanes(lanes) { case 32: return 32; case 64: + return 64; case 128: case 256: case 512: @@ -1615,13 +1616,13 @@ function getHighestPriorityLanes(lanes) { case 524288: case 1048576: case 2097152: - return lanes & 4194240; case 4194304: + return lanes & 8388480; case 8388608: case 16777216: case 33554432: case 67108864: - return lanes & 130023424; + return lanes & 125829120; case 134217728: return 134217728; case 268435456: @@ -1662,12 +1663,12 @@ function getNextLanes(root, wipLanes) { ((suspendedLanes = nextLanes & -nextLanes), (pingedLanes = wipLanes & -wipLanes), suspendedLanes >= pingedLanes || - (16 === suspendedLanes && 0 !== (pingedLanes & 4194240))) + (32 === suspendedLanes && 0 !== (pingedLanes & 8388480))) ) return wipLanes; 0 === (root.current.mode & 32) && - 0 !== (nextLanes & 4) && - (nextLanes |= pendingLanes & 16); + 0 !== (nextLanes & 8) && + (nextLanes |= pendingLanes & 32); wipLanes = root.entangledLanes; if (0 !== wipLanes) for (root = root.entanglements, wipLanes &= nextLanes; 0 < wipLanes; ) @@ -1682,8 +1683,8 @@ function computeExpirationTime(lane, currentTime) { case 1: case 2: case 4: - return currentTime + 250; case 8: + return currentTime + 250; case 16: case 32: case 64: @@ -1702,8 +1703,8 @@ function computeExpirationTime(lane, currentTime) { case 524288: case 1048576: case 2097152: - return currentTime + 5e3; case 4194304: + return currentTime + 5e3; case 8388608: case 16777216: case 33554432: @@ -1723,7 +1724,7 @@ function markStarvedLanesAsExpired(root, currentTime) { var suspendedLanes = root.suspendedLanes, pingedLanes = root.pingedLanes, expirationTimes = root.expirationTimes, - lanes = root.pendingLanes & -130023425; + lanes = root.pendingLanes & -125829121; 0 < lanes; ) { @@ -1743,12 +1744,12 @@ function getLanesToRetrySynchronouslyOnError(root, originallyAttemptedLanes) { return 0 !== root ? root : root & 1073741824 ? 1073741824 : 0; } function includesBlockingLane(root, lanes) { - return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 30); + return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 60); } function claimNextTransitionLane() { var lane = nextTransitionLane; nextTransitionLane <<= 1; - 0 === (nextTransitionLane & 4194240) && (nextTransitionLane = 64); + 0 === (nextTransitionLane & 8388480) && (nextTransitionLane = 128); return lane; } function createLaneMap(initial) { @@ -1839,13 +1840,13 @@ function runWithPriority(priority, fn) { } function lanesToEventPriority(lanes) { lanes &= -lanes; - return 1 < lanes - ? 4 < lanes + return 2 < lanes + ? 8 < lanes ? 0 !== (lanes & 268435455) - ? 16 + ? 32 : 536870912 - : 4 - : 1; + : 8 + : 2; } var Internals = { usingClientEntryPoint: !1, @@ -4930,10 +4931,10 @@ function createEventListenerWrapperWithPriority( eventSystemFlags ) { switch (getEventPriority(domEventName)) { - case 1: + case 2: var listenerWrapper = dispatchDiscreteEvent; break; - case 4: + case 8: listenerWrapper = dispatchContinuousEvent; break; default: @@ -4956,7 +4957,7 @@ function dispatchDiscreteEvent( prevTransition = ReactCurrentBatchConfig.transition; ReactCurrentBatchConfig.transition = null; try { - (currentUpdatePriority = 1), + (currentUpdatePriority = 2), dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); } finally { (currentUpdatePriority = previousPriority), @@ -4973,7 +4974,7 @@ function dispatchContinuousEvent( prevTransition = ReactCurrentBatchConfig.transition; ReactCurrentBatchConfig.transition = null; try { - (currentUpdatePriority = 4), + (currentUpdatePriority = 8), dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); } finally { (currentUpdatePriority = previousPriority), @@ -5195,7 +5196,7 @@ function getEventPriority(domEventName) { case "popstate": case "select": case "selectstart": - return 1; + return 2; case "drag": case "dragenter": case "dragexit": @@ -5215,23 +5216,23 @@ function getEventPriority(domEventName) { case "mouseleave": case "pointerenter": case "pointerleave": - return 4; + return 8; case "message": switch (getCurrentPriorityLevel()) { case ImmediatePriority: - return 1; + return 2; case UserBlockingPriority: - return 4; + return 8; case NormalPriority: case LowPriority: - return 16; + return 32; case IdlePriority: return 536870912; default: - return 16; + return 32; } default: - return 16; + return 32; } } var emptyContextObject = {}, @@ -5329,7 +5330,7 @@ function flushSyncCallbacks() { previousUpdatePriority = currentUpdatePriority; try { var queue = syncQueue; - for (currentUpdatePriority = 1; i < queue.length; i++) { + for (currentUpdatePriority = 2; i < queue.length; i++) { var callback = queue[i]; do callback = callback(!0); while (null !== callback); @@ -6739,7 +6740,7 @@ function enqueueUpdate$1(fiber, update, lane) { } function entangleTransitions(root, fiber, lane) { fiber = fiber.updateQueue; - if (null !== fiber && ((fiber = fiber.shared), 0 !== (lane & 4194240))) { + if (null !== fiber && ((fiber = fiber.shared), 0 !== (lane & 8388480))) { var queueLanes = fiber.lanes; queueLanes &= root.pendingLanes; lane |= queueLanes; @@ -7588,8 +7589,8 @@ function checkIfSnapshotChanged(inst) { } } function forceStoreRerender(fiber) { - var root = enqueueConcurrentRenderForLane(fiber, 1); - null !== root && scheduleUpdateOnFiber(root, fiber, 1, -1); + var root = enqueueConcurrentRenderForLane(fiber, 2); + null !== root && scheduleUpdateOnFiber(root, fiber, 2, -1); } function mountState(initialState) { var hook = mountWorkInProgressHook(); @@ -7745,7 +7746,7 @@ function updateMemo(nextCreate, deps) { return nextCreate; } function updateDeferredValueImpl(hook, prevValue, value) { - if (0 === (renderLanes & 21)) + if (0 === (renderLanes & 42)) return ( hook.baseState && ((hook.baseState = !1), (didReceiveUpdate = !0)), (hook.memoizedState = value) @@ -7760,7 +7761,7 @@ function updateDeferredValueImpl(hook, prevValue, value) { function startTransition(setPending, callback, options) { var previousPriority = currentUpdatePriority; currentUpdatePriority = - 0 !== previousPriority && 4 > previousPriority ? previousPriority : 4; + 0 !== previousPriority && 8 > previousPriority ? previousPriority : 8; setPending(!0); var prevTransition = ReactCurrentBatchConfig$2.transition; ReactCurrentBatchConfig$2.transition = {}; @@ -7879,7 +7880,7 @@ function enqueueRenderPhaseUpdate(queue, update) { queue.pending = update; } function entangleTransitionUpdate(root, queue, lane) { - if (0 !== (lane & 4194240)) { + if (0 !== (lane & 8388480)) { var queueLanes = queue.lanes; queueLanes &= root.pendingLanes; lane |= queueLanes; @@ -8405,10 +8406,10 @@ function markSuspenseBoundaryShouldCapture( 1 === sourceFiber.tag && (null === sourceFiber.alternate ? (sourceFiber.tag = 17) - : ((returnFiber = createUpdate(-1, 1)), + : ((returnFiber = createUpdate(-1, 2)), (returnFiber.tag = 2), - enqueueUpdate$1(sourceFiber, returnFiber, 1))), - (sourceFiber.lanes |= 1)), + enqueueUpdate$1(sourceFiber, returnFiber, 2))), + (sourceFiber.lanes |= 2)), suspenseBoundary ); suspenseBoundary.flags |= 32768; @@ -9179,9 +9180,9 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ) return ( 0 === (workInProgress.mode & 1) - ? (workInProgress.lanes = 1) + ? (workInProgress.lanes = 2) : "$!" === current.data - ? (workInProgress.lanes = 8) + ? (workInProgress.lanes = 16) : (workInProgress.lanes = 1073741824), null ); @@ -9233,7 +9234,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - (workInProgress.lanes = 4194304), + (workInProgress.lanes = 8388608), current ); pushPrimaryTreeSuspenseHandler(workInProgress); @@ -9488,13 +9489,15 @@ function updateDehydratedSuspenseComponent( nextProps = workInProgressRoot; if (null !== nextProps) { switch (renderLanes & -renderLanes) { - case 4: - suspenseInstance = 2; + case 2: + suspenseInstance = 1; break; - case 16: - suspenseInstance = 8; + case 8: + suspenseInstance = 4; + break; + case 32: + suspenseInstance = 16; break; - case 64: case 128: case 256: case 512: @@ -9515,7 +9518,7 @@ function updateDehydratedSuspenseComponent( case 16777216: case 33554432: case 67108864: - suspenseInstance = 32; + suspenseInstance = 64; break; case 536870912: suspenseInstance = 268435456; @@ -10466,7 +10469,7 @@ function completeWork(current, workInProgress, renderLanes) { ((workInProgress.flags |= 64), (newProps = !0), cutOffTailIfNeeded(type, !1), - (workInProgress.lanes = 4194304)); + (workInProgress.lanes = 8388608)); } else { if (!newProps) @@ -10495,7 +10498,7 @@ function completeWork(current, workInProgress, renderLanes) { ((workInProgress.flags |= 64), (newProps = !0), cutOffTailIfNeeded(type, !1), - (workInProgress.lanes = 4194304)); + (workInProgress.lanes = 8388608)); type.isBackwards ? ((JSCompiler_inline_result.sibling = workInProgress.child), (workInProgress.child = JSCompiler_inline_result)) @@ -12997,7 +13000,7 @@ function requestEventTime() { : (currentEventTime = now()); } function requestUpdateLane(fiber) { - if (0 === (fiber.mode & 1)) return 1; + if (0 === (fiber.mode & 1)) return 2; if ( !deferRenderPhaseUpdateToNextBatch && 0 !== (executionContext & 2) && @@ -13013,7 +13016,7 @@ function requestUpdateLane(fiber) { fiber = currentUpdatePriority; if (0 !== fiber) return fiber; fiber = window.event; - fiber = void 0 === fiber ? 16 : getEventPriority(fiber.type); + fiber = void 0 === fiber ? 32 : getEventPriority(fiber.type); return fiber; } function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { @@ -13046,7 +13049,7 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { markRootSuspended$1(root, workInProgressRootRenderLanes); } ensureRootIsScheduled(root, eventTime); - 1 === lane && + 2 === lane && 0 === executionContext && 0 === (fiber.mode & 1) && (resetRenderTimer(), includesLegacySyncCallbacks && flushSyncCallbacks()); @@ -13068,7 +13071,7 @@ function ensureRootIsScheduled(root, currentTime) { root.callbackPriority !== currentTime) ) { null != existingCallbackNode && cancelCallback(existingCallbackNode); - if (1 === currentTime) + if (0 !== (currentTime & 3)) 0 === root.tag ? scheduleLegacySyncCallback(performSyncWorkOnRoot.bind(null, root)) : scheduleSyncCallback(performSyncWorkOnRoot.bind(null, root)), @@ -13078,13 +13081,13 @@ function ensureRootIsScheduled(root, currentTime) { (existingCallbackNode = null); else { switch (lanesToEventPriority(nextLanes)) { - case 1: + case 2: existingCallbackNode = ImmediatePriority; break; - case 4: + case 8: existingCallbackNode = UserBlockingPriority; break; - case 16: + case 32: existingCallbackNode = NormalPriority; break; case 536870912: @@ -13187,7 +13190,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) { case 3: markRootSuspended$1(root, lanes); if ( - (lanes & 130023424) === lanes && + (lanes & 125829120) === lanes && ((didTimeout = globalMostRecentFallbackTime + 500 - now()), 10 < didTimeout) ) { @@ -13218,7 +13221,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) { break; case 4: markRootSuspended$1(root, lanes); - if ((lanes & 4194240) === lanes) break; + if ((lanes & 8388480) === lanes) break; didTimeout = root.eventTimes; for (originallyAttemptedLanes = -1; 0 < lanes; ) (errorRetryLanes$215 = 31 - clz32(lanes)), @@ -13360,7 +13363,7 @@ function performSyncWorkOnRoot(root) { if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); flushPassiveEffects(); var lanes = getNextLanes(root, 0); - if (0 === (lanes & 1)) return ensureRootIsScheduled(root, now()), null; + if (0 === (lanes & 3)) return ensureRootIsScheduled(root, now()), null; var exitStatus = renderRootSync(root, lanes); if (0 !== root.tag && 2 === exitStatus) { var originallyAttemptedLanes = lanes, @@ -13420,7 +13423,7 @@ function flushSync(fn) { try { if ( ((ReactCurrentBatchConfig$3.transition = null), - (currentUpdatePriority = 1), + (currentUpdatePriority = 2), fn) ) return fn(); @@ -13489,7 +13492,7 @@ function handleThrow(root, thrownValue) { } function shouldAttemptToSuspendUntilDataResolves() { if ( - (workInProgressRootRenderLanes & 130023424) === + (workInProgressRootRenderLanes & 125829120) === workInProgressRootRenderLanes ) return !0; @@ -13499,7 +13502,7 @@ function shouldAttemptToSuspendUntilDataResolves() { ) return !1; if ( - (workInProgressRootRenderLanes & 4194240) === + (workInProgressRootRenderLanes & 8388480) === workInProgressRootRenderLanes ) { var suspenseHandler = suspenseHandlerStackCursor.current; @@ -13912,7 +13915,7 @@ function commitRoot(root, recoverableErrors, transitions) { prevTransition = ReactCurrentBatchConfig$3.transition; try { (ReactCurrentBatchConfig$3.transition = null), - (currentUpdatePriority = 1), + (currentUpdatePriority = 2), commitRootImpl( root, recoverableErrors, @@ -13963,7 +13966,7 @@ function commitRootImpl( transitions = ReactCurrentBatchConfig$3.transition; ReactCurrentBatchConfig$3.transition = null; var previousPriority = currentUpdatePriority; - currentUpdatePriority = 1; + currentUpdatePriority = 2; var prevExecutionContext = executionContext; executionContext |= 4; ReactCurrentOwner$2.current = null; @@ -14012,11 +14015,11 @@ function commitRootImpl( (root = firstUncaughtError), (firstUncaughtError = null), root); - 0 !== (pendingPassiveEffectsLanes & 1) && + 0 !== (pendingPassiveEffectsLanes & 3) && 0 !== root.tag && flushPassiveEffects(); remainingLanes = root.pendingLanes; - 0 !== (remainingLanes & 1) + 0 !== (remainingLanes & 3) ? root === rootWithNestedUpdates ? nestedUpdateCount++ : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root)) @@ -14053,7 +14056,7 @@ function flushPassiveEffects() { remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes); - renderPriority = 16 > renderPriority ? 16 : renderPriority; + renderPriority = 32 > renderPriority ? 32 : renderPriority; var prevTransition = ReactCurrentBatchConfig$3.transition, previousPriority = currentUpdatePriority; try { @@ -14109,11 +14112,11 @@ function flushPassiveEffectsImpl() { } function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) { sourceFiber = createCapturedValueAtFiber(error, sourceFiber); - sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 1); - rootFiber = enqueueUpdate$1(rootFiber, sourceFiber, 1); + sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 2); + rootFiber = enqueueUpdate$1(rootFiber, sourceFiber, 2); sourceFiber = requestEventTime(); null !== rootFiber && - (markRootUpdated(rootFiber, 1, sourceFiber), + (markRootUpdated(rootFiber, 2, sourceFiber), ensureRootIsScheduled(rootFiber, sourceFiber)); } function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) { @@ -14147,16 +14150,16 @@ function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) { sourceFiber = createClassErrorUpdate( nearestMountedAncestor, sourceFiber, - 1 + 2 ); nearestMountedAncestor = enqueueUpdate$1( nearestMountedAncestor, sourceFiber, - 1 + 2 ); sourceFiber = requestEventTime(); null !== nearestMountedAncestor && - (markRootUpdated(nearestMountedAncestor, 1, sourceFiber), + (markRootUpdated(nearestMountedAncestor, 2, sourceFiber), ensureRootIsScheduled(nearestMountedAncestor, sourceFiber)); break; } @@ -14189,7 +14192,7 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) { (workInProgressRootRenderLanes & pingedLanes) === pingedLanes && (4 === workInProgressRootExitStatus || (3 === workInProgressRootExitStatus && - (workInProgressRootRenderLanes & 130023424) === + (workInProgressRootRenderLanes & 125829120) === workInProgressRootRenderLanes && 500 > now() - globalMostRecentFallbackTime) ? prepareFreshStack(root, 0) @@ -14199,10 +14202,10 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) { function retryTimedOutBoundary(boundaryFiber, retryLane) { 0 === retryLane && (0 === (boundaryFiber.mode & 1) - ? (retryLane = 1) + ? (retryLane = 2) : ((retryLane = nextRetryLane), (nextRetryLane <<= 1), - 0 === (nextRetryLane & 130023424) && (nextRetryLane = 4194304))); + 0 === (nextRetryLane & 125829120) && (nextRetryLane = 8388608))); var eventTime = requestEventTime(); boundaryFiber = enqueueConcurrentRenderForLane(boundaryFiber, retryLane); null !== boundaryFiber && @@ -15447,7 +15450,7 @@ _attemptSynchronousHydration = function(fiber) { if (root$226.current.memoizedState.isDehydrated) { var lanes = getHighestPriorityLanes(root$226.pendingLanes); 0 !== lanes && - (markRootEntangled(root$226, lanes | 1), + (markRootEntangled(root$226, lanes | 2), ensureRootIsScheduled(root$226, now()), 0 === (executionContext & 6) && (resetRenderTimer(), flushSyncCallbacks())); @@ -15455,23 +15458,23 @@ _attemptSynchronousHydration = function(fiber) { break; case 13: flushSync(function() { - var root = enqueueConcurrentRenderForLane(fiber, 1); + var root = enqueueConcurrentRenderForLane(fiber, 2); if (null !== root) { var eventTime = requestEventTime(); - scheduleUpdateOnFiber(root, fiber, 1, eventTime); + scheduleUpdateOnFiber(root, fiber, 2, eventTime); } }), - markRetryLaneIfNotHydrated(fiber, 1); + markRetryLaneIfNotHydrated(fiber, 2); } }; attemptDiscreteHydration = function(fiber) { if (13 === fiber.tag) { - var root = enqueueConcurrentRenderForLane(fiber, 1); + var root = enqueueConcurrentRenderForLane(fiber, 2); if (null !== root) { var eventTime = requestEventTime(); - scheduleUpdateOnFiber(root, fiber, 1, eventTime); + scheduleUpdateOnFiber(root, fiber, 2, eventTime); } - markRetryLaneIfNotHydrated(fiber, 1); + markRetryLaneIfNotHydrated(fiber, 2); } }; attemptContinuousHydration = function(fiber) { @@ -15541,7 +15544,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1770 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-classic-2655c9354-20221121", + version: "18.3.0-www-classic-8a23def32-20221128", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2151 = { @@ -15571,7 +15574,7 @@ var internals$jscomp$inline_2151 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-next-2655c9354-20221121" + reconcilerVersion: "18.3.0-next-8a23def32-20221128" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2152 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -15785,7 +15788,7 @@ exports.unstable_flushControlled = function(fn) { previousPriority = currentUpdatePriority; try { (ReactCurrentBatchConfig$3.transition = null), - (currentUpdatePriority = 1), + (currentUpdatePriority = 2), fn(); } finally { (currentUpdatePriority = previousPriority), @@ -15814,4 +15817,4 @@ exports.unstable_renderSubtreeIntoContainer = function( ); }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-next-2655c9354-20221121"; +exports.version = "18.3.0-next-8a23def32-20221128"; diff --git a/compiled/facebook-www/ReactDOM-prod.modern.js b/compiled/facebook-www/ReactDOM-prod.modern.js index 37ec1f080f..a9fd5c9535 100644 --- a/compiled/facebook-www/ReactDOM-prod.modern.js +++ b/compiled/facebook-www/ReactDOM-prod.modern.js @@ -1288,8 +1288,8 @@ function clz32Fallback(x) { x >>>= 0; return 0 === x ? 32 : (31 - ((log(x) / LN2) | 0)) | 0; } -var nextTransitionLane = 64, - nextRetryLane = 4194304; +var nextTransitionLane = 128, + nextRetryLane = 8388608; function getHighestPriorityLanes(lanes) { switch (lanes & -lanes) { case 1: @@ -1305,6 +1305,7 @@ function getHighestPriorityLanes(lanes) { case 32: return 32; case 64: + return 64; case 128: case 256: case 512: @@ -1320,13 +1321,13 @@ function getHighestPriorityLanes(lanes) { case 524288: case 1048576: case 2097152: - return lanes & 4194240; case 4194304: + return lanes & 8388480; case 8388608: case 16777216: case 33554432: case 67108864: - return lanes & 130023424; + return lanes & 125829120; case 134217728: return 134217728; case 268435456: @@ -1367,12 +1368,12 @@ function getNextLanes(root, wipLanes) { ((suspendedLanes = nextLanes & -nextLanes), (pingedLanes = wipLanes & -wipLanes), suspendedLanes >= pingedLanes || - (16 === suspendedLanes && 0 !== (pingedLanes & 4194240))) + (32 === suspendedLanes && 0 !== (pingedLanes & 8388480))) ) return wipLanes; 0 === (root.current.mode & 32) && - 0 !== (nextLanes & 4) && - (nextLanes |= pendingLanes & 16); + 0 !== (nextLanes & 8) && + (nextLanes |= pendingLanes & 32); wipLanes = root.entangledLanes; if (0 !== wipLanes) for (root = root.entanglements, wipLanes &= nextLanes; 0 < wipLanes; ) @@ -1387,8 +1388,8 @@ function computeExpirationTime(lane, currentTime) { case 1: case 2: case 4: - return currentTime + 250; case 8: + return currentTime + 250; case 16: case 32: case 64: @@ -1407,8 +1408,8 @@ function computeExpirationTime(lane, currentTime) { case 524288: case 1048576: case 2097152: - return currentTime + 5e3; case 4194304: + return currentTime + 5e3; case 8388608: case 16777216: case 33554432: @@ -1428,7 +1429,7 @@ function markStarvedLanesAsExpired(root, currentTime) { var suspendedLanes = root.suspendedLanes, pingedLanes = root.pingedLanes, expirationTimes = root.expirationTimes, - lanes = root.pendingLanes & -130023425; + lanes = root.pendingLanes & -125829121; 0 < lanes; ) { @@ -1448,12 +1449,12 @@ function getLanesToRetrySynchronouslyOnError(root, originallyAttemptedLanes) { return 0 !== root ? root : root & 1073741824 ? 1073741824 : 0; } function includesBlockingLane(root, lanes) { - return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 30); + return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 60); } function claimNextTransitionLane() { var lane = nextTransitionLane; nextTransitionLane <<= 1; - 0 === (nextTransitionLane & 4194240) && (nextTransitionLane = 64); + 0 === (nextTransitionLane & 8388480) && (nextTransitionLane = 128); return lane; } function createLaneMap(initial) { @@ -1544,13 +1545,13 @@ function runWithPriority(priority, fn) { } function lanesToEventPriority(lanes) { lanes &= -lanes; - return 1 < lanes - ? 4 < lanes + return 2 < lanes + ? 8 < lanes ? 0 !== (lanes & 268435455) - ? 16 + ? 32 : 536870912 - : 4 - : 1; + : 8 + : 2; } var _attemptSynchronousHydration, attemptDiscreteHydration, @@ -1919,10 +1920,10 @@ function createEventListenerWrapperWithPriority( eventSystemFlags ) { switch (getEventPriority(domEventName)) { - case 1: + case 2: var listenerWrapper = dispatchDiscreteEvent; break; - case 4: + case 8: listenerWrapper = dispatchContinuousEvent; break; default: @@ -1945,7 +1946,7 @@ function dispatchDiscreteEvent( prevTransition = ReactCurrentBatchConfig.transition; ReactCurrentBatchConfig.transition = null; try { - (currentUpdatePriority = 1), + (currentUpdatePriority = 2), dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); } finally { (currentUpdatePriority = previousPriority), @@ -1962,7 +1963,7 @@ function dispatchContinuousEvent( prevTransition = ReactCurrentBatchConfig.transition; ReactCurrentBatchConfig.transition = null; try { - (currentUpdatePriority = 4), + (currentUpdatePriority = 8), dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); } finally { (currentUpdatePriority = previousPriority), @@ -2184,7 +2185,7 @@ function getEventPriority(domEventName) { case "popstate": case "select": case "selectstart": - return 1; + return 2; case "drag": case "dragenter": case "dragexit": @@ -2204,23 +2205,23 @@ function getEventPriority(domEventName) { case "mouseleave": case "pointerenter": case "pointerleave": - return 4; + return 8; case "message": switch (getCurrentPriorityLevel()) { case ImmediatePriority: - return 1; + return 2; case UserBlockingPriority: - return 4; + return 8; case NormalPriority: case LowPriority: - return 16; + return 32; case IdlePriority: return 536870912; default: - return 16; + return 32; } default: - return 16; + return 32; } } function addEventBubbleListener(target, eventType, listener) { @@ -5180,7 +5181,7 @@ function flushSyncCallbacks() { previousUpdatePriority = currentUpdatePriority; try { var queue = syncQueue; - for (currentUpdatePriority = 1; i < queue.length; i++) { + for (currentUpdatePriority = 2; i < queue.length; i++) { var callback = queue[i]; do callback = callback(!0); while (null !== callback); @@ -6590,7 +6591,7 @@ function enqueueUpdate$1(fiber, update, lane) { } function entangleTransitions(root, fiber, lane) { fiber = fiber.updateQueue; - if (null !== fiber && ((fiber = fiber.shared), 0 !== (lane & 4194240))) { + if (null !== fiber && ((fiber = fiber.shared), 0 !== (lane & 8388480))) { var queueLanes = fiber.lanes; queueLanes &= root.pendingLanes; lane |= queueLanes; @@ -7439,8 +7440,8 @@ function checkIfSnapshotChanged(inst) { } } function forceStoreRerender(fiber) { - var root = enqueueConcurrentRenderForLane(fiber, 1); - null !== root && scheduleUpdateOnFiber(root, fiber, 1, -1); + var root = enqueueConcurrentRenderForLane(fiber, 2); + null !== root && scheduleUpdateOnFiber(root, fiber, 2, -1); } function mountState(initialState) { var hook = mountWorkInProgressHook(); @@ -7596,7 +7597,7 @@ function updateMemo(nextCreate, deps) { return nextCreate; } function updateDeferredValueImpl(hook, prevValue, value) { - if (0 === (renderLanes & 21)) + if (0 === (renderLanes & 42)) return ( hook.baseState && ((hook.baseState = !1), (didReceiveUpdate = !0)), (hook.memoizedState = value) @@ -7611,7 +7612,7 @@ function updateDeferredValueImpl(hook, prevValue, value) { function startTransition(setPending, callback, options) { var previousPriority = currentUpdatePriority; currentUpdatePriority = - 0 !== previousPriority && 4 > previousPriority ? previousPriority : 4; + 0 !== previousPriority && 8 > previousPriority ? previousPriority : 8; setPending(!0); var prevTransition = ReactCurrentBatchConfig$2.transition; ReactCurrentBatchConfig$2.transition = {}; @@ -7730,7 +7731,7 @@ function enqueueRenderPhaseUpdate(queue, update) { queue.pending = update; } function entangleTransitionUpdate(root, queue, lane) { - if (0 !== (lane & 4194240)) { + if (0 !== (lane & 8388480)) { var queueLanes = queue.lanes; queueLanes &= root.pendingLanes; lane |= queueLanes; @@ -8242,10 +8243,10 @@ function markSuspenseBoundaryShouldCapture( 1 === sourceFiber.tag && (null === sourceFiber.alternate ? (sourceFiber.tag = 17) - : ((returnFiber = createUpdate(-1, 1)), + : ((returnFiber = createUpdate(-1, 2)), (returnFiber.tag = 2), - enqueueUpdate$1(sourceFiber, returnFiber, 1))), - (sourceFiber.lanes |= 1)), + enqueueUpdate$1(sourceFiber, returnFiber, 2))), + (sourceFiber.lanes |= 2)), suspenseBoundary ); suspenseBoundary.flags |= 32768; @@ -8980,9 +8981,9 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ) return ( 0 === (workInProgress.mode & 1) - ? (workInProgress.lanes = 1) + ? (workInProgress.lanes = 2) : "$!" === current.data - ? (workInProgress.lanes = 8) + ? (workInProgress.lanes = 16) : (workInProgress.lanes = 1073741824), null ); @@ -9034,7 +9035,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - (workInProgress.lanes = 4194304), + (workInProgress.lanes = 8388608), current ); pushPrimaryTreeSuspenseHandler(workInProgress); @@ -9289,13 +9290,15 @@ function updateDehydratedSuspenseComponent( nextProps = workInProgressRoot; if (null !== nextProps) { switch (renderLanes & -renderLanes) { - case 4: - suspenseInstance = 2; + case 2: + suspenseInstance = 1; break; - case 16: - suspenseInstance = 8; + case 8: + suspenseInstance = 4; + break; + case 32: + suspenseInstance = 16; break; - case 64: case 128: case 256: case 512: @@ -9316,7 +9319,7 @@ function updateDehydratedSuspenseComponent( case 16777216: case 33554432: case 67108864: - suspenseInstance = 32; + suspenseInstance = 64; break; case 536870912: suspenseInstance = 268435456; @@ -10253,7 +10256,7 @@ function completeWork(current, workInProgress, renderLanes) { ((workInProgress.flags |= 64), (newProps = !0), cutOffTailIfNeeded(type, !1), - (workInProgress.lanes = 4194304)); + (workInProgress.lanes = 8388608)); } else { if (!newProps) @@ -10282,7 +10285,7 @@ function completeWork(current, workInProgress, renderLanes) { ((workInProgress.flags |= 64), (newProps = !0), cutOffTailIfNeeded(type, !1), - (workInProgress.lanes = 4194304)); + (workInProgress.lanes = 8388608)); type.isBackwards ? ((JSCompiler_inline_result.sibling = workInProgress.child), (workInProgress.child = JSCompiler_inline_result)) @@ -12775,7 +12778,7 @@ function requestEventTime() { : (currentEventTime = now()); } function requestUpdateLane(fiber) { - if (0 === (fiber.mode & 1)) return 1; + if (0 === (fiber.mode & 1)) return 2; if ( !deferRenderPhaseUpdateToNextBatch && 0 !== (executionContext & 2) && @@ -12791,7 +12794,7 @@ function requestUpdateLane(fiber) { fiber = currentUpdatePriority; if (0 !== fiber) return fiber; fiber = window.event; - fiber = void 0 === fiber ? 16 : getEventPriority(fiber.type); + fiber = void 0 === fiber ? 32 : getEventPriority(fiber.type); return fiber; } function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { @@ -12824,7 +12827,7 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { markRootSuspended$1(root, workInProgressRootRenderLanes); } ensureRootIsScheduled(root, eventTime); - 1 === lane && + 2 === lane && 0 === executionContext && 0 === (fiber.mode & 1) && (resetRenderTimer(), includesLegacySyncCallbacks && flushSyncCallbacks()); @@ -12846,7 +12849,7 @@ function ensureRootIsScheduled(root, currentTime) { root.callbackPriority !== currentTime) ) { null != existingCallbackNode && cancelCallback(existingCallbackNode); - if (1 === currentTime) + if (0 !== (currentTime & 3)) 0 === root.tag ? scheduleLegacySyncCallback(performSyncWorkOnRoot.bind(null, root)) : scheduleSyncCallback(performSyncWorkOnRoot.bind(null, root)), @@ -12856,13 +12859,13 @@ function ensureRootIsScheduled(root, currentTime) { (existingCallbackNode = null); else { switch (lanesToEventPriority(nextLanes)) { - case 1: + case 2: existingCallbackNode = ImmediatePriority; break; - case 4: + case 8: existingCallbackNode = UserBlockingPriority; break; - case 16: + case 32: existingCallbackNode = NormalPriority; break; case 536870912: @@ -12965,7 +12968,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) { case 3: markRootSuspended$1(root, lanes); if ( - (lanes & 130023424) === lanes && + (lanes & 125829120) === lanes && ((didTimeout = globalMostRecentFallbackTime + 500 - now()), 10 < didTimeout) ) { @@ -12996,7 +12999,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) { break; case 4: markRootSuspended$1(root, lanes); - if ((lanes & 4194240) === lanes) break; + if ((lanes & 8388480) === lanes) break; didTimeout = root.eventTimes; for (originallyAttemptedLanes = -1; 0 < lanes; ) (errorRetryLanes$216 = 31 - clz32(lanes)), @@ -13138,7 +13141,7 @@ function performSyncWorkOnRoot(root) { if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); flushPassiveEffects(); var lanes = getNextLanes(root, 0); - if (0 === (lanes & 1)) return ensureRootIsScheduled(root, now()), null; + if (0 === (lanes & 3)) return ensureRootIsScheduled(root, now()), null; var exitStatus = renderRootSync(root, lanes); if (0 !== root.tag && 2 === exitStatus) { var originallyAttemptedLanes = lanes, @@ -13198,7 +13201,7 @@ function flushSync(fn) { try { if ( ((ReactCurrentBatchConfig$3.transition = null), - (currentUpdatePriority = 1), + (currentUpdatePriority = 2), fn) ) return fn(); @@ -13267,7 +13270,7 @@ function handleThrow(root, thrownValue) { } function shouldAttemptToSuspendUntilDataResolves() { if ( - (workInProgressRootRenderLanes & 130023424) === + (workInProgressRootRenderLanes & 125829120) === workInProgressRootRenderLanes ) return !0; @@ -13277,7 +13280,7 @@ function shouldAttemptToSuspendUntilDataResolves() { ) return !1; if ( - (workInProgressRootRenderLanes & 4194240) === + (workInProgressRootRenderLanes & 8388480) === workInProgressRootRenderLanes ) { var suspenseHandler = suspenseHandlerStackCursor.current; @@ -13690,7 +13693,7 @@ function commitRoot(root, recoverableErrors, transitions) { prevTransition = ReactCurrentBatchConfig$3.transition; try { (ReactCurrentBatchConfig$3.transition = null), - (currentUpdatePriority = 1), + (currentUpdatePriority = 2), commitRootImpl( root, recoverableErrors, @@ -13741,7 +13744,7 @@ function commitRootImpl( transitions = ReactCurrentBatchConfig$3.transition; ReactCurrentBatchConfig$3.transition = null; var previousPriority = currentUpdatePriority; - currentUpdatePriority = 1; + currentUpdatePriority = 2; var prevExecutionContext = executionContext; executionContext |= 4; ReactCurrentOwner$2.current = null; @@ -13790,11 +13793,11 @@ function commitRootImpl( (root = firstUncaughtError), (firstUncaughtError = null), root); - 0 !== (pendingPassiveEffectsLanes & 1) && + 0 !== (pendingPassiveEffectsLanes & 3) && 0 !== root.tag && flushPassiveEffects(); remainingLanes = root.pendingLanes; - 0 !== (remainingLanes & 1) + 0 !== (remainingLanes & 3) ? root === rootWithNestedUpdates ? nestedUpdateCount++ : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root)) @@ -13831,7 +13834,7 @@ function flushPassiveEffects() { remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes); - renderPriority = 16 > renderPriority ? 16 : renderPriority; + renderPriority = 32 > renderPriority ? 32 : renderPriority; var prevTransition = ReactCurrentBatchConfig$3.transition, previousPriority = currentUpdatePriority; try { @@ -13887,11 +13890,11 @@ function flushPassiveEffectsImpl() { } function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) { sourceFiber = createCapturedValueAtFiber(error, sourceFiber); - sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 1); - rootFiber = enqueueUpdate$1(rootFiber, sourceFiber, 1); + sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 2); + rootFiber = enqueueUpdate$1(rootFiber, sourceFiber, 2); sourceFiber = requestEventTime(); null !== rootFiber && - (markRootUpdated(rootFiber, 1, sourceFiber), + (markRootUpdated(rootFiber, 2, sourceFiber), ensureRootIsScheduled(rootFiber, sourceFiber)); } function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) { @@ -13925,16 +13928,16 @@ function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) { sourceFiber = createClassErrorUpdate( nearestMountedAncestor, sourceFiber, - 1 + 2 ); nearestMountedAncestor = enqueueUpdate$1( nearestMountedAncestor, sourceFiber, - 1 + 2 ); sourceFiber = requestEventTime(); null !== nearestMountedAncestor && - (markRootUpdated(nearestMountedAncestor, 1, sourceFiber), + (markRootUpdated(nearestMountedAncestor, 2, sourceFiber), ensureRootIsScheduled(nearestMountedAncestor, sourceFiber)); break; } @@ -13967,7 +13970,7 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) { (workInProgressRootRenderLanes & pingedLanes) === pingedLanes && (4 === workInProgressRootExitStatus || (3 === workInProgressRootExitStatus && - (workInProgressRootRenderLanes & 130023424) === + (workInProgressRootRenderLanes & 125829120) === workInProgressRootRenderLanes && 500 > now() - globalMostRecentFallbackTime) ? prepareFreshStack(root, 0) @@ -13977,10 +13980,10 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) { function retryTimedOutBoundary(boundaryFiber, retryLane) { 0 === retryLane && (0 === (boundaryFiber.mode & 1) - ? (retryLane = 1) + ? (retryLane = 2) : ((retryLane = nextRetryLane), (nextRetryLane <<= 1), - 0 === (nextRetryLane & 130023424) && (nextRetryLane = 4194304))); + 0 === (nextRetryLane & 125829120) && (nextRetryLane = 8388608))); var eventTime = requestEventTime(); boundaryFiber = enqueueConcurrentRenderForLane(boundaryFiber, retryLane); null !== boundaryFiber && @@ -15008,7 +15011,7 @@ _attemptSynchronousHydration = function(fiber) { if (root$227.current.memoizedState.isDehydrated) { var lanes = getHighestPriorityLanes(root$227.pendingLanes); 0 !== lanes && - (markRootEntangled(root$227, lanes | 1), + (markRootEntangled(root$227, lanes | 2), ensureRootIsScheduled(root$227, now()), 0 === (executionContext & 6) && (resetRenderTimer(), flushSyncCallbacks())); @@ -15016,23 +15019,23 @@ _attemptSynchronousHydration = function(fiber) { break; case 13: flushSync(function() { - var root = enqueueConcurrentRenderForLane(fiber, 1); + var root = enqueueConcurrentRenderForLane(fiber, 2); if (null !== root) { var eventTime = requestEventTime(); - scheduleUpdateOnFiber(root, fiber, 1, eventTime); + scheduleUpdateOnFiber(root, fiber, 2, eventTime); } }), - markRetryLaneIfNotHydrated(fiber, 1); + markRetryLaneIfNotHydrated(fiber, 2); } }; attemptDiscreteHydration = function(fiber) { if (13 === fiber.tag) { - var root = enqueueConcurrentRenderForLane(fiber, 1); + var root = enqueueConcurrentRenderForLane(fiber, 2); if (null !== root) { var eventTime = requestEventTime(); - scheduleUpdateOnFiber(root, fiber, 1, eventTime); + scheduleUpdateOnFiber(root, fiber, 2, eventTime); } - markRetryLaneIfNotHydrated(fiber, 1); + markRetryLaneIfNotHydrated(fiber, 2); } }; attemptContinuousHydration = function(fiber) { @@ -15102,7 +15105,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1738 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-modern-2655c9354-20221121", + version: "18.3.0-www-modern-8a23def32-20221128", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2126 = { @@ -15133,7 +15136,7 @@ var internals$jscomp$inline_2126 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-next-2655c9354-20221121" + reconcilerVersion: "18.3.0-next-8a23def32-20221128" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2127 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -15311,7 +15314,7 @@ exports.unstable_flushControlled = function(fn) { previousPriority = currentUpdatePriority; try { (ReactCurrentBatchConfig$3.transition = null), - (currentUpdatePriority = 1), + (currentUpdatePriority = 2), fn(); } finally { (currentUpdatePriority = previousPriority), @@ -15322,4 +15325,4 @@ exports.unstable_flushControlled = function(fn) { }; exports.unstable_isNewReconciler = !1; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-next-2655c9354-20221121"; +exports.version = "18.3.0-next-8a23def32-20221128"; diff --git a/compiled/facebook-www/ReactDOM-profiling.classic.js b/compiled/facebook-www/ReactDOM-profiling.classic.js index fff0d0aa8a..b28b95af5f 100644 --- a/compiled/facebook-www/ReactDOM-profiling.classic.js +++ b/compiled/facebook-www/ReactDOM-profiling.classic.js @@ -1586,13 +1586,13 @@ function onCommitRoot(root, eventPriority) { try { var didError = 64 === (root.current.flags & 64); switch (eventPriority) { - case 1: + case 2: var schedulerPriority = ImmediatePriority; break; - case 4: + case 8: schedulerPriority = UserBlockingPriority; break; - case 16: + case 32: schedulerPriority = NormalPriority; break; case 536870912: @@ -1686,22 +1686,23 @@ function clz32Fallback(x) { } function getLabelForLane(lane) { if (enableSchedulingProfiler) { - if (lane & 1) return "Sync"; - if (lane & 2) return "InputContinuousHydration"; - if (lane & 4) return "InputContinuous"; - if (lane & 8) return "DefaultHydration"; - if (lane & 16) return "Default"; - if (lane & 32) return "TransitionHydration"; - if (lane & 4194240) return "Transition"; - if (lane & 130023424) return "Retry"; + if (lane & 1) return "SyncHydrationLane"; + if (lane & 2) return "Sync"; + if (lane & 4) return "InputContinuousHydration"; + if (lane & 8) return "InputContinuous"; + if (lane & 16) return "DefaultHydration"; + if (lane & 32) return "Default"; + if (lane & 64) return "TransitionHydration"; + if (lane & 8388480) return "Transition"; + if (lane & 125829120) return "Retry"; if (lane & 134217728) return "SelectiveHydration"; if (lane & 268435456) return "IdleHydration"; if (lane & 536870912) return "Idle"; if (lane & 1073741824) return "Offscreen"; } } -var nextTransitionLane = 64, - nextRetryLane = 4194304; +var nextTransitionLane = 128, + nextRetryLane = 8388608; function getHighestPriorityLanes(lanes) { switch (lanes & -lanes) { case 1: @@ -1717,6 +1718,7 @@ function getHighestPriorityLanes(lanes) { case 32: return 32; case 64: + return 64; case 128: case 256: case 512: @@ -1732,13 +1734,13 @@ function getHighestPriorityLanes(lanes) { case 524288: case 1048576: case 2097152: - return lanes & 4194240; case 4194304: + return lanes & 8388480; case 8388608: case 16777216: case 33554432: case 67108864: - return lanes & 130023424; + return lanes & 125829120; case 134217728: return 134217728; case 268435456: @@ -1779,12 +1781,12 @@ function getNextLanes(root, wipLanes) { ((suspendedLanes = nextLanes & -nextLanes), (pingedLanes = wipLanes & -wipLanes), suspendedLanes >= pingedLanes || - (16 === suspendedLanes && 0 !== (pingedLanes & 4194240))) + (32 === suspendedLanes && 0 !== (pingedLanes & 8388480))) ) return wipLanes; 0 === (root.current.mode & 32) && - 0 !== (nextLanes & 4) && - (nextLanes |= pendingLanes & 16); + 0 !== (nextLanes & 8) && + (nextLanes |= pendingLanes & 32); wipLanes = root.entangledLanes; if (0 !== wipLanes) for (root = root.entanglements, wipLanes &= nextLanes; 0 < wipLanes; ) @@ -1799,8 +1801,8 @@ function computeExpirationTime(lane, currentTime) { case 1: case 2: case 4: - return currentTime + 250; case 8: + return currentTime + 250; case 16: case 32: case 64: @@ -1819,8 +1821,8 @@ function computeExpirationTime(lane, currentTime) { case 524288: case 1048576: case 2097152: - return currentTime + 5e3; case 4194304: + return currentTime + 5e3; case 8388608: case 16777216: case 33554432: @@ -1840,7 +1842,7 @@ function markStarvedLanesAsExpired(root, currentTime) { var suspendedLanes = root.suspendedLanes, pingedLanes = root.pingedLanes, expirationTimes = root.expirationTimes, - lanes = root.pendingLanes & -130023425; + lanes = root.pendingLanes & -125829121; 0 < lanes; ) { @@ -1860,12 +1862,12 @@ function getLanesToRetrySynchronouslyOnError(root, originallyAttemptedLanes) { return 0 !== root ? root : root & 1073741824 ? 1073741824 : 0; } function includesBlockingLane(root, lanes) { - return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 30); + return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 60); } function claimNextTransitionLane() { var lane = nextTransitionLane; nextTransitionLane <<= 1; - 0 === (nextTransitionLane & 4194240) && (nextTransitionLane = 64); + 0 === (nextTransitionLane & 8388480) && (nextTransitionLane = 128); return lane; } function createLaneMap(initial) { @@ -1986,13 +1988,13 @@ function runWithPriority(priority, fn) { } function lanesToEventPriority(lanes) { lanes &= -lanes; - return 1 < lanes - ? 4 < lanes + return 2 < lanes + ? 8 < lanes ? 0 !== (lanes & 268435455) - ? 16 + ? 32 : 536870912 - : 4 - : 1; + : 8 + : 2; } var Internals = { usingClientEntryPoint: !1, @@ -5077,10 +5079,10 @@ function createEventListenerWrapperWithPriority( eventSystemFlags ) { switch (getEventPriority(domEventName)) { - case 1: + case 2: var listenerWrapper = dispatchDiscreteEvent; break; - case 4: + case 8: listenerWrapper = dispatchContinuousEvent; break; default: @@ -5103,7 +5105,7 @@ function dispatchDiscreteEvent( prevTransition = ReactCurrentBatchConfig.transition; ReactCurrentBatchConfig.transition = null; try { - (currentUpdatePriority = 1), + (currentUpdatePriority = 2), dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); } finally { (currentUpdatePriority = previousPriority), @@ -5120,7 +5122,7 @@ function dispatchContinuousEvent( prevTransition = ReactCurrentBatchConfig.transition; ReactCurrentBatchConfig.transition = null; try { - (currentUpdatePriority = 4), + (currentUpdatePriority = 8), dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); } finally { (currentUpdatePriority = previousPriority), @@ -5342,7 +5344,7 @@ function getEventPriority(domEventName) { case "popstate": case "select": case "selectstart": - return 1; + return 2; case "drag": case "dragenter": case "dragexit": @@ -5362,23 +5364,23 @@ function getEventPriority(domEventName) { case "mouseleave": case "pointerenter": case "pointerleave": - return 4; + return 8; case "message": switch (getCurrentPriorityLevel()) { case ImmediatePriority: - return 1; + return 2; case UserBlockingPriority: - return 4; + return 8; case NormalPriority: case LowPriority: - return 16; + return 32; case IdlePriority: return 536870912; default: - return 16; + return 32; } default: - return 16; + return 32; } } var emptyContextObject = {}, @@ -5476,7 +5478,7 @@ function flushSyncCallbacks() { previousUpdatePriority = currentUpdatePriority; try { var queue = syncQueue; - for (currentUpdatePriority = 1; i < queue.length; i++) { + for (currentUpdatePriority = 2; i < queue.length; i++) { var callback = queue[i]; do callback = callback(!0); while (null !== callback); @@ -6886,7 +6888,7 @@ function enqueueUpdate$1(fiber, update, lane) { } function entangleTransitions(root, fiber, lane) { fiber = fiber.updateQueue; - if (null !== fiber && ((fiber = fiber.shared), 0 !== (lane & 4194240))) { + if (null !== fiber && ((fiber = fiber.shared), 0 !== (lane & 8388480))) { var queueLanes = fiber.lanes; queueLanes &= root.pendingLanes; lane |= queueLanes; @@ -7735,8 +7737,8 @@ function checkIfSnapshotChanged(inst) { } } function forceStoreRerender(fiber) { - var root = enqueueConcurrentRenderForLane(fiber, 1); - null !== root && scheduleUpdateOnFiber(root, fiber, 1, -1); + var root = enqueueConcurrentRenderForLane(fiber, 2); + null !== root && scheduleUpdateOnFiber(root, fiber, 2, -1); } function mountState(initialState) { var hook = mountWorkInProgressHook(); @@ -7892,7 +7894,7 @@ function updateMemo(nextCreate, deps) { return nextCreate; } function updateDeferredValueImpl(hook, prevValue, value) { - if (0 === (renderLanes & 21)) + if (0 === (renderLanes & 42)) return ( hook.baseState && ((hook.baseState = !1), (didReceiveUpdate = !0)), (hook.memoizedState = value) @@ -7907,7 +7909,7 @@ function updateDeferredValueImpl(hook, prevValue, value) { function startTransition(setPending, callback, options) { var previousPriority = currentUpdatePriority; currentUpdatePriority = - 0 !== previousPriority && 4 > previousPriority ? previousPriority : 4; + 0 !== previousPriority && 8 > previousPriority ? previousPriority : 8; setPending(!0); var prevTransition = ReactCurrentBatchConfig$2.transition; ReactCurrentBatchConfig$2.transition = {}; @@ -8028,7 +8030,7 @@ function enqueueRenderPhaseUpdate(queue, update) { queue.pending = update; } function entangleTransitionUpdate(root, queue, lane) { - if (0 !== (lane & 4194240)) { + if (0 !== (lane & 8388480)) { var queueLanes = queue.lanes; queueLanes &= root.pendingLanes; lane |= queueLanes; @@ -8623,10 +8625,10 @@ function markSuspenseBoundaryShouldCapture( 1 === sourceFiber.tag && (null === sourceFiber.alternate ? (sourceFiber.tag = 17) - : ((returnFiber = createUpdate(-1, 1)), + : ((returnFiber = createUpdate(-1, 2)), (returnFiber.tag = 2), - enqueueUpdate$1(sourceFiber, returnFiber, 1))), - (sourceFiber.lanes |= 1)), + enqueueUpdate$1(sourceFiber, returnFiber, 2))), + (sourceFiber.lanes |= 2)), suspenseBoundary ); suspenseBoundary.flags |= 32768; @@ -9410,9 +9412,9 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ) return ( 0 === (workInProgress.mode & 1) - ? (workInProgress.lanes = 1) + ? (workInProgress.lanes = 2) : "$!" === current.data - ? (workInProgress.lanes = 8) + ? (workInProgress.lanes = 16) : (workInProgress.lanes = 1073741824), null ); @@ -9464,7 +9466,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - (workInProgress.lanes = 4194304), + (workInProgress.lanes = 8388608), current ); pushPrimaryTreeSuspenseHandler(workInProgress); @@ -9729,13 +9731,15 @@ function updateDehydratedSuspenseComponent( nextProps = workInProgressRoot; if (null !== nextProps) { switch (renderLanes & -renderLanes) { - case 4: - suspenseInstance = 2; + case 2: + suspenseInstance = 1; break; - case 16: - suspenseInstance = 8; + case 8: + suspenseInstance = 4; + break; + case 32: + suspenseInstance = 16; break; - case 64: case 128: case 256: case 512: @@ -9756,7 +9760,7 @@ function updateDehydratedSuspenseComponent( case 16777216: case 33554432: case 67108864: - suspenseInstance = 32; + suspenseInstance = 64; break; case 536870912: suspenseInstance = 268435456; @@ -10774,7 +10778,7 @@ function completeWork(current, workInProgress, renderLanes) { ((workInProgress.flags |= 64), (newProps = !0), cutOffTailIfNeeded(type, !1), - (workInProgress.lanes = 4194304)); + (workInProgress.lanes = 8388608)); } else { if (!newProps) @@ -10803,7 +10807,7 @@ function completeWork(current, workInProgress, renderLanes) { ((workInProgress.flags |= 64), (newProps = !0), cutOffTailIfNeeded(type, !1), - (workInProgress.lanes = 4194304)); + (workInProgress.lanes = 8388608)); type.isBackwards ? ((JSCompiler_inline_result.sibling = workInProgress.child), (workInProgress.child = JSCompiler_inline_result)) @@ -13584,7 +13588,7 @@ function requestEventTime() { : (currentEventTime = now()); } function requestUpdateLane(fiber) { - if (0 === (fiber.mode & 1)) return 1; + if (0 === (fiber.mode & 1)) return 2; if ( !deferRenderPhaseUpdateToNextBatch && 0 !== (executionContext & 2) && @@ -13600,7 +13604,7 @@ function requestUpdateLane(fiber) { fiber = currentUpdatePriority; if (0 !== fiber) return fiber; fiber = window.event; - fiber = void 0 === fiber ? 16 : getEventPriority(fiber.type); + fiber = void 0 === fiber ? 32 : getEventPriority(fiber.type); return fiber; } function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { @@ -13649,7 +13653,7 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { markRootSuspended$1(root, workInProgressRootRenderLanes); } ensureRootIsScheduled(root, eventTime); - 1 === lane && + 2 === lane && 0 === executionContext && 0 === (fiber.mode & 1) && (resetRenderTimer(), includesLegacySyncCallbacks && flushSyncCallbacks()); @@ -13671,7 +13675,7 @@ function ensureRootIsScheduled(root, currentTime) { root.callbackPriority !== currentTime) ) { null != existingCallbackNode && cancelCallback(existingCallbackNode); - if (1 === currentTime) + if (0 !== (currentTime & 3)) 0 === root.tag ? scheduleLegacySyncCallback(performSyncWorkOnRoot.bind(null, root)) : scheduleSyncCallback(performSyncWorkOnRoot.bind(null, root)), @@ -13681,13 +13685,13 @@ function ensureRootIsScheduled(root, currentTime) { (existingCallbackNode = null); else { switch (lanesToEventPriority(nextLanes)) { - case 1: + case 2: existingCallbackNode = ImmediatePriority; break; - case 4: + case 8: existingCallbackNode = UserBlockingPriority; break; - case 16: + case 32: existingCallbackNode = NormalPriority; break; case 536870912: @@ -13791,7 +13795,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) { case 3: markRootSuspended$1(root, lanes); if ( - (lanes & 130023424) === lanes && + (lanes & 125829120) === lanes && ((didTimeout = globalMostRecentFallbackTime + 500 - now()), 10 < didTimeout) ) { @@ -13822,7 +13826,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) { break; case 4: markRootSuspended$1(root, lanes); - if ((lanes & 4194240) === lanes) break; + if ((lanes & 8388480) === lanes) break; didTimeout = root.eventTimes; for (originallyAttemptedLanes = -1; 0 < lanes; ) (errorRetryLanes$235 = 31 - clz32(lanes)), @@ -13966,7 +13970,7 @@ function performSyncWorkOnRoot(root) { if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); flushPassiveEffects(); var lanes = getNextLanes(root, 0); - if (0 === (lanes & 1)) return ensureRootIsScheduled(root, now()), null; + if (0 === (lanes & 3)) return ensureRootIsScheduled(root, now()), null; var exitStatus = renderRootSync(root, lanes); if (0 !== root.tag && 2 === exitStatus) { var originallyAttemptedLanes = lanes, @@ -14026,7 +14030,7 @@ function flushSync(fn) { try { if ( ((ReactCurrentBatchConfig$3.transition = null), - (currentUpdatePriority = 1), + (currentUpdatePriority = 2), fn) ) return fn(); @@ -14116,7 +14120,7 @@ function handleThrow(root, thrownValue) { } function shouldAttemptToSuspendUntilDataResolves() { if ( - (workInProgressRootRenderLanes & 130023424) === + (workInProgressRootRenderLanes & 125829120) === workInProgressRootRenderLanes ) return !0; @@ -14126,7 +14130,7 @@ function shouldAttemptToSuspendUntilDataResolves() { ) return !1; if ( - (workInProgressRootRenderLanes & 4194240) === + (workInProgressRootRenderLanes & 8388480) === workInProgressRootRenderLanes ) { var suspenseHandler = suspenseHandlerStackCursor.current; @@ -14591,7 +14595,7 @@ function commitRoot(root, recoverableErrors, transitions) { prevTransition = ReactCurrentBatchConfig$3.transition; try { (ReactCurrentBatchConfig$3.transition = null), - (currentUpdatePriority = 1), + (currentUpdatePriority = 2), commitRootImpl( root, recoverableErrors, @@ -14648,7 +14652,7 @@ function commitRootImpl( transitions = ReactCurrentBatchConfig$3.transition; ReactCurrentBatchConfig$3.transition = null; var previousPriority = currentUpdatePriority; - currentUpdatePriority = 1; + currentUpdatePriority = 2; var prevExecutionContext = executionContext; executionContext |= 4; ReactCurrentOwner$2.current = null; @@ -14713,11 +14717,11 @@ function commitRootImpl( (root = firstUncaughtError), (firstUncaughtError = null), root); - 0 !== (pendingPassiveEffectsLanes & 1) && + 0 !== (pendingPassiveEffectsLanes & 3) && 0 !== root.tag && flushPassiveEffects(); remainingLanes = root.pendingLanes; - 0 !== (remainingLanes & 1) + 0 !== (remainingLanes & 3) ? ((nestedUpdateScheduled = !0), root === rootWithNestedUpdates ? nestedUpdateCount++ @@ -14756,7 +14760,7 @@ function flushPassiveEffects() { remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes); - renderPriority = 16 > renderPriority ? 16 : renderPriority; + renderPriority = 32 > renderPriority ? 32 : renderPriority; var prevTransition = ReactCurrentBatchConfig$3.transition, previousPriority = currentUpdatePriority; try { @@ -14838,11 +14842,11 @@ function flushPassiveEffectsImpl() { } function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) { sourceFiber = createCapturedValueAtFiber(error, sourceFiber); - sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 1); - rootFiber = enqueueUpdate$1(rootFiber, sourceFiber, 1); + sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 2); + rootFiber = enqueueUpdate$1(rootFiber, sourceFiber, 2); sourceFiber = requestEventTime(); null !== rootFiber && - (markRootUpdated(rootFiber, 1, sourceFiber), + (markRootUpdated(rootFiber, 2, sourceFiber), ensureRootIsScheduled(rootFiber, sourceFiber)); } function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) { @@ -14876,16 +14880,16 @@ function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) { sourceFiber = createClassErrorUpdate( nearestMountedAncestor, sourceFiber, - 1 + 2 ); nearestMountedAncestor = enqueueUpdate$1( nearestMountedAncestor, sourceFiber, - 1 + 2 ); sourceFiber = requestEventTime(); null !== nearestMountedAncestor && - (markRootUpdated(nearestMountedAncestor, 1, sourceFiber), + (markRootUpdated(nearestMountedAncestor, 2, sourceFiber), ensureRootIsScheduled(nearestMountedAncestor, sourceFiber)); break; } @@ -14919,7 +14923,7 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) { (workInProgressRootRenderLanes & pingedLanes) === pingedLanes && (4 === workInProgressRootExitStatus || (3 === workInProgressRootExitStatus && - (workInProgressRootRenderLanes & 130023424) === + (workInProgressRootRenderLanes & 125829120) === workInProgressRootRenderLanes && 500 > now() - globalMostRecentFallbackTime) ? prepareFreshStack(root, 0) @@ -14929,10 +14933,10 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) { function retryTimedOutBoundary(boundaryFiber, retryLane) { 0 === retryLane && (0 === (boundaryFiber.mode & 1) - ? (retryLane = 1) + ? (retryLane = 2) : ((retryLane = nextRetryLane), (nextRetryLane <<= 1), - 0 === (nextRetryLane & 130023424) && (nextRetryLane = 4194304))); + 0 === (nextRetryLane & 125829120) && (nextRetryLane = 8388608))); var eventTime = requestEventTime(); boundaryFiber = enqueueConcurrentRenderForLane(boundaryFiber, retryLane); null !== boundaryFiber && @@ -16213,7 +16217,7 @@ _attemptSynchronousHydration = function(fiber) { if (root$247.current.memoizedState.isDehydrated) { var lanes = getHighestPriorityLanes(root$247.pendingLanes); 0 !== lanes && - (markRootEntangled(root$247, lanes | 1), + (markRootEntangled(root$247, lanes | 2), ensureRootIsScheduled(root$247, now()), 0 === (executionContext & 6) && (resetRenderTimer(), flushSyncCallbacks())); @@ -16221,23 +16225,23 @@ _attemptSynchronousHydration = function(fiber) { break; case 13: flushSync(function() { - var root = enqueueConcurrentRenderForLane(fiber, 1); + var root = enqueueConcurrentRenderForLane(fiber, 2); if (null !== root) { var eventTime = requestEventTime(); - scheduleUpdateOnFiber(root, fiber, 1, eventTime); + scheduleUpdateOnFiber(root, fiber, 2, eventTime); } }), - markRetryLaneIfNotHydrated(fiber, 1); + markRetryLaneIfNotHydrated(fiber, 2); } }; attemptDiscreteHydration = function(fiber) { if (13 === fiber.tag) { - var root = enqueueConcurrentRenderForLane(fiber, 1); + var root = enqueueConcurrentRenderForLane(fiber, 2); if (null !== root) { var eventTime = requestEventTime(); - scheduleUpdateOnFiber(root, fiber, 1, eventTime); + scheduleUpdateOnFiber(root, fiber, 2, eventTime); } - markRetryLaneIfNotHydrated(fiber, 1); + markRetryLaneIfNotHydrated(fiber, 2); } }; attemptContinuousHydration = function(fiber) { @@ -16307,7 +16311,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1847 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-classic-2655c9354-20221121", + version: "18.3.0-www-classic-8a23def32-20221128", rendererPackageName: "react-dom" }; (function(internals) { @@ -16351,7 +16355,7 @@ var devToolsConfig$jscomp$inline_1847 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-next-2655c9354-20221121" + reconcilerVersion: "18.3.0-next-8a23def32-20221128" }); assign(Internals, { ReactBrowserEventEmitter: { @@ -16552,7 +16556,7 @@ exports.unstable_flushControlled = function(fn) { previousPriority = currentUpdatePriority; try { (ReactCurrentBatchConfig$3.transition = null), - (currentUpdatePriority = 1), + (currentUpdatePriority = 2), fn(); } finally { (currentUpdatePriority = previousPriority), @@ -16581,7 +16585,7 @@ exports.unstable_renderSubtreeIntoContainer = function( ); }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-next-2655c9354-20221121"; +exports.version = "18.3.0-next-8a23def32-20221128"; /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ if ( diff --git a/compiled/facebook-www/ReactDOM-profiling.modern.js b/compiled/facebook-www/ReactDOM-profiling.modern.js index 1de7dc2f10..95048a697b 100644 --- a/compiled/facebook-www/ReactDOM-profiling.modern.js +++ b/compiled/facebook-www/ReactDOM-profiling.modern.js @@ -1291,13 +1291,13 @@ function onCommitRoot(root, eventPriority) { try { var didError = 64 === (root.current.flags & 64); switch (eventPriority) { - case 1: + case 2: var schedulerPriority = ImmediatePriority; break; - case 4: + case 8: schedulerPriority = UserBlockingPriority; break; - case 16: + case 32: schedulerPriority = NormalPriority; break; case 536870912: @@ -1387,22 +1387,23 @@ function clz32Fallback(x) { } function getLabelForLane(lane) { if (enableSchedulingProfiler) { - if (lane & 1) return "Sync"; - if (lane & 2) return "InputContinuousHydration"; - if (lane & 4) return "InputContinuous"; - if (lane & 8) return "DefaultHydration"; - if (lane & 16) return "Default"; - if (lane & 32) return "TransitionHydration"; - if (lane & 4194240) return "Transition"; - if (lane & 130023424) return "Retry"; + if (lane & 1) return "SyncHydrationLane"; + if (lane & 2) return "Sync"; + if (lane & 4) return "InputContinuousHydration"; + if (lane & 8) return "InputContinuous"; + if (lane & 16) return "DefaultHydration"; + if (lane & 32) return "Default"; + if (lane & 64) return "TransitionHydration"; + if (lane & 8388480) return "Transition"; + if (lane & 125829120) return "Retry"; if (lane & 134217728) return "SelectiveHydration"; if (lane & 268435456) return "IdleHydration"; if (lane & 536870912) return "Idle"; if (lane & 1073741824) return "Offscreen"; } } -var nextTransitionLane = 64, - nextRetryLane = 4194304; +var nextTransitionLane = 128, + nextRetryLane = 8388608; function getHighestPriorityLanes(lanes) { switch (lanes & -lanes) { case 1: @@ -1418,6 +1419,7 @@ function getHighestPriorityLanes(lanes) { case 32: return 32; case 64: + return 64; case 128: case 256: case 512: @@ -1433,13 +1435,13 @@ function getHighestPriorityLanes(lanes) { case 524288: case 1048576: case 2097152: - return lanes & 4194240; case 4194304: + return lanes & 8388480; case 8388608: case 16777216: case 33554432: case 67108864: - return lanes & 130023424; + return lanes & 125829120; case 134217728: return 134217728; case 268435456: @@ -1480,12 +1482,12 @@ function getNextLanes(root, wipLanes) { ((suspendedLanes = nextLanes & -nextLanes), (pingedLanes = wipLanes & -wipLanes), suspendedLanes >= pingedLanes || - (16 === suspendedLanes && 0 !== (pingedLanes & 4194240))) + (32 === suspendedLanes && 0 !== (pingedLanes & 8388480))) ) return wipLanes; 0 === (root.current.mode & 32) && - 0 !== (nextLanes & 4) && - (nextLanes |= pendingLanes & 16); + 0 !== (nextLanes & 8) && + (nextLanes |= pendingLanes & 32); wipLanes = root.entangledLanes; if (0 !== wipLanes) for (root = root.entanglements, wipLanes &= nextLanes; 0 < wipLanes; ) @@ -1500,8 +1502,8 @@ function computeExpirationTime(lane, currentTime) { case 1: case 2: case 4: - return currentTime + 250; case 8: + return currentTime + 250; case 16: case 32: case 64: @@ -1520,8 +1522,8 @@ function computeExpirationTime(lane, currentTime) { case 524288: case 1048576: case 2097152: - return currentTime + 5e3; case 4194304: + return currentTime + 5e3; case 8388608: case 16777216: case 33554432: @@ -1541,7 +1543,7 @@ function markStarvedLanesAsExpired(root, currentTime) { var suspendedLanes = root.suspendedLanes, pingedLanes = root.pingedLanes, expirationTimes = root.expirationTimes, - lanes = root.pendingLanes & -130023425; + lanes = root.pendingLanes & -125829121; 0 < lanes; ) { @@ -1561,12 +1563,12 @@ function getLanesToRetrySynchronouslyOnError(root, originallyAttemptedLanes) { return 0 !== root ? root : root & 1073741824 ? 1073741824 : 0; } function includesBlockingLane(root, lanes) { - return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 30); + return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 60); } function claimNextTransitionLane() { var lane = nextTransitionLane; nextTransitionLane <<= 1; - 0 === (nextTransitionLane & 4194240) && (nextTransitionLane = 64); + 0 === (nextTransitionLane & 8388480) && (nextTransitionLane = 128); return lane; } function createLaneMap(initial) { @@ -1687,13 +1689,13 @@ function runWithPriority(priority, fn) { } function lanesToEventPriority(lanes) { lanes &= -lanes; - return 1 < lanes - ? 4 < lanes + return 2 < lanes + ? 8 < lanes ? 0 !== (lanes & 268435455) - ? 16 + ? 32 : 536870912 - : 4 - : 1; + : 8 + : 2; } var _attemptSynchronousHydration, attemptDiscreteHydration, @@ -2062,10 +2064,10 @@ function createEventListenerWrapperWithPriority( eventSystemFlags ) { switch (getEventPriority(domEventName)) { - case 1: + case 2: var listenerWrapper = dispatchDiscreteEvent; break; - case 4: + case 8: listenerWrapper = dispatchContinuousEvent; break; default: @@ -2088,7 +2090,7 @@ function dispatchDiscreteEvent( prevTransition = ReactCurrentBatchConfig.transition; ReactCurrentBatchConfig.transition = null; try { - (currentUpdatePriority = 1), + (currentUpdatePriority = 2), dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); } finally { (currentUpdatePriority = previousPriority), @@ -2105,7 +2107,7 @@ function dispatchContinuousEvent( prevTransition = ReactCurrentBatchConfig.transition; ReactCurrentBatchConfig.transition = null; try { - (currentUpdatePriority = 4), + (currentUpdatePriority = 8), dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); } finally { (currentUpdatePriority = previousPriority), @@ -2327,7 +2329,7 @@ function getEventPriority(domEventName) { case "popstate": case "select": case "selectstart": - return 1; + return 2; case "drag": case "dragenter": case "dragexit": @@ -2347,23 +2349,23 @@ function getEventPriority(domEventName) { case "mouseleave": case "pointerenter": case "pointerleave": - return 4; + return 8; case "message": switch (getCurrentPriorityLevel()) { case ImmediatePriority: - return 1; + return 2; case UserBlockingPriority: - return 4; + return 8; case NormalPriority: case LowPriority: - return 16; + return 32; case IdlePriority: return 536870912; default: - return 16; + return 32; } default: - return 16; + return 32; } } function addEventBubbleListener(target, eventType, listener) { @@ -5323,7 +5325,7 @@ function flushSyncCallbacks() { previousUpdatePriority = currentUpdatePriority; try { var queue = syncQueue; - for (currentUpdatePriority = 1; i < queue.length; i++) { + for (currentUpdatePriority = 2; i < queue.length; i++) { var callback = queue[i]; do callback = callback(!0); while (null !== callback); @@ -6733,7 +6735,7 @@ function enqueueUpdate$1(fiber, update, lane) { } function entangleTransitions(root, fiber, lane) { fiber = fiber.updateQueue; - if (null !== fiber && ((fiber = fiber.shared), 0 !== (lane & 4194240))) { + if (null !== fiber && ((fiber = fiber.shared), 0 !== (lane & 8388480))) { var queueLanes = fiber.lanes; queueLanes &= root.pendingLanes; lane |= queueLanes; @@ -7582,8 +7584,8 @@ function checkIfSnapshotChanged(inst) { } } function forceStoreRerender(fiber) { - var root = enqueueConcurrentRenderForLane(fiber, 1); - null !== root && scheduleUpdateOnFiber(root, fiber, 1, -1); + var root = enqueueConcurrentRenderForLane(fiber, 2); + null !== root && scheduleUpdateOnFiber(root, fiber, 2, -1); } function mountState(initialState) { var hook = mountWorkInProgressHook(); @@ -7739,7 +7741,7 @@ function updateMemo(nextCreate, deps) { return nextCreate; } function updateDeferredValueImpl(hook, prevValue, value) { - if (0 === (renderLanes & 21)) + if (0 === (renderLanes & 42)) return ( hook.baseState && ((hook.baseState = !1), (didReceiveUpdate = !0)), (hook.memoizedState = value) @@ -7754,7 +7756,7 @@ function updateDeferredValueImpl(hook, prevValue, value) { function startTransition(setPending, callback, options) { var previousPriority = currentUpdatePriority; currentUpdatePriority = - 0 !== previousPriority && 4 > previousPriority ? previousPriority : 4; + 0 !== previousPriority && 8 > previousPriority ? previousPriority : 8; setPending(!0); var prevTransition = ReactCurrentBatchConfig$2.transition; ReactCurrentBatchConfig$2.transition = {}; @@ -7875,7 +7877,7 @@ function enqueueRenderPhaseUpdate(queue, update) { queue.pending = update; } function entangleTransitionUpdate(root, queue, lane) { - if (0 !== (lane & 4194240)) { + if (0 !== (lane & 8388480)) { var queueLanes = queue.lanes; queueLanes &= root.pendingLanes; lane |= queueLanes; @@ -8456,10 +8458,10 @@ function markSuspenseBoundaryShouldCapture( 1 === sourceFiber.tag && (null === sourceFiber.alternate ? (sourceFiber.tag = 17) - : ((returnFiber = createUpdate(-1, 1)), + : ((returnFiber = createUpdate(-1, 2)), (returnFiber.tag = 2), - enqueueUpdate$1(sourceFiber, returnFiber, 1))), - (sourceFiber.lanes |= 1)), + enqueueUpdate$1(sourceFiber, returnFiber, 2))), + (sourceFiber.lanes |= 2)), suspenseBoundary ); suspenseBoundary.flags |= 32768; @@ -9201,9 +9203,9 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ) return ( 0 === (workInProgress.mode & 1) - ? (workInProgress.lanes = 1) + ? (workInProgress.lanes = 2) : "$!" === current.data - ? (workInProgress.lanes = 8) + ? (workInProgress.lanes = 16) : (workInProgress.lanes = 1073741824), null ); @@ -9255,7 +9257,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - (workInProgress.lanes = 4194304), + (workInProgress.lanes = 8388608), current ); pushPrimaryTreeSuspenseHandler(workInProgress); @@ -9520,13 +9522,15 @@ function updateDehydratedSuspenseComponent( nextProps = workInProgressRoot; if (null !== nextProps) { switch (renderLanes & -renderLanes) { - case 4: - suspenseInstance = 2; + case 2: + suspenseInstance = 1; break; - case 16: - suspenseInstance = 8; + case 8: + suspenseInstance = 4; + break; + case 32: + suspenseInstance = 16; break; - case 64: case 128: case 256: case 512: @@ -9547,7 +9551,7 @@ function updateDehydratedSuspenseComponent( case 16777216: case 33554432: case 67108864: - suspenseInstance = 32; + suspenseInstance = 64; break; case 536870912: suspenseInstance = 268435456; @@ -10551,7 +10555,7 @@ function completeWork(current, workInProgress, renderLanes) { ((workInProgress.flags |= 64), (newProps = !0), cutOffTailIfNeeded(type, !1), - (workInProgress.lanes = 4194304)); + (workInProgress.lanes = 8388608)); } else { if (!newProps) @@ -10580,7 +10584,7 @@ function completeWork(current, workInProgress, renderLanes) { ((workInProgress.flags |= 64), (newProps = !0), cutOffTailIfNeeded(type, !1), - (workInProgress.lanes = 4194304)); + (workInProgress.lanes = 8388608)); type.isBackwards ? ((JSCompiler_inline_result.sibling = workInProgress.child), (workInProgress.child = JSCompiler_inline_result)) @@ -13352,7 +13356,7 @@ function requestEventTime() { : (currentEventTime = now()); } function requestUpdateLane(fiber) { - if (0 === (fiber.mode & 1)) return 1; + if (0 === (fiber.mode & 1)) return 2; if ( !deferRenderPhaseUpdateToNextBatch && 0 !== (executionContext & 2) && @@ -13368,7 +13372,7 @@ function requestUpdateLane(fiber) { fiber = currentUpdatePriority; if (0 !== fiber) return fiber; fiber = window.event; - fiber = void 0 === fiber ? 16 : getEventPriority(fiber.type); + fiber = void 0 === fiber ? 32 : getEventPriority(fiber.type); return fiber; } function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { @@ -13417,7 +13421,7 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { markRootSuspended$1(root, workInProgressRootRenderLanes); } ensureRootIsScheduled(root, eventTime); - 1 === lane && + 2 === lane && 0 === executionContext && 0 === (fiber.mode & 1) && (resetRenderTimer(), includesLegacySyncCallbacks && flushSyncCallbacks()); @@ -13439,7 +13443,7 @@ function ensureRootIsScheduled(root, currentTime) { root.callbackPriority !== currentTime) ) { null != existingCallbackNode && cancelCallback(existingCallbackNode); - if (1 === currentTime) + if (0 !== (currentTime & 3)) 0 === root.tag ? scheduleLegacySyncCallback(performSyncWorkOnRoot.bind(null, root)) : scheduleSyncCallback(performSyncWorkOnRoot.bind(null, root)), @@ -13449,13 +13453,13 @@ function ensureRootIsScheduled(root, currentTime) { (existingCallbackNode = null); else { switch (lanesToEventPriority(nextLanes)) { - case 1: + case 2: existingCallbackNode = ImmediatePriority; break; - case 4: + case 8: existingCallbackNode = UserBlockingPriority; break; - case 16: + case 32: existingCallbackNode = NormalPriority; break; case 536870912: @@ -13559,7 +13563,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) { case 3: markRootSuspended$1(root, lanes); if ( - (lanes & 130023424) === lanes && + (lanes & 125829120) === lanes && ((didTimeout = globalMostRecentFallbackTime + 500 - now()), 10 < didTimeout) ) { @@ -13590,7 +13594,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) { break; case 4: markRootSuspended$1(root, lanes); - if ((lanes & 4194240) === lanes) break; + if ((lanes & 8388480) === lanes) break; didTimeout = root.eventTimes; for (originallyAttemptedLanes = -1; 0 < lanes; ) (errorRetryLanes$236 = 31 - clz32(lanes)), @@ -13734,7 +13738,7 @@ function performSyncWorkOnRoot(root) { if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); flushPassiveEffects(); var lanes = getNextLanes(root, 0); - if (0 === (lanes & 1)) return ensureRootIsScheduled(root, now()), null; + if (0 === (lanes & 3)) return ensureRootIsScheduled(root, now()), null; var exitStatus = renderRootSync(root, lanes); if (0 !== root.tag && 2 === exitStatus) { var originallyAttemptedLanes = lanes, @@ -13794,7 +13798,7 @@ function flushSync(fn) { try { if ( ((ReactCurrentBatchConfig$3.transition = null), - (currentUpdatePriority = 1), + (currentUpdatePriority = 2), fn) ) return fn(); @@ -13884,7 +13888,7 @@ function handleThrow(root, thrownValue) { } function shouldAttemptToSuspendUntilDataResolves() { if ( - (workInProgressRootRenderLanes & 130023424) === + (workInProgressRootRenderLanes & 125829120) === workInProgressRootRenderLanes ) return !0; @@ -13894,7 +13898,7 @@ function shouldAttemptToSuspendUntilDataResolves() { ) return !1; if ( - (workInProgressRootRenderLanes & 4194240) === + (workInProgressRootRenderLanes & 8388480) === workInProgressRootRenderLanes ) { var suspenseHandler = suspenseHandlerStackCursor.current; @@ -14359,7 +14363,7 @@ function commitRoot(root, recoverableErrors, transitions) { prevTransition = ReactCurrentBatchConfig$3.transition; try { (ReactCurrentBatchConfig$3.transition = null), - (currentUpdatePriority = 1), + (currentUpdatePriority = 2), commitRootImpl( root, recoverableErrors, @@ -14416,7 +14420,7 @@ function commitRootImpl( transitions = ReactCurrentBatchConfig$3.transition; ReactCurrentBatchConfig$3.transition = null; var previousPriority = currentUpdatePriority; - currentUpdatePriority = 1; + currentUpdatePriority = 2; var prevExecutionContext = executionContext; executionContext |= 4; ReactCurrentOwner$2.current = null; @@ -14481,11 +14485,11 @@ function commitRootImpl( (root = firstUncaughtError), (firstUncaughtError = null), root); - 0 !== (pendingPassiveEffectsLanes & 1) && + 0 !== (pendingPassiveEffectsLanes & 3) && 0 !== root.tag && flushPassiveEffects(); remainingLanes = root.pendingLanes; - 0 !== (remainingLanes & 1) + 0 !== (remainingLanes & 3) ? ((nestedUpdateScheduled = !0), root === rootWithNestedUpdates ? nestedUpdateCount++ @@ -14524,7 +14528,7 @@ function flushPassiveEffects() { remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes); - renderPriority = 16 > renderPriority ? 16 : renderPriority; + renderPriority = 32 > renderPriority ? 32 : renderPriority; var prevTransition = ReactCurrentBatchConfig$3.transition, previousPriority = currentUpdatePriority; try { @@ -14606,11 +14610,11 @@ function flushPassiveEffectsImpl() { } function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) { sourceFiber = createCapturedValueAtFiber(error, sourceFiber); - sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 1); - rootFiber = enqueueUpdate$1(rootFiber, sourceFiber, 1); + sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 2); + rootFiber = enqueueUpdate$1(rootFiber, sourceFiber, 2); sourceFiber = requestEventTime(); null !== rootFiber && - (markRootUpdated(rootFiber, 1, sourceFiber), + (markRootUpdated(rootFiber, 2, sourceFiber), ensureRootIsScheduled(rootFiber, sourceFiber)); } function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) { @@ -14644,16 +14648,16 @@ function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) { sourceFiber = createClassErrorUpdate( nearestMountedAncestor, sourceFiber, - 1 + 2 ); nearestMountedAncestor = enqueueUpdate$1( nearestMountedAncestor, sourceFiber, - 1 + 2 ); sourceFiber = requestEventTime(); null !== nearestMountedAncestor && - (markRootUpdated(nearestMountedAncestor, 1, sourceFiber), + (markRootUpdated(nearestMountedAncestor, 2, sourceFiber), ensureRootIsScheduled(nearestMountedAncestor, sourceFiber)); break; } @@ -14687,7 +14691,7 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) { (workInProgressRootRenderLanes & pingedLanes) === pingedLanes && (4 === workInProgressRootExitStatus || (3 === workInProgressRootExitStatus && - (workInProgressRootRenderLanes & 130023424) === + (workInProgressRootRenderLanes & 125829120) === workInProgressRootRenderLanes && 500 > now() - globalMostRecentFallbackTime) ? prepareFreshStack(root, 0) @@ -14697,10 +14701,10 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) { function retryTimedOutBoundary(boundaryFiber, retryLane) { 0 === retryLane && (0 === (boundaryFiber.mode & 1) - ? (retryLane = 1) + ? (retryLane = 2) : ((retryLane = nextRetryLane), (nextRetryLane <<= 1), - 0 === (nextRetryLane & 130023424) && (nextRetryLane = 4194304))); + 0 === (nextRetryLane & 125829120) && (nextRetryLane = 8388608))); var eventTime = requestEventTime(); boundaryFiber = enqueueConcurrentRenderForLane(boundaryFiber, retryLane); null !== boundaryFiber && @@ -15764,7 +15768,7 @@ _attemptSynchronousHydration = function(fiber) { if (root$248.current.memoizedState.isDehydrated) { var lanes = getHighestPriorityLanes(root$248.pendingLanes); 0 !== lanes && - (markRootEntangled(root$248, lanes | 1), + (markRootEntangled(root$248, lanes | 2), ensureRootIsScheduled(root$248, now()), 0 === (executionContext & 6) && (resetRenderTimer(), flushSyncCallbacks())); @@ -15772,23 +15776,23 @@ _attemptSynchronousHydration = function(fiber) { break; case 13: flushSync(function() { - var root = enqueueConcurrentRenderForLane(fiber, 1); + var root = enqueueConcurrentRenderForLane(fiber, 2); if (null !== root) { var eventTime = requestEventTime(); - scheduleUpdateOnFiber(root, fiber, 1, eventTime); + scheduleUpdateOnFiber(root, fiber, 2, eventTime); } }), - markRetryLaneIfNotHydrated(fiber, 1); + markRetryLaneIfNotHydrated(fiber, 2); } }; attemptDiscreteHydration = function(fiber) { if (13 === fiber.tag) { - var root = enqueueConcurrentRenderForLane(fiber, 1); + var root = enqueueConcurrentRenderForLane(fiber, 2); if (null !== root) { var eventTime = requestEventTime(); - scheduleUpdateOnFiber(root, fiber, 1, eventTime); + scheduleUpdateOnFiber(root, fiber, 2, eventTime); } - markRetryLaneIfNotHydrated(fiber, 1); + markRetryLaneIfNotHydrated(fiber, 2); } }; attemptContinuousHydration = function(fiber) { @@ -15858,7 +15862,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1815 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-modern-2655c9354-20221121", + version: "18.3.0-www-modern-8a23def32-20221128", rendererPackageName: "react-dom" }; (function(internals) { @@ -15903,7 +15907,7 @@ var devToolsConfig$jscomp$inline_1815 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-next-2655c9354-20221121" + reconcilerVersion: "18.3.0-next-8a23def32-20221128" }); exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals; exports.createPortal = function(children, container) { @@ -16068,7 +16072,7 @@ exports.unstable_flushControlled = function(fn) { previousPriority = currentUpdatePriority; try { (ReactCurrentBatchConfig$3.transition = null), - (currentUpdatePriority = 1), + (currentUpdatePriority = 2), fn(); } finally { (currentUpdatePriority = previousPriority), @@ -16079,7 +16083,7 @@ exports.unstable_flushControlled = function(fn) { }; exports.unstable_isNewReconciler = !1; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-next-2655c9354-20221121"; +exports.version = "18.3.0-next-8a23def32-20221128"; /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ if ( diff --git a/compiled/facebook-www/ReactDOMForked-dev.classic.js b/compiled/facebook-www/ReactDOMForked-dev.classic.js index 52d4fdd0f7..0781583914 100644 --- a/compiled/facebook-www/ReactDOMForked-dev.classic.js +++ b/compiled/facebook-www/ReactDOMForked-dev.classic.js @@ -7988,91 +7988,91 @@ var NoLanes = var NoLane = /* */ 0; +var SyncHydrationLane = + /* */ + 1; var SyncLane = /* */ - 1; + 2; var InputContinuousHydrationLane = /* */ - 2; + 4; var InputContinuousLane = /* */ - 4; + 8; var DefaultHydrationLane = /* */ - 8; + 16; var DefaultLane = /* */ - 16; + 32; var TransitionHydrationLane = /* */ - 32; + 64; var TransitionLanes = /* */ - 4194240; + 8388480; var TransitionLane1 = /* */ - 64; + 128; var TransitionLane2 = /* */ - 128; + 256; var TransitionLane3 = /* */ - 256; + 512; var TransitionLane4 = /* */ - 512; + 1024; var TransitionLane5 = /* */ - 1024; + 2048; var TransitionLane6 = /* */ - 2048; + 4096; var TransitionLane7 = /* */ - 4096; + 8192; var TransitionLane8 = /* */ - 8192; + 16384; var TransitionLane9 = /* */ - 16384; + 32768; var TransitionLane10 = /* */ - 32768; + 65536; var TransitionLane11 = /* */ - 65536; + 131072; var TransitionLane12 = /* */ - 131072; + 262144; var TransitionLane13 = /* */ - 262144; + 524288; var TransitionLane14 = /* */ - 524288; + 1048576; var TransitionLane15 = /* */ - 1048576; + 2097152; var TransitionLane16 = /* */ - 2097152; + 4194304; var RetryLanes = /* */ - 130023424; + 125829120; var RetryLane1 = /* */ - 4194304; + 8388608; var RetryLane2 = /* */ - 8388608; + 16777216; var RetryLane3 = - /* */ - 16777216; -var RetryLane4 = /* */ 33554432; -var RetryLane5 = +var RetryLane4 = /* */ 67108864; var SomeRetryLane = RetryLane1; @@ -8095,6 +8095,10 @@ var OffscreenLane = function getLabelForLane(lane) { if (enableSchedulingProfiler) { + if (lane & SyncHydrationLane) { + return "SyncHydrationLane"; + } + if (lane & SyncLane) { return "Sync"; } @@ -8150,6 +8154,9 @@ var nextRetryLane = RetryLane1; function getHighestPriorityLanes(lanes) { switch (getHighestPriorityLane(lanes)) { + case SyncHydrationLane: + return SyncHydrationLane; + case SyncLane: return SyncLane; @@ -8190,7 +8197,6 @@ function getHighestPriorityLanes(lanes) { case RetryLane2: case RetryLane3: case RetryLane4: - case RetryLane5: return lanes & RetryLanes; case SelectiveHydrationLane: @@ -8351,6 +8357,7 @@ function getMostRecentEventTime(root, lanes) { function computeExpirationTime(lane, currentTime) { switch (lane) { + case SyncHydrationLane: case SyncLane: case InputContinuousHydrationLane: case InputContinuousLane: @@ -8390,7 +8397,6 @@ function computeExpirationTime(lane, currentTime) { case RetryLane2: case RetryLane3: case RetryLane4: - case RetryLane5: // TODO: Retries should be allowed to expire if they are CPU bound for // too long, but when I made this change it caused a spike in browser // crashes. There must be some other underlying bug; not super urgent but @@ -8478,6 +8484,9 @@ function getLanesToRetrySynchronouslyOnError(root, originallyAttemptedLanes) { return NoLanes; } +function includesSyncLane(lanes) { + return (lanes & (SyncLane | SyncHydrationLane)) !== NoLanes; +} function includesNonIdleWork(lanes) { return (lanes & NonIdleLanes) !== NoLanes; } @@ -8485,6 +8494,8 @@ function includesOnlyRetries(lanes) { return (lanes & RetryLanes) === lanes; } function includesOnlyNonUrgentLanes(lanes) { + // TODO: Should hydration lanes be included here? This function is only + // used in `updateDeferredValueImpl`. var UrgentLanes = SyncLane | InputContinuousLane | DefaultLane; return (lanes & UrgentLanes) === NoLanes; } @@ -8726,6 +8737,10 @@ function getBumpedLaneForHydration(root, renderLanes) { var lane; switch (renderLane) { + case SyncLane: + lane = SyncHydrationLane; + break; + case InputContinuousLane: lane = InputContinuousHydrationLane; break; @@ -8754,7 +8769,6 @@ function getBumpedLaneForHydration(root, renderLanes) { case RetryLane2: case RetryLane3: case RetryLane4: - case RetryLane5: lane = TransitionHydrationLane; break; @@ -38330,7 +38344,7 @@ function ensureRootIsScheduled(root, currentTime) { // TODO: Temporary until we confirm this warning is not fired. if ( existingCallbackNode == null && - existingCallbackPriority !== SyncLane + !includesSyncLane(existingCallbackPriority) ) { error( "Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue." @@ -38348,7 +38362,7 @@ function ensureRootIsScheduled(root, currentTime) { var newCallbackNode; - if (newCallbackPriority === SyncLane) { + if (includesSyncLane(newCallbackPriority)) { // Special case: Sync React callbacks are scheduled on a special // internal queue if (root.tag === LegacyRoot) { @@ -38905,7 +38919,7 @@ function performSyncWorkOnRoot(root) { flushPassiveEffects(); var lanes = getNextLanes(root, NoLanes); - if (!includesSomeLane(lanes, SyncLane)) { + if (!includesSyncLane(lanes)) { // There's no remaining sync work left. ensureRootIsScheduled(root, now()); return null; @@ -40290,16 +40304,13 @@ function commitRootImpl( // currently schedule the callback in multiple places, will wait until those // are consolidated. - if ( - includesSomeLane(pendingPassiveEffectsLanes, SyncLane) && - root.tag !== LegacyRoot - ) { + if (includesSyncLane(pendingPassiveEffectsLanes) && root.tag !== LegacyRoot) { flushPassiveEffects(); } // Read this again, since a passive effect might have updated it remainingLanes = root.pendingLanes; - if (includesSomeLane(remainingLanes, SyncLane)) { + if (includesSyncLane(remainingLanes)) { { markNestedUpdateScheduled(); } // Count the number of times the root synchronously re-renders without @@ -42570,7 +42581,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-classic-2655c9354-20221121"; +var ReactVersion = "18.3.0-www-classic-8a23def32-20221128"; function createPortal( children, diff --git a/compiled/facebook-www/ReactDOMForked-dev.modern.js b/compiled/facebook-www/ReactDOMForked-dev.modern.js index 18d785a1a7..25adfdad30 100644 --- a/compiled/facebook-www/ReactDOMForked-dev.modern.js +++ b/compiled/facebook-www/ReactDOMForked-dev.modern.js @@ -6157,91 +6157,91 @@ var NoLanes = var NoLane = /* */ 0; +var SyncHydrationLane = + /* */ + 1; var SyncLane = /* */ - 1; + 2; var InputContinuousHydrationLane = /* */ - 2; + 4; var InputContinuousLane = /* */ - 4; + 8; var DefaultHydrationLane = /* */ - 8; + 16; var DefaultLane = /* */ - 16; + 32; var TransitionHydrationLane = /* */ - 32; + 64; var TransitionLanes = /* */ - 4194240; + 8388480; var TransitionLane1 = /* */ - 64; + 128; var TransitionLane2 = /* */ - 128; + 256; var TransitionLane3 = /* */ - 256; + 512; var TransitionLane4 = /* */ - 512; + 1024; var TransitionLane5 = /* */ - 1024; + 2048; var TransitionLane6 = /* */ - 2048; + 4096; var TransitionLane7 = /* */ - 4096; + 8192; var TransitionLane8 = /* */ - 8192; + 16384; var TransitionLane9 = /* */ - 16384; + 32768; var TransitionLane10 = /* */ - 32768; + 65536; var TransitionLane11 = /* */ - 65536; + 131072; var TransitionLane12 = /* */ - 131072; + 262144; var TransitionLane13 = /* */ - 262144; + 524288; var TransitionLane14 = /* */ - 524288; + 1048576; var TransitionLane15 = /* */ - 1048576; + 2097152; var TransitionLane16 = /* */ - 2097152; + 4194304; var RetryLanes = /* */ - 130023424; + 125829120; var RetryLane1 = /* */ - 4194304; + 8388608; var RetryLane2 = /* */ - 8388608; + 16777216; var RetryLane3 = - /* */ - 16777216; -var RetryLane4 = /* */ 33554432; -var RetryLane5 = +var RetryLane4 = /* */ 67108864; var SomeRetryLane = RetryLane1; @@ -6264,6 +6264,10 @@ var OffscreenLane = function getLabelForLane(lane) { if (enableSchedulingProfiler) { + if (lane & SyncHydrationLane) { + return "SyncHydrationLane"; + } + if (lane & SyncLane) { return "Sync"; } @@ -6319,6 +6323,9 @@ var nextRetryLane = RetryLane1; function getHighestPriorityLanes(lanes) { switch (getHighestPriorityLane(lanes)) { + case SyncHydrationLane: + return SyncHydrationLane; + case SyncLane: return SyncLane; @@ -6359,7 +6366,6 @@ function getHighestPriorityLanes(lanes) { case RetryLane2: case RetryLane3: case RetryLane4: - case RetryLane5: return lanes & RetryLanes; case SelectiveHydrationLane: @@ -6520,6 +6526,7 @@ function getMostRecentEventTime(root, lanes) { function computeExpirationTime(lane, currentTime) { switch (lane) { + case SyncHydrationLane: case SyncLane: case InputContinuousHydrationLane: case InputContinuousLane: @@ -6559,7 +6566,6 @@ function computeExpirationTime(lane, currentTime) { case RetryLane2: case RetryLane3: case RetryLane4: - case RetryLane5: // TODO: Retries should be allowed to expire if they are CPU bound for // too long, but when I made this change it caused a spike in browser // crashes. There must be some other underlying bug; not super urgent but @@ -6647,6 +6653,9 @@ function getLanesToRetrySynchronouslyOnError(root, originallyAttemptedLanes) { return NoLanes; } +function includesSyncLane(lanes) { + return (lanes & (SyncLane | SyncHydrationLane)) !== NoLanes; +} function includesNonIdleWork(lanes) { return (lanes & NonIdleLanes) !== NoLanes; } @@ -6654,6 +6663,8 @@ function includesOnlyRetries(lanes) { return (lanes & RetryLanes) === lanes; } function includesOnlyNonUrgentLanes(lanes) { + // TODO: Should hydration lanes be included here? This function is only + // used in `updateDeferredValueImpl`. var UrgentLanes = SyncLane | InputContinuousLane | DefaultLane; return (lanes & UrgentLanes) === NoLanes; } @@ -6895,6 +6906,10 @@ function getBumpedLaneForHydration(root, renderLanes) { var lane; switch (renderLane) { + case SyncLane: + lane = SyncHydrationLane; + break; + case InputContinuousLane: lane = InputContinuousHydrationLane; break; @@ -6923,7 +6938,6 @@ function getBumpedLaneForHydration(root, renderLanes) { case RetryLane2: case RetryLane3: case RetryLane4: - case RetryLane5: lane = TransitionHydrationLane; break; @@ -38054,7 +38068,7 @@ function ensureRootIsScheduled(root, currentTime) { // TODO: Temporary until we confirm this warning is not fired. if ( existingCallbackNode == null && - existingCallbackPriority !== SyncLane + !includesSyncLane(existingCallbackPriority) ) { error( "Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue." @@ -38072,7 +38086,7 @@ function ensureRootIsScheduled(root, currentTime) { var newCallbackNode; - if (newCallbackPriority === SyncLane) { + if (includesSyncLane(newCallbackPriority)) { // Special case: Sync React callbacks are scheduled on a special // internal queue if (root.tag === LegacyRoot) { @@ -38629,7 +38643,7 @@ function performSyncWorkOnRoot(root) { flushPassiveEffects(); var lanes = getNextLanes(root, NoLanes); - if (!includesSomeLane(lanes, SyncLane)) { + if (!includesSyncLane(lanes)) { // There's no remaining sync work left. ensureRootIsScheduled(root, now()); return null; @@ -40014,16 +40028,13 @@ function commitRootImpl( // currently schedule the callback in multiple places, will wait until those // are consolidated. - if ( - includesSomeLane(pendingPassiveEffectsLanes, SyncLane) && - root.tag !== LegacyRoot - ) { + if (includesSyncLane(pendingPassiveEffectsLanes) && root.tag !== LegacyRoot) { flushPassiveEffects(); } // Read this again, since a passive effect might have updated it remainingLanes = root.pendingLanes; - if (includesSomeLane(remainingLanes, SyncLane)) { + if (includesSyncLane(remainingLanes)) { { markNestedUpdateScheduled(); } // Count the number of times the root synchronously re-renders without @@ -42294,7 +42305,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-modern-2655c9354-20221121"; +var ReactVersion = "18.3.0-www-modern-8a23def32-20221128"; function createPortal( children, diff --git a/compiled/facebook-www/ReactDOMForked-prod.classic.js b/compiled/facebook-www/ReactDOMForked-prod.classic.js index de05807608..21eb047ca3 100644 --- a/compiled/facebook-www/ReactDOMForked-prod.classic.js +++ b/compiled/facebook-www/ReactDOMForked-prod.classic.js @@ -1583,8 +1583,8 @@ function clz32Fallback(x) { x >>>= 0; return 0 === x ? 32 : (31 - ((log(x) / LN2) | 0)) | 0; } -var nextTransitionLane = 64, - nextRetryLane = 4194304; +var nextTransitionLane = 128, + nextRetryLane = 8388608; function getHighestPriorityLanes(lanes) { switch (lanes & -lanes) { case 1: @@ -1600,6 +1600,7 @@ function getHighestPriorityLanes(lanes) { case 32: return 32; case 64: + return 64; case 128: case 256: case 512: @@ -1615,13 +1616,13 @@ function getHighestPriorityLanes(lanes) { case 524288: case 1048576: case 2097152: - return lanes & 4194240; case 4194304: + return lanes & 8388480; case 8388608: case 16777216: case 33554432: case 67108864: - return lanes & 130023424; + return lanes & 125829120; case 134217728: return 134217728; case 268435456: @@ -1662,12 +1663,12 @@ function getNextLanes(root, wipLanes) { ((suspendedLanes = nextLanes & -nextLanes), (pingedLanes = wipLanes & -wipLanes), suspendedLanes >= pingedLanes || - (16 === suspendedLanes && 0 !== (pingedLanes & 4194240))) + (32 === suspendedLanes && 0 !== (pingedLanes & 8388480))) ) return wipLanes; 0 === (root.current.mode & 32) && - 0 !== (nextLanes & 4) && - (nextLanes |= pendingLanes & 16); + 0 !== (nextLanes & 8) && + (nextLanes |= pendingLanes & 32); wipLanes = root.entangledLanes; if (0 !== wipLanes) for (root = root.entanglements, wipLanes &= nextLanes; 0 < wipLanes; ) @@ -1682,8 +1683,8 @@ function computeExpirationTime(lane, currentTime) { case 1: case 2: case 4: - return currentTime + 250; case 8: + return currentTime + 250; case 16: case 32: case 64: @@ -1702,8 +1703,8 @@ function computeExpirationTime(lane, currentTime) { case 524288: case 1048576: case 2097152: - return currentTime + 5e3; case 4194304: + return currentTime + 5e3; case 8388608: case 16777216: case 33554432: @@ -1723,7 +1724,7 @@ function markStarvedLanesAsExpired(root, currentTime) { var suspendedLanes = root.suspendedLanes, pingedLanes = root.pingedLanes, expirationTimes = root.expirationTimes, - lanes = root.pendingLanes & -130023425; + lanes = root.pendingLanes & -125829121; 0 < lanes; ) { @@ -1743,12 +1744,12 @@ function getLanesToRetrySynchronouslyOnError(root, originallyAttemptedLanes) { return 0 !== root ? root : root & 1073741824 ? 1073741824 : 0; } function includesBlockingLane(root, lanes) { - return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 30); + return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 60); } function claimNextTransitionLane() { var lane = nextTransitionLane; nextTransitionLane <<= 1; - 0 === (nextTransitionLane & 4194240) && (nextTransitionLane = 64); + 0 === (nextTransitionLane & 8388480) && (nextTransitionLane = 128); return lane; } function createLaneMap(initial) { @@ -1839,13 +1840,13 @@ function runWithPriority(priority, fn) { } function lanesToEventPriority(lanes) { lanes &= -lanes; - return 1 < lanes - ? 4 < lanes + return 2 < lanes + ? 8 < lanes ? 0 !== (lanes & 268435455) - ? 16 + ? 32 : 536870912 - : 4 - : 1; + : 8 + : 2; } var Internals = { usingClientEntryPoint: !1, @@ -4930,10 +4931,10 @@ function createEventListenerWrapperWithPriority( eventSystemFlags ) { switch (getEventPriority(domEventName)) { - case 1: + case 2: var listenerWrapper = dispatchDiscreteEvent; break; - case 4: + case 8: listenerWrapper = dispatchContinuousEvent; break; default: @@ -4956,7 +4957,7 @@ function dispatchDiscreteEvent( prevTransition = ReactCurrentBatchConfig.transition; ReactCurrentBatchConfig.transition = null; try { - (currentUpdatePriority = 1), + (currentUpdatePriority = 2), dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); } finally { (currentUpdatePriority = previousPriority), @@ -4973,7 +4974,7 @@ function dispatchContinuousEvent( prevTransition = ReactCurrentBatchConfig.transition; ReactCurrentBatchConfig.transition = null; try { - (currentUpdatePriority = 4), + (currentUpdatePriority = 8), dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); } finally { (currentUpdatePriority = previousPriority), @@ -5195,7 +5196,7 @@ function getEventPriority(domEventName) { case "popstate": case "select": case "selectstart": - return 1; + return 2; case "drag": case "dragenter": case "dragexit": @@ -5215,23 +5216,23 @@ function getEventPriority(domEventName) { case "mouseleave": case "pointerenter": case "pointerleave": - return 4; + return 8; case "message": switch (getCurrentPriorityLevel()) { case ImmediatePriority: - return 1; + return 2; case UserBlockingPriority: - return 4; + return 8; case NormalPriority: case LowPriority: - return 16; + return 32; case IdlePriority: return 536870912; default: - return 16; + return 32; } default: - return 16; + return 32; } } var emptyContextObject = {}, @@ -5329,7 +5330,7 @@ function flushSyncCallbacks() { previousUpdatePriority = currentUpdatePriority; try { var queue = syncQueue; - for (currentUpdatePriority = 1; i < queue.length; i++) { + for (currentUpdatePriority = 2; i < queue.length; i++) { var callback = queue[i]; do callback = callback(!0); while (null !== callback); @@ -6739,7 +6740,7 @@ function enqueueUpdate$1(fiber, update, lane) { } function entangleTransitions(root, fiber, lane) { fiber = fiber.updateQueue; - if (null !== fiber && ((fiber = fiber.shared), 0 !== (lane & 4194240))) { + if (null !== fiber && ((fiber = fiber.shared), 0 !== (lane & 8388480))) { var queueLanes = fiber.lanes; queueLanes &= root.pendingLanes; lane |= queueLanes; @@ -7588,8 +7589,8 @@ function checkIfSnapshotChanged(inst) { } } function forceStoreRerender(fiber) { - var root = enqueueConcurrentRenderForLane(fiber, 1); - null !== root && scheduleUpdateOnFiber(root, fiber, 1, -1); + var root = enqueueConcurrentRenderForLane(fiber, 2); + null !== root && scheduleUpdateOnFiber(root, fiber, 2, -1); } function mountState(initialState) { var hook = mountWorkInProgressHook(); @@ -7745,7 +7746,7 @@ function updateMemo(nextCreate, deps) { return nextCreate; } function updateDeferredValueImpl(hook, prevValue, value) { - if (0 === (renderLanes & 21)) + if (0 === (renderLanes & 42)) return ( hook.baseState && ((hook.baseState = !1), (didReceiveUpdate = !0)), (hook.memoizedState = value) @@ -7760,7 +7761,7 @@ function updateDeferredValueImpl(hook, prevValue, value) { function startTransition(setPending, callback, options) { var previousPriority = currentUpdatePriority; currentUpdatePriority = - 0 !== previousPriority && 4 > previousPriority ? previousPriority : 4; + 0 !== previousPriority && 8 > previousPriority ? previousPriority : 8; setPending(!0); var prevTransition = ReactCurrentBatchConfig$2.transition; ReactCurrentBatchConfig$2.transition = {}; @@ -7879,7 +7880,7 @@ function enqueueRenderPhaseUpdate(queue, update) { queue.pending = update; } function entangleTransitionUpdate(root, queue, lane) { - if (0 !== (lane & 4194240)) { + if (0 !== (lane & 8388480)) { var queueLanes = queue.lanes; queueLanes &= root.pendingLanes; lane |= queueLanes; @@ -8405,10 +8406,10 @@ function markSuspenseBoundaryShouldCapture( 1 === sourceFiber.tag && (null === sourceFiber.alternate ? (sourceFiber.tag = 17) - : ((returnFiber = createUpdate(-1, 1)), + : ((returnFiber = createUpdate(-1, 2)), (returnFiber.tag = 2), - enqueueUpdate$1(sourceFiber, returnFiber, 1))), - (sourceFiber.lanes |= 1)), + enqueueUpdate$1(sourceFiber, returnFiber, 2))), + (sourceFiber.lanes |= 2)), suspenseBoundary ); suspenseBoundary.flags |= 32768; @@ -9179,9 +9180,9 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ) return ( 0 === (workInProgress.mode & 1) - ? (workInProgress.lanes = 1) + ? (workInProgress.lanes = 2) : "$!" === current.data - ? (workInProgress.lanes = 8) + ? (workInProgress.lanes = 16) : (workInProgress.lanes = 1073741824), null ); @@ -9233,7 +9234,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - (workInProgress.lanes = 4194304), + (workInProgress.lanes = 8388608), current ); pushPrimaryTreeSuspenseHandler(workInProgress); @@ -9488,13 +9489,15 @@ function updateDehydratedSuspenseComponent( nextProps = workInProgressRoot; if (null !== nextProps) { switch (renderLanes & -renderLanes) { - case 4: - suspenseInstance = 2; + case 2: + suspenseInstance = 1; break; - case 16: - suspenseInstance = 8; + case 8: + suspenseInstance = 4; + break; + case 32: + suspenseInstance = 16; break; - case 64: case 128: case 256: case 512: @@ -9515,7 +9518,7 @@ function updateDehydratedSuspenseComponent( case 16777216: case 33554432: case 67108864: - suspenseInstance = 32; + suspenseInstance = 64; break; case 536870912: suspenseInstance = 268435456; @@ -10466,7 +10469,7 @@ function completeWork(current, workInProgress, renderLanes) { ((workInProgress.flags |= 64), (newProps = !0), cutOffTailIfNeeded(type, !1), - (workInProgress.lanes = 4194304)); + (workInProgress.lanes = 8388608)); } else { if (!newProps) @@ -10495,7 +10498,7 @@ function completeWork(current, workInProgress, renderLanes) { ((workInProgress.flags |= 64), (newProps = !0), cutOffTailIfNeeded(type, !1), - (workInProgress.lanes = 4194304)); + (workInProgress.lanes = 8388608)); type.isBackwards ? ((JSCompiler_inline_result.sibling = workInProgress.child), (workInProgress.child = JSCompiler_inline_result)) @@ -12997,7 +13000,7 @@ function requestEventTime() { : (currentEventTime = now()); } function requestUpdateLane(fiber) { - if (0 === (fiber.mode & 1)) return 1; + if (0 === (fiber.mode & 1)) return 2; if ( !deferRenderPhaseUpdateToNextBatch && 0 !== (executionContext & 2) && @@ -13013,7 +13016,7 @@ function requestUpdateLane(fiber) { fiber = currentUpdatePriority; if (0 !== fiber) return fiber; fiber = window.event; - fiber = void 0 === fiber ? 16 : getEventPriority(fiber.type); + fiber = void 0 === fiber ? 32 : getEventPriority(fiber.type); return fiber; } function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { @@ -13046,7 +13049,7 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { markRootSuspended$1(root, workInProgressRootRenderLanes); } ensureRootIsScheduled(root, eventTime); - 1 === lane && + 2 === lane && 0 === executionContext && 0 === (fiber.mode & 1) && (resetRenderTimer(), includesLegacySyncCallbacks && flushSyncCallbacks()); @@ -13068,7 +13071,7 @@ function ensureRootIsScheduled(root, currentTime) { root.callbackPriority !== currentTime) ) { null != existingCallbackNode && cancelCallback(existingCallbackNode); - if (1 === currentTime) + if (0 !== (currentTime & 3)) 0 === root.tag ? scheduleLegacySyncCallback(performSyncWorkOnRoot.bind(null, root)) : scheduleSyncCallback(performSyncWorkOnRoot.bind(null, root)), @@ -13078,13 +13081,13 @@ function ensureRootIsScheduled(root, currentTime) { (existingCallbackNode = null); else { switch (lanesToEventPriority(nextLanes)) { - case 1: + case 2: existingCallbackNode = ImmediatePriority; break; - case 4: + case 8: existingCallbackNode = UserBlockingPriority; break; - case 16: + case 32: existingCallbackNode = NormalPriority; break; case 536870912: @@ -13187,7 +13190,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) { case 3: markRootSuspended$1(root, lanes); if ( - (lanes & 130023424) === lanes && + (lanes & 125829120) === lanes && ((didTimeout = globalMostRecentFallbackTime + 500 - now()), 10 < didTimeout) ) { @@ -13218,7 +13221,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) { break; case 4: markRootSuspended$1(root, lanes); - if ((lanes & 4194240) === lanes) break; + if ((lanes & 8388480) === lanes) break; didTimeout = root.eventTimes; for (originallyAttemptedLanes = -1; 0 < lanes; ) (errorRetryLanes$215 = 31 - clz32(lanes)), @@ -13360,7 +13363,7 @@ function performSyncWorkOnRoot(root) { if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); flushPassiveEffects(); var lanes = getNextLanes(root, 0); - if (0 === (lanes & 1)) return ensureRootIsScheduled(root, now()), null; + if (0 === (lanes & 3)) return ensureRootIsScheduled(root, now()), null; var exitStatus = renderRootSync(root, lanes); if (0 !== root.tag && 2 === exitStatus) { var originallyAttemptedLanes = lanes, @@ -13420,7 +13423,7 @@ function flushSync(fn) { try { if ( ((ReactCurrentBatchConfig$3.transition = null), - (currentUpdatePriority = 1), + (currentUpdatePriority = 2), fn) ) return fn(); @@ -13489,7 +13492,7 @@ function handleThrow(root, thrownValue) { } function shouldAttemptToSuspendUntilDataResolves() { if ( - (workInProgressRootRenderLanes & 130023424) === + (workInProgressRootRenderLanes & 125829120) === workInProgressRootRenderLanes ) return !0; @@ -13499,7 +13502,7 @@ function shouldAttemptToSuspendUntilDataResolves() { ) return !1; if ( - (workInProgressRootRenderLanes & 4194240) === + (workInProgressRootRenderLanes & 8388480) === workInProgressRootRenderLanes ) { var suspenseHandler = suspenseHandlerStackCursor.current; @@ -13912,7 +13915,7 @@ function commitRoot(root, recoverableErrors, transitions) { prevTransition = ReactCurrentBatchConfig$3.transition; try { (ReactCurrentBatchConfig$3.transition = null), - (currentUpdatePriority = 1), + (currentUpdatePriority = 2), commitRootImpl( root, recoverableErrors, @@ -13963,7 +13966,7 @@ function commitRootImpl( transitions = ReactCurrentBatchConfig$3.transition; ReactCurrentBatchConfig$3.transition = null; var previousPriority = currentUpdatePriority; - currentUpdatePriority = 1; + currentUpdatePriority = 2; var prevExecutionContext = executionContext; executionContext |= 4; ReactCurrentOwner$2.current = null; @@ -14012,11 +14015,11 @@ function commitRootImpl( (root = firstUncaughtError), (firstUncaughtError = null), root); - 0 !== (pendingPassiveEffectsLanes & 1) && + 0 !== (pendingPassiveEffectsLanes & 3) && 0 !== root.tag && flushPassiveEffects(); remainingLanes = root.pendingLanes; - 0 !== (remainingLanes & 1) + 0 !== (remainingLanes & 3) ? root === rootWithNestedUpdates ? nestedUpdateCount++ : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root)) @@ -14053,7 +14056,7 @@ function flushPassiveEffects() { remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes); - renderPriority = 16 > renderPriority ? 16 : renderPriority; + renderPriority = 32 > renderPriority ? 32 : renderPriority; var prevTransition = ReactCurrentBatchConfig$3.transition, previousPriority = currentUpdatePriority; try { @@ -14109,11 +14112,11 @@ function flushPassiveEffectsImpl() { } function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) { sourceFiber = createCapturedValueAtFiber(error, sourceFiber); - sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 1); - rootFiber = enqueueUpdate$1(rootFiber, sourceFiber, 1); + sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 2); + rootFiber = enqueueUpdate$1(rootFiber, sourceFiber, 2); sourceFiber = requestEventTime(); null !== rootFiber && - (markRootUpdated(rootFiber, 1, sourceFiber), + (markRootUpdated(rootFiber, 2, sourceFiber), ensureRootIsScheduled(rootFiber, sourceFiber)); } function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) { @@ -14147,16 +14150,16 @@ function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) { sourceFiber = createClassErrorUpdate( nearestMountedAncestor, sourceFiber, - 1 + 2 ); nearestMountedAncestor = enqueueUpdate$1( nearestMountedAncestor, sourceFiber, - 1 + 2 ); sourceFiber = requestEventTime(); null !== nearestMountedAncestor && - (markRootUpdated(nearestMountedAncestor, 1, sourceFiber), + (markRootUpdated(nearestMountedAncestor, 2, sourceFiber), ensureRootIsScheduled(nearestMountedAncestor, sourceFiber)); break; } @@ -14189,7 +14192,7 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) { (workInProgressRootRenderLanes & pingedLanes) === pingedLanes && (4 === workInProgressRootExitStatus || (3 === workInProgressRootExitStatus && - (workInProgressRootRenderLanes & 130023424) === + (workInProgressRootRenderLanes & 125829120) === workInProgressRootRenderLanes && 500 > now() - globalMostRecentFallbackTime) ? prepareFreshStack(root, 0) @@ -14199,10 +14202,10 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) { function retryTimedOutBoundary(boundaryFiber, retryLane) { 0 === retryLane && (0 === (boundaryFiber.mode & 1) - ? (retryLane = 1) + ? (retryLane = 2) : ((retryLane = nextRetryLane), (nextRetryLane <<= 1), - 0 === (nextRetryLane & 130023424) && (nextRetryLane = 4194304))); + 0 === (nextRetryLane & 125829120) && (nextRetryLane = 8388608))); var eventTime = requestEventTime(); boundaryFiber = enqueueConcurrentRenderForLane(boundaryFiber, retryLane); null !== boundaryFiber && @@ -15447,7 +15450,7 @@ _attemptSynchronousHydration = function(fiber) { if (root$226.current.memoizedState.isDehydrated) { var lanes = getHighestPriorityLanes(root$226.pendingLanes); 0 !== lanes && - (markRootEntangled(root$226, lanes | 1), + (markRootEntangled(root$226, lanes | 2), ensureRootIsScheduled(root$226, now()), 0 === (executionContext & 6) && (resetRenderTimer(), flushSyncCallbacks())); @@ -15455,23 +15458,23 @@ _attemptSynchronousHydration = function(fiber) { break; case 13: flushSync(function() { - var root = enqueueConcurrentRenderForLane(fiber, 1); + var root = enqueueConcurrentRenderForLane(fiber, 2); if (null !== root) { var eventTime = requestEventTime(); - scheduleUpdateOnFiber(root, fiber, 1, eventTime); + scheduleUpdateOnFiber(root, fiber, 2, eventTime); } }), - markRetryLaneIfNotHydrated(fiber, 1); + markRetryLaneIfNotHydrated(fiber, 2); } }; attemptDiscreteHydration = function(fiber) { if (13 === fiber.tag) { - var root = enqueueConcurrentRenderForLane(fiber, 1); + var root = enqueueConcurrentRenderForLane(fiber, 2); if (null !== root) { var eventTime = requestEventTime(); - scheduleUpdateOnFiber(root, fiber, 1, eventTime); + scheduleUpdateOnFiber(root, fiber, 2, eventTime); } - markRetryLaneIfNotHydrated(fiber, 1); + markRetryLaneIfNotHydrated(fiber, 2); } }; attemptContinuousHydration = function(fiber) { @@ -15541,7 +15544,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1770 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-classic-2655c9354-20221121", + version: "18.3.0-www-classic-8a23def32-20221128", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2151 = { @@ -15571,7 +15574,7 @@ var internals$jscomp$inline_2151 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-next-2655c9354-20221121" + reconcilerVersion: "18.3.0-next-8a23def32-20221128" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2152 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -15785,7 +15788,7 @@ exports.unstable_flushControlled = function(fn) { previousPriority = currentUpdatePriority; try { (ReactCurrentBatchConfig$3.transition = null), - (currentUpdatePriority = 1), + (currentUpdatePriority = 2), fn(); } finally { (currentUpdatePriority = previousPriority), @@ -15814,4 +15817,4 @@ exports.unstable_renderSubtreeIntoContainer = function( ); }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-next-2655c9354-20221121"; +exports.version = "18.3.0-next-8a23def32-20221128"; diff --git a/compiled/facebook-www/ReactDOMForked-prod.modern.js b/compiled/facebook-www/ReactDOMForked-prod.modern.js index 08fca960d6..ceac23a7a4 100644 --- a/compiled/facebook-www/ReactDOMForked-prod.modern.js +++ b/compiled/facebook-www/ReactDOMForked-prod.modern.js @@ -1288,8 +1288,8 @@ function clz32Fallback(x) { x >>>= 0; return 0 === x ? 32 : (31 - ((log(x) / LN2) | 0)) | 0; } -var nextTransitionLane = 64, - nextRetryLane = 4194304; +var nextTransitionLane = 128, + nextRetryLane = 8388608; function getHighestPriorityLanes(lanes) { switch (lanes & -lanes) { case 1: @@ -1305,6 +1305,7 @@ function getHighestPriorityLanes(lanes) { case 32: return 32; case 64: + return 64; case 128: case 256: case 512: @@ -1320,13 +1321,13 @@ function getHighestPriorityLanes(lanes) { case 524288: case 1048576: case 2097152: - return lanes & 4194240; case 4194304: + return lanes & 8388480; case 8388608: case 16777216: case 33554432: case 67108864: - return lanes & 130023424; + return lanes & 125829120; case 134217728: return 134217728; case 268435456: @@ -1367,12 +1368,12 @@ function getNextLanes(root, wipLanes) { ((suspendedLanes = nextLanes & -nextLanes), (pingedLanes = wipLanes & -wipLanes), suspendedLanes >= pingedLanes || - (16 === suspendedLanes && 0 !== (pingedLanes & 4194240))) + (32 === suspendedLanes && 0 !== (pingedLanes & 8388480))) ) return wipLanes; 0 === (root.current.mode & 32) && - 0 !== (nextLanes & 4) && - (nextLanes |= pendingLanes & 16); + 0 !== (nextLanes & 8) && + (nextLanes |= pendingLanes & 32); wipLanes = root.entangledLanes; if (0 !== wipLanes) for (root = root.entanglements, wipLanes &= nextLanes; 0 < wipLanes; ) @@ -1387,8 +1388,8 @@ function computeExpirationTime(lane, currentTime) { case 1: case 2: case 4: - return currentTime + 250; case 8: + return currentTime + 250; case 16: case 32: case 64: @@ -1407,8 +1408,8 @@ function computeExpirationTime(lane, currentTime) { case 524288: case 1048576: case 2097152: - return currentTime + 5e3; case 4194304: + return currentTime + 5e3; case 8388608: case 16777216: case 33554432: @@ -1428,7 +1429,7 @@ function markStarvedLanesAsExpired(root, currentTime) { var suspendedLanes = root.suspendedLanes, pingedLanes = root.pingedLanes, expirationTimes = root.expirationTimes, - lanes = root.pendingLanes & -130023425; + lanes = root.pendingLanes & -125829121; 0 < lanes; ) { @@ -1448,12 +1449,12 @@ function getLanesToRetrySynchronouslyOnError(root, originallyAttemptedLanes) { return 0 !== root ? root : root & 1073741824 ? 1073741824 : 0; } function includesBlockingLane(root, lanes) { - return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 30); + return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 60); } function claimNextTransitionLane() { var lane = nextTransitionLane; nextTransitionLane <<= 1; - 0 === (nextTransitionLane & 4194240) && (nextTransitionLane = 64); + 0 === (nextTransitionLane & 8388480) && (nextTransitionLane = 128); return lane; } function createLaneMap(initial) { @@ -1544,13 +1545,13 @@ function runWithPriority(priority, fn) { } function lanesToEventPriority(lanes) { lanes &= -lanes; - return 1 < lanes - ? 4 < lanes + return 2 < lanes + ? 8 < lanes ? 0 !== (lanes & 268435455) - ? 16 + ? 32 : 536870912 - : 4 - : 1; + : 8 + : 2; } var _attemptSynchronousHydration, attemptDiscreteHydration, @@ -1919,10 +1920,10 @@ function createEventListenerWrapperWithPriority( eventSystemFlags ) { switch (getEventPriority(domEventName)) { - case 1: + case 2: var listenerWrapper = dispatchDiscreteEvent; break; - case 4: + case 8: listenerWrapper = dispatchContinuousEvent; break; default: @@ -1945,7 +1946,7 @@ function dispatchDiscreteEvent( prevTransition = ReactCurrentBatchConfig.transition; ReactCurrentBatchConfig.transition = null; try { - (currentUpdatePriority = 1), + (currentUpdatePriority = 2), dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); } finally { (currentUpdatePriority = previousPriority), @@ -1962,7 +1963,7 @@ function dispatchContinuousEvent( prevTransition = ReactCurrentBatchConfig.transition; ReactCurrentBatchConfig.transition = null; try { - (currentUpdatePriority = 4), + (currentUpdatePriority = 8), dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); } finally { (currentUpdatePriority = previousPriority), @@ -2184,7 +2185,7 @@ function getEventPriority(domEventName) { case "popstate": case "select": case "selectstart": - return 1; + return 2; case "drag": case "dragenter": case "dragexit": @@ -2204,23 +2205,23 @@ function getEventPriority(domEventName) { case "mouseleave": case "pointerenter": case "pointerleave": - return 4; + return 8; case "message": switch (getCurrentPriorityLevel()) { case ImmediatePriority: - return 1; + return 2; case UserBlockingPriority: - return 4; + return 8; case NormalPriority: case LowPriority: - return 16; + return 32; case IdlePriority: return 536870912; default: - return 16; + return 32; } default: - return 16; + return 32; } } function addEventBubbleListener(target, eventType, listener) { @@ -5180,7 +5181,7 @@ function flushSyncCallbacks() { previousUpdatePriority = currentUpdatePriority; try { var queue = syncQueue; - for (currentUpdatePriority = 1; i < queue.length; i++) { + for (currentUpdatePriority = 2; i < queue.length; i++) { var callback = queue[i]; do callback = callback(!0); while (null !== callback); @@ -6590,7 +6591,7 @@ function enqueueUpdate$1(fiber, update, lane) { } function entangleTransitions(root, fiber, lane) { fiber = fiber.updateQueue; - if (null !== fiber && ((fiber = fiber.shared), 0 !== (lane & 4194240))) { + if (null !== fiber && ((fiber = fiber.shared), 0 !== (lane & 8388480))) { var queueLanes = fiber.lanes; queueLanes &= root.pendingLanes; lane |= queueLanes; @@ -7439,8 +7440,8 @@ function checkIfSnapshotChanged(inst) { } } function forceStoreRerender(fiber) { - var root = enqueueConcurrentRenderForLane(fiber, 1); - null !== root && scheduleUpdateOnFiber(root, fiber, 1, -1); + var root = enqueueConcurrentRenderForLane(fiber, 2); + null !== root && scheduleUpdateOnFiber(root, fiber, 2, -1); } function mountState(initialState) { var hook = mountWorkInProgressHook(); @@ -7596,7 +7597,7 @@ function updateMemo(nextCreate, deps) { return nextCreate; } function updateDeferredValueImpl(hook, prevValue, value) { - if (0 === (renderLanes & 21)) + if (0 === (renderLanes & 42)) return ( hook.baseState && ((hook.baseState = !1), (didReceiveUpdate = !0)), (hook.memoizedState = value) @@ -7611,7 +7612,7 @@ function updateDeferredValueImpl(hook, prevValue, value) { function startTransition(setPending, callback, options) { var previousPriority = currentUpdatePriority; currentUpdatePriority = - 0 !== previousPriority && 4 > previousPriority ? previousPriority : 4; + 0 !== previousPriority && 8 > previousPriority ? previousPriority : 8; setPending(!0); var prevTransition = ReactCurrentBatchConfig$2.transition; ReactCurrentBatchConfig$2.transition = {}; @@ -7730,7 +7731,7 @@ function enqueueRenderPhaseUpdate(queue, update) { queue.pending = update; } function entangleTransitionUpdate(root, queue, lane) { - if (0 !== (lane & 4194240)) { + if (0 !== (lane & 8388480)) { var queueLanes = queue.lanes; queueLanes &= root.pendingLanes; lane |= queueLanes; @@ -8242,10 +8243,10 @@ function markSuspenseBoundaryShouldCapture( 1 === sourceFiber.tag && (null === sourceFiber.alternate ? (sourceFiber.tag = 17) - : ((returnFiber = createUpdate(-1, 1)), + : ((returnFiber = createUpdate(-1, 2)), (returnFiber.tag = 2), - enqueueUpdate$1(sourceFiber, returnFiber, 1))), - (sourceFiber.lanes |= 1)), + enqueueUpdate$1(sourceFiber, returnFiber, 2))), + (sourceFiber.lanes |= 2)), suspenseBoundary ); suspenseBoundary.flags |= 32768; @@ -8980,9 +8981,9 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ) return ( 0 === (workInProgress.mode & 1) - ? (workInProgress.lanes = 1) + ? (workInProgress.lanes = 2) : "$!" === current.data - ? (workInProgress.lanes = 8) + ? (workInProgress.lanes = 16) : (workInProgress.lanes = 1073741824), null ); @@ -9034,7 +9035,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - (workInProgress.lanes = 4194304), + (workInProgress.lanes = 8388608), current ); pushPrimaryTreeSuspenseHandler(workInProgress); @@ -9289,13 +9290,15 @@ function updateDehydratedSuspenseComponent( nextProps = workInProgressRoot; if (null !== nextProps) { switch (renderLanes & -renderLanes) { - case 4: - suspenseInstance = 2; + case 2: + suspenseInstance = 1; break; - case 16: - suspenseInstance = 8; + case 8: + suspenseInstance = 4; + break; + case 32: + suspenseInstance = 16; break; - case 64: case 128: case 256: case 512: @@ -9316,7 +9319,7 @@ function updateDehydratedSuspenseComponent( case 16777216: case 33554432: case 67108864: - suspenseInstance = 32; + suspenseInstance = 64; break; case 536870912: suspenseInstance = 268435456; @@ -10253,7 +10256,7 @@ function completeWork(current, workInProgress, renderLanes) { ((workInProgress.flags |= 64), (newProps = !0), cutOffTailIfNeeded(type, !1), - (workInProgress.lanes = 4194304)); + (workInProgress.lanes = 8388608)); } else { if (!newProps) @@ -10282,7 +10285,7 @@ function completeWork(current, workInProgress, renderLanes) { ((workInProgress.flags |= 64), (newProps = !0), cutOffTailIfNeeded(type, !1), - (workInProgress.lanes = 4194304)); + (workInProgress.lanes = 8388608)); type.isBackwards ? ((JSCompiler_inline_result.sibling = workInProgress.child), (workInProgress.child = JSCompiler_inline_result)) @@ -12775,7 +12778,7 @@ function requestEventTime() { : (currentEventTime = now()); } function requestUpdateLane(fiber) { - if (0 === (fiber.mode & 1)) return 1; + if (0 === (fiber.mode & 1)) return 2; if ( !deferRenderPhaseUpdateToNextBatch && 0 !== (executionContext & 2) && @@ -12791,7 +12794,7 @@ function requestUpdateLane(fiber) { fiber = currentUpdatePriority; if (0 !== fiber) return fiber; fiber = window.event; - fiber = void 0 === fiber ? 16 : getEventPriority(fiber.type); + fiber = void 0 === fiber ? 32 : getEventPriority(fiber.type); return fiber; } function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { @@ -12824,7 +12827,7 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { markRootSuspended$1(root, workInProgressRootRenderLanes); } ensureRootIsScheduled(root, eventTime); - 1 === lane && + 2 === lane && 0 === executionContext && 0 === (fiber.mode & 1) && (resetRenderTimer(), includesLegacySyncCallbacks && flushSyncCallbacks()); @@ -12846,7 +12849,7 @@ function ensureRootIsScheduled(root, currentTime) { root.callbackPriority !== currentTime) ) { null != existingCallbackNode && cancelCallback(existingCallbackNode); - if (1 === currentTime) + if (0 !== (currentTime & 3)) 0 === root.tag ? scheduleLegacySyncCallback(performSyncWorkOnRoot.bind(null, root)) : scheduleSyncCallback(performSyncWorkOnRoot.bind(null, root)), @@ -12856,13 +12859,13 @@ function ensureRootIsScheduled(root, currentTime) { (existingCallbackNode = null); else { switch (lanesToEventPriority(nextLanes)) { - case 1: + case 2: existingCallbackNode = ImmediatePriority; break; - case 4: + case 8: existingCallbackNode = UserBlockingPriority; break; - case 16: + case 32: existingCallbackNode = NormalPriority; break; case 536870912: @@ -12965,7 +12968,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) { case 3: markRootSuspended$1(root, lanes); if ( - (lanes & 130023424) === lanes && + (lanes & 125829120) === lanes && ((didTimeout = globalMostRecentFallbackTime + 500 - now()), 10 < didTimeout) ) { @@ -12996,7 +12999,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) { break; case 4: markRootSuspended$1(root, lanes); - if ((lanes & 4194240) === lanes) break; + if ((lanes & 8388480) === lanes) break; didTimeout = root.eventTimes; for (originallyAttemptedLanes = -1; 0 < lanes; ) (errorRetryLanes$216 = 31 - clz32(lanes)), @@ -13138,7 +13141,7 @@ function performSyncWorkOnRoot(root) { if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); flushPassiveEffects(); var lanes = getNextLanes(root, 0); - if (0 === (lanes & 1)) return ensureRootIsScheduled(root, now()), null; + if (0 === (lanes & 3)) return ensureRootIsScheduled(root, now()), null; var exitStatus = renderRootSync(root, lanes); if (0 !== root.tag && 2 === exitStatus) { var originallyAttemptedLanes = lanes, @@ -13198,7 +13201,7 @@ function flushSync(fn) { try { if ( ((ReactCurrentBatchConfig$3.transition = null), - (currentUpdatePriority = 1), + (currentUpdatePriority = 2), fn) ) return fn(); @@ -13267,7 +13270,7 @@ function handleThrow(root, thrownValue) { } function shouldAttemptToSuspendUntilDataResolves() { if ( - (workInProgressRootRenderLanes & 130023424) === + (workInProgressRootRenderLanes & 125829120) === workInProgressRootRenderLanes ) return !0; @@ -13277,7 +13280,7 @@ function shouldAttemptToSuspendUntilDataResolves() { ) return !1; if ( - (workInProgressRootRenderLanes & 4194240) === + (workInProgressRootRenderLanes & 8388480) === workInProgressRootRenderLanes ) { var suspenseHandler = suspenseHandlerStackCursor.current; @@ -13690,7 +13693,7 @@ function commitRoot(root, recoverableErrors, transitions) { prevTransition = ReactCurrentBatchConfig$3.transition; try { (ReactCurrentBatchConfig$3.transition = null), - (currentUpdatePriority = 1), + (currentUpdatePriority = 2), commitRootImpl( root, recoverableErrors, @@ -13741,7 +13744,7 @@ function commitRootImpl( transitions = ReactCurrentBatchConfig$3.transition; ReactCurrentBatchConfig$3.transition = null; var previousPriority = currentUpdatePriority; - currentUpdatePriority = 1; + currentUpdatePriority = 2; var prevExecutionContext = executionContext; executionContext |= 4; ReactCurrentOwner$2.current = null; @@ -13790,11 +13793,11 @@ function commitRootImpl( (root = firstUncaughtError), (firstUncaughtError = null), root); - 0 !== (pendingPassiveEffectsLanes & 1) && + 0 !== (pendingPassiveEffectsLanes & 3) && 0 !== root.tag && flushPassiveEffects(); remainingLanes = root.pendingLanes; - 0 !== (remainingLanes & 1) + 0 !== (remainingLanes & 3) ? root === rootWithNestedUpdates ? nestedUpdateCount++ : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root)) @@ -13831,7 +13834,7 @@ function flushPassiveEffects() { remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes); - renderPriority = 16 > renderPriority ? 16 : renderPriority; + renderPriority = 32 > renderPriority ? 32 : renderPriority; var prevTransition = ReactCurrentBatchConfig$3.transition, previousPriority = currentUpdatePriority; try { @@ -13887,11 +13890,11 @@ function flushPassiveEffectsImpl() { } function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) { sourceFiber = createCapturedValueAtFiber(error, sourceFiber); - sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 1); - rootFiber = enqueueUpdate$1(rootFiber, sourceFiber, 1); + sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 2); + rootFiber = enqueueUpdate$1(rootFiber, sourceFiber, 2); sourceFiber = requestEventTime(); null !== rootFiber && - (markRootUpdated(rootFiber, 1, sourceFiber), + (markRootUpdated(rootFiber, 2, sourceFiber), ensureRootIsScheduled(rootFiber, sourceFiber)); } function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) { @@ -13925,16 +13928,16 @@ function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) { sourceFiber = createClassErrorUpdate( nearestMountedAncestor, sourceFiber, - 1 + 2 ); nearestMountedAncestor = enqueueUpdate$1( nearestMountedAncestor, sourceFiber, - 1 + 2 ); sourceFiber = requestEventTime(); null !== nearestMountedAncestor && - (markRootUpdated(nearestMountedAncestor, 1, sourceFiber), + (markRootUpdated(nearestMountedAncestor, 2, sourceFiber), ensureRootIsScheduled(nearestMountedAncestor, sourceFiber)); break; } @@ -13967,7 +13970,7 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) { (workInProgressRootRenderLanes & pingedLanes) === pingedLanes && (4 === workInProgressRootExitStatus || (3 === workInProgressRootExitStatus && - (workInProgressRootRenderLanes & 130023424) === + (workInProgressRootRenderLanes & 125829120) === workInProgressRootRenderLanes && 500 > now() - globalMostRecentFallbackTime) ? prepareFreshStack(root, 0) @@ -13977,10 +13980,10 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) { function retryTimedOutBoundary(boundaryFiber, retryLane) { 0 === retryLane && (0 === (boundaryFiber.mode & 1) - ? (retryLane = 1) + ? (retryLane = 2) : ((retryLane = nextRetryLane), (nextRetryLane <<= 1), - 0 === (nextRetryLane & 130023424) && (nextRetryLane = 4194304))); + 0 === (nextRetryLane & 125829120) && (nextRetryLane = 8388608))); var eventTime = requestEventTime(); boundaryFiber = enqueueConcurrentRenderForLane(boundaryFiber, retryLane); null !== boundaryFiber && @@ -15008,7 +15011,7 @@ _attemptSynchronousHydration = function(fiber) { if (root$227.current.memoizedState.isDehydrated) { var lanes = getHighestPriorityLanes(root$227.pendingLanes); 0 !== lanes && - (markRootEntangled(root$227, lanes | 1), + (markRootEntangled(root$227, lanes | 2), ensureRootIsScheduled(root$227, now()), 0 === (executionContext & 6) && (resetRenderTimer(), flushSyncCallbacks())); @@ -15016,23 +15019,23 @@ _attemptSynchronousHydration = function(fiber) { break; case 13: flushSync(function() { - var root = enqueueConcurrentRenderForLane(fiber, 1); + var root = enqueueConcurrentRenderForLane(fiber, 2); if (null !== root) { var eventTime = requestEventTime(); - scheduleUpdateOnFiber(root, fiber, 1, eventTime); + scheduleUpdateOnFiber(root, fiber, 2, eventTime); } }), - markRetryLaneIfNotHydrated(fiber, 1); + markRetryLaneIfNotHydrated(fiber, 2); } }; attemptDiscreteHydration = function(fiber) { if (13 === fiber.tag) { - var root = enqueueConcurrentRenderForLane(fiber, 1); + var root = enqueueConcurrentRenderForLane(fiber, 2); if (null !== root) { var eventTime = requestEventTime(); - scheduleUpdateOnFiber(root, fiber, 1, eventTime); + scheduleUpdateOnFiber(root, fiber, 2, eventTime); } - markRetryLaneIfNotHydrated(fiber, 1); + markRetryLaneIfNotHydrated(fiber, 2); } }; attemptContinuousHydration = function(fiber) { @@ -15102,7 +15105,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1738 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-modern-2655c9354-20221121", + version: "18.3.0-www-modern-8a23def32-20221128", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2126 = { @@ -15133,7 +15136,7 @@ var internals$jscomp$inline_2126 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-next-2655c9354-20221121" + reconcilerVersion: "18.3.0-next-8a23def32-20221128" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2127 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -15311,7 +15314,7 @@ exports.unstable_flushControlled = function(fn) { previousPriority = currentUpdatePriority; try { (ReactCurrentBatchConfig$3.transition = null), - (currentUpdatePriority = 1), + (currentUpdatePriority = 2), fn(); } finally { (currentUpdatePriority = previousPriority), @@ -15322,4 +15325,4 @@ exports.unstable_flushControlled = function(fn) { }; exports.unstable_isNewReconciler = !0; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-next-2655c9354-20221121"; +exports.version = "18.3.0-next-8a23def32-20221128"; diff --git a/compiled/facebook-www/ReactDOMForked-profiling.classic.js b/compiled/facebook-www/ReactDOMForked-profiling.classic.js index 400c947bb7..1ea3e033ff 100644 --- a/compiled/facebook-www/ReactDOMForked-profiling.classic.js +++ b/compiled/facebook-www/ReactDOMForked-profiling.classic.js @@ -1586,13 +1586,13 @@ function onCommitRoot(root, eventPriority) { try { var didError = 64 === (root.current.flags & 64); switch (eventPriority) { - case 1: + case 2: var schedulerPriority = ImmediatePriority; break; - case 4: + case 8: schedulerPriority = UserBlockingPriority; break; - case 16: + case 32: schedulerPriority = NormalPriority; break; case 536870912: @@ -1686,22 +1686,23 @@ function clz32Fallback(x) { } function getLabelForLane(lane) { if (enableSchedulingProfiler) { - if (lane & 1) return "Sync"; - if (lane & 2) return "InputContinuousHydration"; - if (lane & 4) return "InputContinuous"; - if (lane & 8) return "DefaultHydration"; - if (lane & 16) return "Default"; - if (lane & 32) return "TransitionHydration"; - if (lane & 4194240) return "Transition"; - if (lane & 130023424) return "Retry"; + if (lane & 1) return "SyncHydrationLane"; + if (lane & 2) return "Sync"; + if (lane & 4) return "InputContinuousHydration"; + if (lane & 8) return "InputContinuous"; + if (lane & 16) return "DefaultHydration"; + if (lane & 32) return "Default"; + if (lane & 64) return "TransitionHydration"; + if (lane & 8388480) return "Transition"; + if (lane & 125829120) return "Retry"; if (lane & 134217728) return "SelectiveHydration"; if (lane & 268435456) return "IdleHydration"; if (lane & 536870912) return "Idle"; if (lane & 1073741824) return "Offscreen"; } } -var nextTransitionLane = 64, - nextRetryLane = 4194304; +var nextTransitionLane = 128, + nextRetryLane = 8388608; function getHighestPriorityLanes(lanes) { switch (lanes & -lanes) { case 1: @@ -1717,6 +1718,7 @@ function getHighestPriorityLanes(lanes) { case 32: return 32; case 64: + return 64; case 128: case 256: case 512: @@ -1732,13 +1734,13 @@ function getHighestPriorityLanes(lanes) { case 524288: case 1048576: case 2097152: - return lanes & 4194240; case 4194304: + return lanes & 8388480; case 8388608: case 16777216: case 33554432: case 67108864: - return lanes & 130023424; + return lanes & 125829120; case 134217728: return 134217728; case 268435456: @@ -1779,12 +1781,12 @@ function getNextLanes(root, wipLanes) { ((suspendedLanes = nextLanes & -nextLanes), (pingedLanes = wipLanes & -wipLanes), suspendedLanes >= pingedLanes || - (16 === suspendedLanes && 0 !== (pingedLanes & 4194240))) + (32 === suspendedLanes && 0 !== (pingedLanes & 8388480))) ) return wipLanes; 0 === (root.current.mode & 32) && - 0 !== (nextLanes & 4) && - (nextLanes |= pendingLanes & 16); + 0 !== (nextLanes & 8) && + (nextLanes |= pendingLanes & 32); wipLanes = root.entangledLanes; if (0 !== wipLanes) for (root = root.entanglements, wipLanes &= nextLanes; 0 < wipLanes; ) @@ -1799,8 +1801,8 @@ function computeExpirationTime(lane, currentTime) { case 1: case 2: case 4: - return currentTime + 250; case 8: + return currentTime + 250; case 16: case 32: case 64: @@ -1819,8 +1821,8 @@ function computeExpirationTime(lane, currentTime) { case 524288: case 1048576: case 2097152: - return currentTime + 5e3; case 4194304: + return currentTime + 5e3; case 8388608: case 16777216: case 33554432: @@ -1840,7 +1842,7 @@ function markStarvedLanesAsExpired(root, currentTime) { var suspendedLanes = root.suspendedLanes, pingedLanes = root.pingedLanes, expirationTimes = root.expirationTimes, - lanes = root.pendingLanes & -130023425; + lanes = root.pendingLanes & -125829121; 0 < lanes; ) { @@ -1860,12 +1862,12 @@ function getLanesToRetrySynchronouslyOnError(root, originallyAttemptedLanes) { return 0 !== root ? root : root & 1073741824 ? 1073741824 : 0; } function includesBlockingLane(root, lanes) { - return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 30); + return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 60); } function claimNextTransitionLane() { var lane = nextTransitionLane; nextTransitionLane <<= 1; - 0 === (nextTransitionLane & 4194240) && (nextTransitionLane = 64); + 0 === (nextTransitionLane & 8388480) && (nextTransitionLane = 128); return lane; } function createLaneMap(initial) { @@ -1986,13 +1988,13 @@ function runWithPriority(priority, fn) { } function lanesToEventPriority(lanes) { lanes &= -lanes; - return 1 < lanes - ? 4 < lanes + return 2 < lanes + ? 8 < lanes ? 0 !== (lanes & 268435455) - ? 16 + ? 32 : 536870912 - : 4 - : 1; + : 8 + : 2; } var Internals = { usingClientEntryPoint: !1, @@ -5077,10 +5079,10 @@ function createEventListenerWrapperWithPriority( eventSystemFlags ) { switch (getEventPriority(domEventName)) { - case 1: + case 2: var listenerWrapper = dispatchDiscreteEvent; break; - case 4: + case 8: listenerWrapper = dispatchContinuousEvent; break; default: @@ -5103,7 +5105,7 @@ function dispatchDiscreteEvent( prevTransition = ReactCurrentBatchConfig.transition; ReactCurrentBatchConfig.transition = null; try { - (currentUpdatePriority = 1), + (currentUpdatePriority = 2), dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); } finally { (currentUpdatePriority = previousPriority), @@ -5120,7 +5122,7 @@ function dispatchContinuousEvent( prevTransition = ReactCurrentBatchConfig.transition; ReactCurrentBatchConfig.transition = null; try { - (currentUpdatePriority = 4), + (currentUpdatePriority = 8), dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); } finally { (currentUpdatePriority = previousPriority), @@ -5342,7 +5344,7 @@ function getEventPriority(domEventName) { case "popstate": case "select": case "selectstart": - return 1; + return 2; case "drag": case "dragenter": case "dragexit": @@ -5362,23 +5364,23 @@ function getEventPriority(domEventName) { case "mouseleave": case "pointerenter": case "pointerleave": - return 4; + return 8; case "message": switch (getCurrentPriorityLevel()) { case ImmediatePriority: - return 1; + return 2; case UserBlockingPriority: - return 4; + return 8; case NormalPriority: case LowPriority: - return 16; + return 32; case IdlePriority: return 536870912; default: - return 16; + return 32; } default: - return 16; + return 32; } } var emptyContextObject = {}, @@ -5476,7 +5478,7 @@ function flushSyncCallbacks() { previousUpdatePriority = currentUpdatePriority; try { var queue = syncQueue; - for (currentUpdatePriority = 1; i < queue.length; i++) { + for (currentUpdatePriority = 2; i < queue.length; i++) { var callback = queue[i]; do callback = callback(!0); while (null !== callback); @@ -6886,7 +6888,7 @@ function enqueueUpdate$1(fiber, update, lane) { } function entangleTransitions(root, fiber, lane) { fiber = fiber.updateQueue; - if (null !== fiber && ((fiber = fiber.shared), 0 !== (lane & 4194240))) { + if (null !== fiber && ((fiber = fiber.shared), 0 !== (lane & 8388480))) { var queueLanes = fiber.lanes; queueLanes &= root.pendingLanes; lane |= queueLanes; @@ -7735,8 +7737,8 @@ function checkIfSnapshotChanged(inst) { } } function forceStoreRerender(fiber) { - var root = enqueueConcurrentRenderForLane(fiber, 1); - null !== root && scheduleUpdateOnFiber(root, fiber, 1, -1); + var root = enqueueConcurrentRenderForLane(fiber, 2); + null !== root && scheduleUpdateOnFiber(root, fiber, 2, -1); } function mountState(initialState) { var hook = mountWorkInProgressHook(); @@ -7892,7 +7894,7 @@ function updateMemo(nextCreate, deps) { return nextCreate; } function updateDeferredValueImpl(hook, prevValue, value) { - if (0 === (renderLanes & 21)) + if (0 === (renderLanes & 42)) return ( hook.baseState && ((hook.baseState = !1), (didReceiveUpdate = !0)), (hook.memoizedState = value) @@ -7907,7 +7909,7 @@ function updateDeferredValueImpl(hook, prevValue, value) { function startTransition(setPending, callback, options) { var previousPriority = currentUpdatePriority; currentUpdatePriority = - 0 !== previousPriority && 4 > previousPriority ? previousPriority : 4; + 0 !== previousPriority && 8 > previousPriority ? previousPriority : 8; setPending(!0); var prevTransition = ReactCurrentBatchConfig$2.transition; ReactCurrentBatchConfig$2.transition = {}; @@ -8028,7 +8030,7 @@ function enqueueRenderPhaseUpdate(queue, update) { queue.pending = update; } function entangleTransitionUpdate(root, queue, lane) { - if (0 !== (lane & 4194240)) { + if (0 !== (lane & 8388480)) { var queueLanes = queue.lanes; queueLanes &= root.pendingLanes; lane |= queueLanes; @@ -8623,10 +8625,10 @@ function markSuspenseBoundaryShouldCapture( 1 === sourceFiber.tag && (null === sourceFiber.alternate ? (sourceFiber.tag = 17) - : ((returnFiber = createUpdate(-1, 1)), + : ((returnFiber = createUpdate(-1, 2)), (returnFiber.tag = 2), - enqueueUpdate$1(sourceFiber, returnFiber, 1))), - (sourceFiber.lanes |= 1)), + enqueueUpdate$1(sourceFiber, returnFiber, 2))), + (sourceFiber.lanes |= 2)), suspenseBoundary ); suspenseBoundary.flags |= 32768; @@ -9410,9 +9412,9 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ) return ( 0 === (workInProgress.mode & 1) - ? (workInProgress.lanes = 1) + ? (workInProgress.lanes = 2) : "$!" === current.data - ? (workInProgress.lanes = 8) + ? (workInProgress.lanes = 16) : (workInProgress.lanes = 1073741824), null ); @@ -9464,7 +9466,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - (workInProgress.lanes = 4194304), + (workInProgress.lanes = 8388608), current ); pushPrimaryTreeSuspenseHandler(workInProgress); @@ -9729,13 +9731,15 @@ function updateDehydratedSuspenseComponent( nextProps = workInProgressRoot; if (null !== nextProps) { switch (renderLanes & -renderLanes) { - case 4: - suspenseInstance = 2; + case 2: + suspenseInstance = 1; break; - case 16: - suspenseInstance = 8; + case 8: + suspenseInstance = 4; + break; + case 32: + suspenseInstance = 16; break; - case 64: case 128: case 256: case 512: @@ -9756,7 +9760,7 @@ function updateDehydratedSuspenseComponent( case 16777216: case 33554432: case 67108864: - suspenseInstance = 32; + suspenseInstance = 64; break; case 536870912: suspenseInstance = 268435456; @@ -10774,7 +10778,7 @@ function completeWork(current, workInProgress, renderLanes) { ((workInProgress.flags |= 64), (newProps = !0), cutOffTailIfNeeded(type, !1), - (workInProgress.lanes = 4194304)); + (workInProgress.lanes = 8388608)); } else { if (!newProps) @@ -10803,7 +10807,7 @@ function completeWork(current, workInProgress, renderLanes) { ((workInProgress.flags |= 64), (newProps = !0), cutOffTailIfNeeded(type, !1), - (workInProgress.lanes = 4194304)); + (workInProgress.lanes = 8388608)); type.isBackwards ? ((JSCompiler_inline_result.sibling = workInProgress.child), (workInProgress.child = JSCompiler_inline_result)) @@ -13584,7 +13588,7 @@ function requestEventTime() { : (currentEventTime = now()); } function requestUpdateLane(fiber) { - if (0 === (fiber.mode & 1)) return 1; + if (0 === (fiber.mode & 1)) return 2; if ( !deferRenderPhaseUpdateToNextBatch && 0 !== (executionContext & 2) && @@ -13600,7 +13604,7 @@ function requestUpdateLane(fiber) { fiber = currentUpdatePriority; if (0 !== fiber) return fiber; fiber = window.event; - fiber = void 0 === fiber ? 16 : getEventPriority(fiber.type); + fiber = void 0 === fiber ? 32 : getEventPriority(fiber.type); return fiber; } function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { @@ -13649,7 +13653,7 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { markRootSuspended$1(root, workInProgressRootRenderLanes); } ensureRootIsScheduled(root, eventTime); - 1 === lane && + 2 === lane && 0 === executionContext && 0 === (fiber.mode & 1) && (resetRenderTimer(), includesLegacySyncCallbacks && flushSyncCallbacks()); @@ -13671,7 +13675,7 @@ function ensureRootIsScheduled(root, currentTime) { root.callbackPriority !== currentTime) ) { null != existingCallbackNode && cancelCallback(existingCallbackNode); - if (1 === currentTime) + if (0 !== (currentTime & 3)) 0 === root.tag ? scheduleLegacySyncCallback(performSyncWorkOnRoot.bind(null, root)) : scheduleSyncCallback(performSyncWorkOnRoot.bind(null, root)), @@ -13681,13 +13685,13 @@ function ensureRootIsScheduled(root, currentTime) { (existingCallbackNode = null); else { switch (lanesToEventPriority(nextLanes)) { - case 1: + case 2: existingCallbackNode = ImmediatePriority; break; - case 4: + case 8: existingCallbackNode = UserBlockingPriority; break; - case 16: + case 32: existingCallbackNode = NormalPriority; break; case 536870912: @@ -13791,7 +13795,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) { case 3: markRootSuspended$1(root, lanes); if ( - (lanes & 130023424) === lanes && + (lanes & 125829120) === lanes && ((didTimeout = globalMostRecentFallbackTime + 500 - now()), 10 < didTimeout) ) { @@ -13822,7 +13826,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) { break; case 4: markRootSuspended$1(root, lanes); - if ((lanes & 4194240) === lanes) break; + if ((lanes & 8388480) === lanes) break; didTimeout = root.eventTimes; for (originallyAttemptedLanes = -1; 0 < lanes; ) (errorRetryLanes$235 = 31 - clz32(lanes)), @@ -13966,7 +13970,7 @@ function performSyncWorkOnRoot(root) { if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); flushPassiveEffects(); var lanes = getNextLanes(root, 0); - if (0 === (lanes & 1)) return ensureRootIsScheduled(root, now()), null; + if (0 === (lanes & 3)) return ensureRootIsScheduled(root, now()), null; var exitStatus = renderRootSync(root, lanes); if (0 !== root.tag && 2 === exitStatus) { var originallyAttemptedLanes = lanes, @@ -14026,7 +14030,7 @@ function flushSync(fn) { try { if ( ((ReactCurrentBatchConfig$3.transition = null), - (currentUpdatePriority = 1), + (currentUpdatePriority = 2), fn) ) return fn(); @@ -14116,7 +14120,7 @@ function handleThrow(root, thrownValue) { } function shouldAttemptToSuspendUntilDataResolves() { if ( - (workInProgressRootRenderLanes & 130023424) === + (workInProgressRootRenderLanes & 125829120) === workInProgressRootRenderLanes ) return !0; @@ -14126,7 +14130,7 @@ function shouldAttemptToSuspendUntilDataResolves() { ) return !1; if ( - (workInProgressRootRenderLanes & 4194240) === + (workInProgressRootRenderLanes & 8388480) === workInProgressRootRenderLanes ) { var suspenseHandler = suspenseHandlerStackCursor.current; @@ -14591,7 +14595,7 @@ function commitRoot(root, recoverableErrors, transitions) { prevTransition = ReactCurrentBatchConfig$3.transition; try { (ReactCurrentBatchConfig$3.transition = null), - (currentUpdatePriority = 1), + (currentUpdatePriority = 2), commitRootImpl( root, recoverableErrors, @@ -14648,7 +14652,7 @@ function commitRootImpl( transitions = ReactCurrentBatchConfig$3.transition; ReactCurrentBatchConfig$3.transition = null; var previousPriority = currentUpdatePriority; - currentUpdatePriority = 1; + currentUpdatePriority = 2; var prevExecutionContext = executionContext; executionContext |= 4; ReactCurrentOwner$2.current = null; @@ -14713,11 +14717,11 @@ function commitRootImpl( (root = firstUncaughtError), (firstUncaughtError = null), root); - 0 !== (pendingPassiveEffectsLanes & 1) && + 0 !== (pendingPassiveEffectsLanes & 3) && 0 !== root.tag && flushPassiveEffects(); remainingLanes = root.pendingLanes; - 0 !== (remainingLanes & 1) + 0 !== (remainingLanes & 3) ? ((nestedUpdateScheduled = !0), root === rootWithNestedUpdates ? nestedUpdateCount++ @@ -14756,7 +14760,7 @@ function flushPassiveEffects() { remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes); - renderPriority = 16 > renderPriority ? 16 : renderPriority; + renderPriority = 32 > renderPriority ? 32 : renderPriority; var prevTransition = ReactCurrentBatchConfig$3.transition, previousPriority = currentUpdatePriority; try { @@ -14838,11 +14842,11 @@ function flushPassiveEffectsImpl() { } function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) { sourceFiber = createCapturedValueAtFiber(error, sourceFiber); - sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 1); - rootFiber = enqueueUpdate$1(rootFiber, sourceFiber, 1); + sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 2); + rootFiber = enqueueUpdate$1(rootFiber, sourceFiber, 2); sourceFiber = requestEventTime(); null !== rootFiber && - (markRootUpdated(rootFiber, 1, sourceFiber), + (markRootUpdated(rootFiber, 2, sourceFiber), ensureRootIsScheduled(rootFiber, sourceFiber)); } function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) { @@ -14876,16 +14880,16 @@ function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) { sourceFiber = createClassErrorUpdate( nearestMountedAncestor, sourceFiber, - 1 + 2 ); nearestMountedAncestor = enqueueUpdate$1( nearestMountedAncestor, sourceFiber, - 1 + 2 ); sourceFiber = requestEventTime(); null !== nearestMountedAncestor && - (markRootUpdated(nearestMountedAncestor, 1, sourceFiber), + (markRootUpdated(nearestMountedAncestor, 2, sourceFiber), ensureRootIsScheduled(nearestMountedAncestor, sourceFiber)); break; } @@ -14919,7 +14923,7 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) { (workInProgressRootRenderLanes & pingedLanes) === pingedLanes && (4 === workInProgressRootExitStatus || (3 === workInProgressRootExitStatus && - (workInProgressRootRenderLanes & 130023424) === + (workInProgressRootRenderLanes & 125829120) === workInProgressRootRenderLanes && 500 > now() - globalMostRecentFallbackTime) ? prepareFreshStack(root, 0) @@ -14929,10 +14933,10 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) { function retryTimedOutBoundary(boundaryFiber, retryLane) { 0 === retryLane && (0 === (boundaryFiber.mode & 1) - ? (retryLane = 1) + ? (retryLane = 2) : ((retryLane = nextRetryLane), (nextRetryLane <<= 1), - 0 === (nextRetryLane & 130023424) && (nextRetryLane = 4194304))); + 0 === (nextRetryLane & 125829120) && (nextRetryLane = 8388608))); var eventTime = requestEventTime(); boundaryFiber = enqueueConcurrentRenderForLane(boundaryFiber, retryLane); null !== boundaryFiber && @@ -16213,7 +16217,7 @@ _attemptSynchronousHydration = function(fiber) { if (root$247.current.memoizedState.isDehydrated) { var lanes = getHighestPriorityLanes(root$247.pendingLanes); 0 !== lanes && - (markRootEntangled(root$247, lanes | 1), + (markRootEntangled(root$247, lanes | 2), ensureRootIsScheduled(root$247, now()), 0 === (executionContext & 6) && (resetRenderTimer(), flushSyncCallbacks())); @@ -16221,23 +16225,23 @@ _attemptSynchronousHydration = function(fiber) { break; case 13: flushSync(function() { - var root = enqueueConcurrentRenderForLane(fiber, 1); + var root = enqueueConcurrentRenderForLane(fiber, 2); if (null !== root) { var eventTime = requestEventTime(); - scheduleUpdateOnFiber(root, fiber, 1, eventTime); + scheduleUpdateOnFiber(root, fiber, 2, eventTime); } }), - markRetryLaneIfNotHydrated(fiber, 1); + markRetryLaneIfNotHydrated(fiber, 2); } }; attemptDiscreteHydration = function(fiber) { if (13 === fiber.tag) { - var root = enqueueConcurrentRenderForLane(fiber, 1); + var root = enqueueConcurrentRenderForLane(fiber, 2); if (null !== root) { var eventTime = requestEventTime(); - scheduleUpdateOnFiber(root, fiber, 1, eventTime); + scheduleUpdateOnFiber(root, fiber, 2, eventTime); } - markRetryLaneIfNotHydrated(fiber, 1); + markRetryLaneIfNotHydrated(fiber, 2); } }; attemptContinuousHydration = function(fiber) { @@ -16307,7 +16311,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1847 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-classic-2655c9354-20221121", + version: "18.3.0-www-classic-8a23def32-20221128", rendererPackageName: "react-dom" }; (function(internals) { @@ -16351,7 +16355,7 @@ var devToolsConfig$jscomp$inline_1847 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-next-2655c9354-20221121" + reconcilerVersion: "18.3.0-next-8a23def32-20221128" }); assign(Internals, { ReactBrowserEventEmitter: { @@ -16552,7 +16556,7 @@ exports.unstable_flushControlled = function(fn) { previousPriority = currentUpdatePriority; try { (ReactCurrentBatchConfig$3.transition = null), - (currentUpdatePriority = 1), + (currentUpdatePriority = 2), fn(); } finally { (currentUpdatePriority = previousPriority), @@ -16581,7 +16585,7 @@ exports.unstable_renderSubtreeIntoContainer = function( ); }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-next-2655c9354-20221121"; +exports.version = "18.3.0-next-8a23def32-20221128"; /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ if ( diff --git a/compiled/facebook-www/ReactDOMForked-profiling.modern.js b/compiled/facebook-www/ReactDOMForked-profiling.modern.js index 42a8ee854b..c8181de5a5 100644 --- a/compiled/facebook-www/ReactDOMForked-profiling.modern.js +++ b/compiled/facebook-www/ReactDOMForked-profiling.modern.js @@ -1291,13 +1291,13 @@ function onCommitRoot(root, eventPriority) { try { var didError = 64 === (root.current.flags & 64); switch (eventPriority) { - case 1: + case 2: var schedulerPriority = ImmediatePriority; break; - case 4: + case 8: schedulerPriority = UserBlockingPriority; break; - case 16: + case 32: schedulerPriority = NormalPriority; break; case 536870912: @@ -1387,22 +1387,23 @@ function clz32Fallback(x) { } function getLabelForLane(lane) { if (enableSchedulingProfiler) { - if (lane & 1) return "Sync"; - if (lane & 2) return "InputContinuousHydration"; - if (lane & 4) return "InputContinuous"; - if (lane & 8) return "DefaultHydration"; - if (lane & 16) return "Default"; - if (lane & 32) return "TransitionHydration"; - if (lane & 4194240) return "Transition"; - if (lane & 130023424) return "Retry"; + if (lane & 1) return "SyncHydrationLane"; + if (lane & 2) return "Sync"; + if (lane & 4) return "InputContinuousHydration"; + if (lane & 8) return "InputContinuous"; + if (lane & 16) return "DefaultHydration"; + if (lane & 32) return "Default"; + if (lane & 64) return "TransitionHydration"; + if (lane & 8388480) return "Transition"; + if (lane & 125829120) return "Retry"; if (lane & 134217728) return "SelectiveHydration"; if (lane & 268435456) return "IdleHydration"; if (lane & 536870912) return "Idle"; if (lane & 1073741824) return "Offscreen"; } } -var nextTransitionLane = 64, - nextRetryLane = 4194304; +var nextTransitionLane = 128, + nextRetryLane = 8388608; function getHighestPriorityLanes(lanes) { switch (lanes & -lanes) { case 1: @@ -1418,6 +1419,7 @@ function getHighestPriorityLanes(lanes) { case 32: return 32; case 64: + return 64; case 128: case 256: case 512: @@ -1433,13 +1435,13 @@ function getHighestPriorityLanes(lanes) { case 524288: case 1048576: case 2097152: - return lanes & 4194240; case 4194304: + return lanes & 8388480; case 8388608: case 16777216: case 33554432: case 67108864: - return lanes & 130023424; + return lanes & 125829120; case 134217728: return 134217728; case 268435456: @@ -1480,12 +1482,12 @@ function getNextLanes(root, wipLanes) { ((suspendedLanes = nextLanes & -nextLanes), (pingedLanes = wipLanes & -wipLanes), suspendedLanes >= pingedLanes || - (16 === suspendedLanes && 0 !== (pingedLanes & 4194240))) + (32 === suspendedLanes && 0 !== (pingedLanes & 8388480))) ) return wipLanes; 0 === (root.current.mode & 32) && - 0 !== (nextLanes & 4) && - (nextLanes |= pendingLanes & 16); + 0 !== (nextLanes & 8) && + (nextLanes |= pendingLanes & 32); wipLanes = root.entangledLanes; if (0 !== wipLanes) for (root = root.entanglements, wipLanes &= nextLanes; 0 < wipLanes; ) @@ -1500,8 +1502,8 @@ function computeExpirationTime(lane, currentTime) { case 1: case 2: case 4: - return currentTime + 250; case 8: + return currentTime + 250; case 16: case 32: case 64: @@ -1520,8 +1522,8 @@ function computeExpirationTime(lane, currentTime) { case 524288: case 1048576: case 2097152: - return currentTime + 5e3; case 4194304: + return currentTime + 5e3; case 8388608: case 16777216: case 33554432: @@ -1541,7 +1543,7 @@ function markStarvedLanesAsExpired(root, currentTime) { var suspendedLanes = root.suspendedLanes, pingedLanes = root.pingedLanes, expirationTimes = root.expirationTimes, - lanes = root.pendingLanes & -130023425; + lanes = root.pendingLanes & -125829121; 0 < lanes; ) { @@ -1561,12 +1563,12 @@ function getLanesToRetrySynchronouslyOnError(root, originallyAttemptedLanes) { return 0 !== root ? root : root & 1073741824 ? 1073741824 : 0; } function includesBlockingLane(root, lanes) { - return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 30); + return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 60); } function claimNextTransitionLane() { var lane = nextTransitionLane; nextTransitionLane <<= 1; - 0 === (nextTransitionLane & 4194240) && (nextTransitionLane = 64); + 0 === (nextTransitionLane & 8388480) && (nextTransitionLane = 128); return lane; } function createLaneMap(initial) { @@ -1687,13 +1689,13 @@ function runWithPriority(priority, fn) { } function lanesToEventPriority(lanes) { lanes &= -lanes; - return 1 < lanes - ? 4 < lanes + return 2 < lanes + ? 8 < lanes ? 0 !== (lanes & 268435455) - ? 16 + ? 32 : 536870912 - : 4 - : 1; + : 8 + : 2; } var _attemptSynchronousHydration, attemptDiscreteHydration, @@ -2062,10 +2064,10 @@ function createEventListenerWrapperWithPriority( eventSystemFlags ) { switch (getEventPriority(domEventName)) { - case 1: + case 2: var listenerWrapper = dispatchDiscreteEvent; break; - case 4: + case 8: listenerWrapper = dispatchContinuousEvent; break; default: @@ -2088,7 +2090,7 @@ function dispatchDiscreteEvent( prevTransition = ReactCurrentBatchConfig.transition; ReactCurrentBatchConfig.transition = null; try { - (currentUpdatePriority = 1), + (currentUpdatePriority = 2), dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); } finally { (currentUpdatePriority = previousPriority), @@ -2105,7 +2107,7 @@ function dispatchContinuousEvent( prevTransition = ReactCurrentBatchConfig.transition; ReactCurrentBatchConfig.transition = null; try { - (currentUpdatePriority = 4), + (currentUpdatePriority = 8), dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); } finally { (currentUpdatePriority = previousPriority), @@ -2327,7 +2329,7 @@ function getEventPriority(domEventName) { case "popstate": case "select": case "selectstart": - return 1; + return 2; case "drag": case "dragenter": case "dragexit": @@ -2347,23 +2349,23 @@ function getEventPriority(domEventName) { case "mouseleave": case "pointerenter": case "pointerleave": - return 4; + return 8; case "message": switch (getCurrentPriorityLevel()) { case ImmediatePriority: - return 1; + return 2; case UserBlockingPriority: - return 4; + return 8; case NormalPriority: case LowPriority: - return 16; + return 32; case IdlePriority: return 536870912; default: - return 16; + return 32; } default: - return 16; + return 32; } } function addEventBubbleListener(target, eventType, listener) { @@ -5323,7 +5325,7 @@ function flushSyncCallbacks() { previousUpdatePriority = currentUpdatePriority; try { var queue = syncQueue; - for (currentUpdatePriority = 1; i < queue.length; i++) { + for (currentUpdatePriority = 2; i < queue.length; i++) { var callback = queue[i]; do callback = callback(!0); while (null !== callback); @@ -6733,7 +6735,7 @@ function enqueueUpdate$1(fiber, update, lane) { } function entangleTransitions(root, fiber, lane) { fiber = fiber.updateQueue; - if (null !== fiber && ((fiber = fiber.shared), 0 !== (lane & 4194240))) { + if (null !== fiber && ((fiber = fiber.shared), 0 !== (lane & 8388480))) { var queueLanes = fiber.lanes; queueLanes &= root.pendingLanes; lane |= queueLanes; @@ -7582,8 +7584,8 @@ function checkIfSnapshotChanged(inst) { } } function forceStoreRerender(fiber) { - var root = enqueueConcurrentRenderForLane(fiber, 1); - null !== root && scheduleUpdateOnFiber(root, fiber, 1, -1); + var root = enqueueConcurrentRenderForLane(fiber, 2); + null !== root && scheduleUpdateOnFiber(root, fiber, 2, -1); } function mountState(initialState) { var hook = mountWorkInProgressHook(); @@ -7739,7 +7741,7 @@ function updateMemo(nextCreate, deps) { return nextCreate; } function updateDeferredValueImpl(hook, prevValue, value) { - if (0 === (renderLanes & 21)) + if (0 === (renderLanes & 42)) return ( hook.baseState && ((hook.baseState = !1), (didReceiveUpdate = !0)), (hook.memoizedState = value) @@ -7754,7 +7756,7 @@ function updateDeferredValueImpl(hook, prevValue, value) { function startTransition(setPending, callback, options) { var previousPriority = currentUpdatePriority; currentUpdatePriority = - 0 !== previousPriority && 4 > previousPriority ? previousPriority : 4; + 0 !== previousPriority && 8 > previousPriority ? previousPriority : 8; setPending(!0); var prevTransition = ReactCurrentBatchConfig$2.transition; ReactCurrentBatchConfig$2.transition = {}; @@ -7875,7 +7877,7 @@ function enqueueRenderPhaseUpdate(queue, update) { queue.pending = update; } function entangleTransitionUpdate(root, queue, lane) { - if (0 !== (lane & 4194240)) { + if (0 !== (lane & 8388480)) { var queueLanes = queue.lanes; queueLanes &= root.pendingLanes; lane |= queueLanes; @@ -8456,10 +8458,10 @@ function markSuspenseBoundaryShouldCapture( 1 === sourceFiber.tag && (null === sourceFiber.alternate ? (sourceFiber.tag = 17) - : ((returnFiber = createUpdate(-1, 1)), + : ((returnFiber = createUpdate(-1, 2)), (returnFiber.tag = 2), - enqueueUpdate$1(sourceFiber, returnFiber, 1))), - (sourceFiber.lanes |= 1)), + enqueueUpdate$1(sourceFiber, returnFiber, 2))), + (sourceFiber.lanes |= 2)), suspenseBoundary ); suspenseBoundary.flags |= 32768; @@ -9201,9 +9203,9 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ) return ( 0 === (workInProgress.mode & 1) - ? (workInProgress.lanes = 1) + ? (workInProgress.lanes = 2) : "$!" === current.data - ? (workInProgress.lanes = 8) + ? (workInProgress.lanes = 16) : (workInProgress.lanes = 1073741824), null ); @@ -9255,7 +9257,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - (workInProgress.lanes = 4194304), + (workInProgress.lanes = 8388608), current ); pushPrimaryTreeSuspenseHandler(workInProgress); @@ -9520,13 +9522,15 @@ function updateDehydratedSuspenseComponent( nextProps = workInProgressRoot; if (null !== nextProps) { switch (renderLanes & -renderLanes) { - case 4: - suspenseInstance = 2; + case 2: + suspenseInstance = 1; break; - case 16: - suspenseInstance = 8; + case 8: + suspenseInstance = 4; + break; + case 32: + suspenseInstance = 16; break; - case 64: case 128: case 256: case 512: @@ -9547,7 +9551,7 @@ function updateDehydratedSuspenseComponent( case 16777216: case 33554432: case 67108864: - suspenseInstance = 32; + suspenseInstance = 64; break; case 536870912: suspenseInstance = 268435456; @@ -10551,7 +10555,7 @@ function completeWork(current, workInProgress, renderLanes) { ((workInProgress.flags |= 64), (newProps = !0), cutOffTailIfNeeded(type, !1), - (workInProgress.lanes = 4194304)); + (workInProgress.lanes = 8388608)); } else { if (!newProps) @@ -10580,7 +10584,7 @@ function completeWork(current, workInProgress, renderLanes) { ((workInProgress.flags |= 64), (newProps = !0), cutOffTailIfNeeded(type, !1), - (workInProgress.lanes = 4194304)); + (workInProgress.lanes = 8388608)); type.isBackwards ? ((JSCompiler_inline_result.sibling = workInProgress.child), (workInProgress.child = JSCompiler_inline_result)) @@ -13352,7 +13356,7 @@ function requestEventTime() { : (currentEventTime = now()); } function requestUpdateLane(fiber) { - if (0 === (fiber.mode & 1)) return 1; + if (0 === (fiber.mode & 1)) return 2; if ( !deferRenderPhaseUpdateToNextBatch && 0 !== (executionContext & 2) && @@ -13368,7 +13372,7 @@ function requestUpdateLane(fiber) { fiber = currentUpdatePriority; if (0 !== fiber) return fiber; fiber = window.event; - fiber = void 0 === fiber ? 16 : getEventPriority(fiber.type); + fiber = void 0 === fiber ? 32 : getEventPriority(fiber.type); return fiber; } function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { @@ -13417,7 +13421,7 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { markRootSuspended$1(root, workInProgressRootRenderLanes); } ensureRootIsScheduled(root, eventTime); - 1 === lane && + 2 === lane && 0 === executionContext && 0 === (fiber.mode & 1) && (resetRenderTimer(), includesLegacySyncCallbacks && flushSyncCallbacks()); @@ -13439,7 +13443,7 @@ function ensureRootIsScheduled(root, currentTime) { root.callbackPriority !== currentTime) ) { null != existingCallbackNode && cancelCallback(existingCallbackNode); - if (1 === currentTime) + if (0 !== (currentTime & 3)) 0 === root.tag ? scheduleLegacySyncCallback(performSyncWorkOnRoot.bind(null, root)) : scheduleSyncCallback(performSyncWorkOnRoot.bind(null, root)), @@ -13449,13 +13453,13 @@ function ensureRootIsScheduled(root, currentTime) { (existingCallbackNode = null); else { switch (lanesToEventPriority(nextLanes)) { - case 1: + case 2: existingCallbackNode = ImmediatePriority; break; - case 4: + case 8: existingCallbackNode = UserBlockingPriority; break; - case 16: + case 32: existingCallbackNode = NormalPriority; break; case 536870912: @@ -13559,7 +13563,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) { case 3: markRootSuspended$1(root, lanes); if ( - (lanes & 130023424) === lanes && + (lanes & 125829120) === lanes && ((didTimeout = globalMostRecentFallbackTime + 500 - now()), 10 < didTimeout) ) { @@ -13590,7 +13594,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) { break; case 4: markRootSuspended$1(root, lanes); - if ((lanes & 4194240) === lanes) break; + if ((lanes & 8388480) === lanes) break; didTimeout = root.eventTimes; for (originallyAttemptedLanes = -1; 0 < lanes; ) (errorRetryLanes$236 = 31 - clz32(lanes)), @@ -13734,7 +13738,7 @@ function performSyncWorkOnRoot(root) { if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); flushPassiveEffects(); var lanes = getNextLanes(root, 0); - if (0 === (lanes & 1)) return ensureRootIsScheduled(root, now()), null; + if (0 === (lanes & 3)) return ensureRootIsScheduled(root, now()), null; var exitStatus = renderRootSync(root, lanes); if (0 !== root.tag && 2 === exitStatus) { var originallyAttemptedLanes = lanes, @@ -13794,7 +13798,7 @@ function flushSync(fn) { try { if ( ((ReactCurrentBatchConfig$3.transition = null), - (currentUpdatePriority = 1), + (currentUpdatePriority = 2), fn) ) return fn(); @@ -13884,7 +13888,7 @@ function handleThrow(root, thrownValue) { } function shouldAttemptToSuspendUntilDataResolves() { if ( - (workInProgressRootRenderLanes & 130023424) === + (workInProgressRootRenderLanes & 125829120) === workInProgressRootRenderLanes ) return !0; @@ -13894,7 +13898,7 @@ function shouldAttemptToSuspendUntilDataResolves() { ) return !1; if ( - (workInProgressRootRenderLanes & 4194240) === + (workInProgressRootRenderLanes & 8388480) === workInProgressRootRenderLanes ) { var suspenseHandler = suspenseHandlerStackCursor.current; @@ -14359,7 +14363,7 @@ function commitRoot(root, recoverableErrors, transitions) { prevTransition = ReactCurrentBatchConfig$3.transition; try { (ReactCurrentBatchConfig$3.transition = null), - (currentUpdatePriority = 1), + (currentUpdatePriority = 2), commitRootImpl( root, recoverableErrors, @@ -14416,7 +14420,7 @@ function commitRootImpl( transitions = ReactCurrentBatchConfig$3.transition; ReactCurrentBatchConfig$3.transition = null; var previousPriority = currentUpdatePriority; - currentUpdatePriority = 1; + currentUpdatePriority = 2; var prevExecutionContext = executionContext; executionContext |= 4; ReactCurrentOwner$2.current = null; @@ -14481,11 +14485,11 @@ function commitRootImpl( (root = firstUncaughtError), (firstUncaughtError = null), root); - 0 !== (pendingPassiveEffectsLanes & 1) && + 0 !== (pendingPassiveEffectsLanes & 3) && 0 !== root.tag && flushPassiveEffects(); remainingLanes = root.pendingLanes; - 0 !== (remainingLanes & 1) + 0 !== (remainingLanes & 3) ? ((nestedUpdateScheduled = !0), root === rootWithNestedUpdates ? nestedUpdateCount++ @@ -14524,7 +14528,7 @@ function flushPassiveEffects() { remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes); - renderPriority = 16 > renderPriority ? 16 : renderPriority; + renderPriority = 32 > renderPriority ? 32 : renderPriority; var prevTransition = ReactCurrentBatchConfig$3.transition, previousPriority = currentUpdatePriority; try { @@ -14606,11 +14610,11 @@ function flushPassiveEffectsImpl() { } function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) { sourceFiber = createCapturedValueAtFiber(error, sourceFiber); - sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 1); - rootFiber = enqueueUpdate$1(rootFiber, sourceFiber, 1); + sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 2); + rootFiber = enqueueUpdate$1(rootFiber, sourceFiber, 2); sourceFiber = requestEventTime(); null !== rootFiber && - (markRootUpdated(rootFiber, 1, sourceFiber), + (markRootUpdated(rootFiber, 2, sourceFiber), ensureRootIsScheduled(rootFiber, sourceFiber)); } function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) { @@ -14644,16 +14648,16 @@ function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) { sourceFiber = createClassErrorUpdate( nearestMountedAncestor, sourceFiber, - 1 + 2 ); nearestMountedAncestor = enqueueUpdate$1( nearestMountedAncestor, sourceFiber, - 1 + 2 ); sourceFiber = requestEventTime(); null !== nearestMountedAncestor && - (markRootUpdated(nearestMountedAncestor, 1, sourceFiber), + (markRootUpdated(nearestMountedAncestor, 2, sourceFiber), ensureRootIsScheduled(nearestMountedAncestor, sourceFiber)); break; } @@ -14687,7 +14691,7 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) { (workInProgressRootRenderLanes & pingedLanes) === pingedLanes && (4 === workInProgressRootExitStatus || (3 === workInProgressRootExitStatus && - (workInProgressRootRenderLanes & 130023424) === + (workInProgressRootRenderLanes & 125829120) === workInProgressRootRenderLanes && 500 > now() - globalMostRecentFallbackTime) ? prepareFreshStack(root, 0) @@ -14697,10 +14701,10 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) { function retryTimedOutBoundary(boundaryFiber, retryLane) { 0 === retryLane && (0 === (boundaryFiber.mode & 1) - ? (retryLane = 1) + ? (retryLane = 2) : ((retryLane = nextRetryLane), (nextRetryLane <<= 1), - 0 === (nextRetryLane & 130023424) && (nextRetryLane = 4194304))); + 0 === (nextRetryLane & 125829120) && (nextRetryLane = 8388608))); var eventTime = requestEventTime(); boundaryFiber = enqueueConcurrentRenderForLane(boundaryFiber, retryLane); null !== boundaryFiber && @@ -15764,7 +15768,7 @@ _attemptSynchronousHydration = function(fiber) { if (root$248.current.memoizedState.isDehydrated) { var lanes = getHighestPriorityLanes(root$248.pendingLanes); 0 !== lanes && - (markRootEntangled(root$248, lanes | 1), + (markRootEntangled(root$248, lanes | 2), ensureRootIsScheduled(root$248, now()), 0 === (executionContext & 6) && (resetRenderTimer(), flushSyncCallbacks())); @@ -15772,23 +15776,23 @@ _attemptSynchronousHydration = function(fiber) { break; case 13: flushSync(function() { - var root = enqueueConcurrentRenderForLane(fiber, 1); + var root = enqueueConcurrentRenderForLane(fiber, 2); if (null !== root) { var eventTime = requestEventTime(); - scheduleUpdateOnFiber(root, fiber, 1, eventTime); + scheduleUpdateOnFiber(root, fiber, 2, eventTime); } }), - markRetryLaneIfNotHydrated(fiber, 1); + markRetryLaneIfNotHydrated(fiber, 2); } }; attemptDiscreteHydration = function(fiber) { if (13 === fiber.tag) { - var root = enqueueConcurrentRenderForLane(fiber, 1); + var root = enqueueConcurrentRenderForLane(fiber, 2); if (null !== root) { var eventTime = requestEventTime(); - scheduleUpdateOnFiber(root, fiber, 1, eventTime); + scheduleUpdateOnFiber(root, fiber, 2, eventTime); } - markRetryLaneIfNotHydrated(fiber, 1); + markRetryLaneIfNotHydrated(fiber, 2); } }; attemptContinuousHydration = function(fiber) { @@ -15858,7 +15862,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1815 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-modern-2655c9354-20221121", + version: "18.3.0-www-modern-8a23def32-20221128", rendererPackageName: "react-dom" }; (function(internals) { @@ -15903,7 +15907,7 @@ var devToolsConfig$jscomp$inline_1815 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-next-2655c9354-20221121" + reconcilerVersion: "18.3.0-next-8a23def32-20221128" }); exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals; exports.createPortal = function(children, container) { @@ -16068,7 +16072,7 @@ exports.unstable_flushControlled = function(fn) { previousPriority = currentUpdatePriority; try { (ReactCurrentBatchConfig$3.transition = null), - (currentUpdatePriority = 1), + (currentUpdatePriority = 2), fn(); } finally { (currentUpdatePriority = previousPriority), @@ -16079,7 +16083,7 @@ exports.unstable_flushControlled = function(fn) { }; exports.unstable_isNewReconciler = !0; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-next-2655c9354-20221121"; +exports.version = "18.3.0-next-8a23def32-20221128"; /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ if ( diff --git a/compiled/facebook-www/ReactDOMServer-dev.classic.js b/compiled/facebook-www/ReactDOMServer-dev.classic.js index bcb7423a56..e638b7b36b 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.classic.js +++ b/compiled/facebook-www/ReactDOMServer-dev.classic.js @@ -19,7 +19,7 @@ if (__DEV__) { var React = require("react"); var ReactDOM = require("react-dom"); -var ReactVersion = "18.3.0-www-classic-2655c9354-20221121"; +var ReactVersion = "18.3.0-www-classic-8a23def32-20221128"; // This refers to a WWW module. var warningWWW = require("warning"); diff --git a/compiled/facebook-www/ReactDOMServer-dev.modern.js b/compiled/facebook-www/ReactDOMServer-dev.modern.js index 88bb56078b..e9ac2826d8 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.modern.js +++ b/compiled/facebook-www/ReactDOMServer-dev.modern.js @@ -19,7 +19,7 @@ if (__DEV__) { var React = require("react"); var ReactDOM = require("react-dom"); -var ReactVersion = "18.3.0-www-modern-2655c9354-20221121"; +var ReactVersion = "18.3.0-www-modern-8a23def32-20221128"; // This refers to a WWW module. var warningWWW = require("warning"); diff --git a/compiled/facebook-www/ReactDOMServer-prod.classic.js b/compiled/facebook-www/ReactDOMServer-prod.classic.js index fa2d8e3ec9..613a6d6b54 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.classic.js +++ b/compiled/facebook-www/ReactDOMServer-prod.classic.js @@ -3461,4 +3461,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 = "18.3.0-www-classic-2655c9354-20221121"; +exports.version = "18.3.0-www-classic-8a23def32-20221128"; diff --git a/compiled/facebook-www/ReactDOMServer-prod.modern.js b/compiled/facebook-www/ReactDOMServer-prod.modern.js index 116fe29290..bc70416d7e 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.modern.js +++ b/compiled/facebook-www/ReactDOMServer-prod.modern.js @@ -3374,4 +3374,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 = "18.3.0-www-modern-2655c9354-20221121"; +exports.version = "18.3.0-www-modern-8a23def32-20221128"; diff --git a/compiled/facebook-www/ReactDOMTesting-dev.classic.js b/compiled/facebook-www/ReactDOMTesting-dev.classic.js index 58a25d529c..26a16b015c 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.classic.js @@ -7646,91 +7646,91 @@ var NoLanes = var NoLane = /* */ 0; +var SyncHydrationLane = + /* */ + 1; var SyncLane = /* */ - 1; + 2; var InputContinuousHydrationLane = /* */ - 2; + 4; var InputContinuousLane = /* */ - 4; + 8; var DefaultHydrationLane = /* */ - 8; + 16; var DefaultLane = /* */ - 16; + 32; var TransitionHydrationLane = /* */ - 32; + 64; var TransitionLanes = /* */ - 4194240; + 8388480; var TransitionLane1 = /* */ - 64; + 128; var TransitionLane2 = /* */ - 128; + 256; var TransitionLane3 = /* */ - 256; + 512; var TransitionLane4 = /* */ - 512; + 1024; var TransitionLane5 = /* */ - 1024; + 2048; var TransitionLane6 = /* */ - 2048; + 4096; var TransitionLane7 = /* */ - 4096; + 8192; var TransitionLane8 = /* */ - 8192; + 16384; var TransitionLane9 = /* */ - 16384; + 32768; var TransitionLane10 = /* */ - 32768; + 65536; var TransitionLane11 = /* */ - 65536; + 131072; var TransitionLane12 = /* */ - 131072; + 262144; var TransitionLane13 = /* */ - 262144; + 524288; var TransitionLane14 = /* */ - 524288; + 1048576; var TransitionLane15 = /* */ - 1048576; + 2097152; var TransitionLane16 = /* */ - 2097152; + 4194304; var RetryLanes = /* */ - 130023424; + 125829120; var RetryLane1 = /* */ - 4194304; + 8388608; var RetryLane2 = /* */ - 8388608; + 16777216; var RetryLane3 = - /* */ - 16777216; -var RetryLane4 = /* */ 33554432; -var RetryLane5 = +var RetryLane4 = /* */ 67108864; var SomeRetryLane = RetryLane1; @@ -7755,6 +7755,9 @@ var nextRetryLane = RetryLane1; function getHighestPriorityLanes(lanes) { switch (getHighestPriorityLane(lanes)) { + case SyncHydrationLane: + return SyncHydrationLane; + case SyncLane: return SyncLane; @@ -7795,7 +7798,6 @@ function getHighestPriorityLanes(lanes) { case RetryLane2: case RetryLane3: case RetryLane4: - case RetryLane5: return lanes & RetryLanes; case SelectiveHydrationLane: @@ -7956,6 +7958,7 @@ function getMostRecentEventTime(root, lanes) { function computeExpirationTime(lane, currentTime) { switch (lane) { + case SyncHydrationLane: case SyncLane: case InputContinuousHydrationLane: case InputContinuousLane: @@ -7995,7 +7998,6 @@ function computeExpirationTime(lane, currentTime) { case RetryLane2: case RetryLane3: case RetryLane4: - case RetryLane5: // TODO: Retries should be allowed to expire if they are CPU bound for // too long, but when I made this change it caused a spike in browser // crashes. There must be some other underlying bug; not super urgent but @@ -8083,6 +8085,9 @@ function getLanesToRetrySynchronouslyOnError(root, originallyAttemptedLanes) { return NoLanes; } +function includesSyncLane(lanes) { + return (lanes & (SyncLane | SyncHydrationLane)) !== NoLanes; +} function includesNonIdleWork(lanes) { return (lanes & NonIdleLanes) !== NoLanes; } @@ -8090,6 +8095,8 @@ function includesOnlyRetries(lanes) { return (lanes & RetryLanes) === lanes; } function includesOnlyNonUrgentLanes(lanes) { + // TODO: Should hydration lanes be included here? This function is only + // used in `updateDeferredValueImpl`. var UrgentLanes = SyncLane | InputContinuousLane | DefaultLane; return (lanes & UrgentLanes) === NoLanes; } @@ -8331,6 +8338,10 @@ function getBumpedLaneForHydration(root, renderLanes) { var lane; switch (renderLane) { + case SyncLane: + lane = SyncHydrationLane; + break; + case InputContinuousLane: lane = InputContinuousHydrationLane; break; @@ -8359,7 +8370,6 @@ function getBumpedLaneForHydration(root, renderLanes) { case RetryLane2: case RetryLane3: case RetryLane4: - case RetryLane5: lane = TransitionHydrationLane; break; @@ -27484,7 +27494,7 @@ function ensureRootIsScheduled(root, currentTime) { // TODO: Temporary until we confirm this warning is not fired. if ( existingCallbackNode == null && - existingCallbackPriority !== SyncLane + !includesSyncLane(existingCallbackPriority) ) { error( "Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue." @@ -27502,7 +27512,7 @@ function ensureRootIsScheduled(root, currentTime) { var newCallbackNode; - if (newCallbackPriority === SyncLane) { + if (includesSyncLane(newCallbackPriority)) { // Special case: Sync React callbacks are scheduled on a special // internal queue if (root.tag === LegacyRoot) { @@ -28052,7 +28062,7 @@ function performSyncWorkOnRoot(root) { flushPassiveEffects(); var lanes = getNextLanes(root, NoLanes); - if (!includesSomeLane(lanes, SyncLane)) { + if (!includesSyncLane(lanes)) { // There's no remaining sync work left. ensureRootIsScheduled(root, now()); return null; @@ -29225,16 +29235,13 @@ function commitRootImpl( // currently schedule the callback in multiple places, will wait until those // are consolidated. - if ( - includesSomeLane(pendingPassiveEffectsLanes, SyncLane) && - root.tag !== LegacyRoot - ) { + if (includesSyncLane(pendingPassiveEffectsLanes) && root.tag !== LegacyRoot) { flushPassiveEffects(); } // Read this again, since a passive effect might have updated it remainingLanes = root.pendingLanes; - if (includesSomeLane(remainingLanes, SyncLane)) { + if (includesSyncLane(remainingLanes)) { // finishing. If there are too many, it indicates an infinite update loop. if (root === rootWithNestedUpdates) { @@ -31120,7 +31127,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-classic-2655c9354-20221121"; +var ReactVersion = "18.3.0-www-classic-8a23def32-20221128"; function createPortal( children, diff --git a/compiled/facebook-www/ReactDOMTesting-dev.modern.js b/compiled/facebook-www/ReactDOMTesting-dev.modern.js index ee4d436035..8e03f0cd1c 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.modern.js @@ -5769,91 +5769,91 @@ var NoLanes = var NoLane = /* */ 0; +var SyncHydrationLane = + /* */ + 1; var SyncLane = /* */ - 1; + 2; var InputContinuousHydrationLane = /* */ - 2; + 4; var InputContinuousLane = /* */ - 4; + 8; var DefaultHydrationLane = /* */ - 8; + 16; var DefaultLane = /* */ - 16; + 32; var TransitionHydrationLane = /* */ - 32; + 64; var TransitionLanes = /* */ - 4194240; + 8388480; var TransitionLane1 = /* */ - 64; + 128; var TransitionLane2 = /* */ - 128; + 256; var TransitionLane3 = /* */ - 256; + 512; var TransitionLane4 = /* */ - 512; + 1024; var TransitionLane5 = /* */ - 1024; + 2048; var TransitionLane6 = /* */ - 2048; + 4096; var TransitionLane7 = /* */ - 4096; + 8192; var TransitionLane8 = /* */ - 8192; + 16384; var TransitionLane9 = /* */ - 16384; + 32768; var TransitionLane10 = /* */ - 32768; + 65536; var TransitionLane11 = /* */ - 65536; + 131072; var TransitionLane12 = /* */ - 131072; + 262144; var TransitionLane13 = /* */ - 262144; + 524288; var TransitionLane14 = /* */ - 524288; + 1048576; var TransitionLane15 = /* */ - 1048576; + 2097152; var TransitionLane16 = /* */ - 2097152; + 4194304; var RetryLanes = /* */ - 130023424; + 125829120; var RetryLane1 = /* */ - 4194304; + 8388608; var RetryLane2 = /* */ - 8388608; + 16777216; var RetryLane3 = - /* */ - 16777216; -var RetryLane4 = /* */ 33554432; -var RetryLane5 = +var RetryLane4 = /* */ 67108864; var SomeRetryLane = RetryLane1; @@ -5878,6 +5878,9 @@ var nextRetryLane = RetryLane1; function getHighestPriorityLanes(lanes) { switch (getHighestPriorityLane(lanes)) { + case SyncHydrationLane: + return SyncHydrationLane; + case SyncLane: return SyncLane; @@ -5918,7 +5921,6 @@ function getHighestPriorityLanes(lanes) { case RetryLane2: case RetryLane3: case RetryLane4: - case RetryLane5: return lanes & RetryLanes; case SelectiveHydrationLane: @@ -6079,6 +6081,7 @@ function getMostRecentEventTime(root, lanes) { function computeExpirationTime(lane, currentTime) { switch (lane) { + case SyncHydrationLane: case SyncLane: case InputContinuousHydrationLane: case InputContinuousLane: @@ -6118,7 +6121,6 @@ function computeExpirationTime(lane, currentTime) { case RetryLane2: case RetryLane3: case RetryLane4: - case RetryLane5: // TODO: Retries should be allowed to expire if they are CPU bound for // too long, but when I made this change it caused a spike in browser // crashes. There must be some other underlying bug; not super urgent but @@ -6206,6 +6208,9 @@ function getLanesToRetrySynchronouslyOnError(root, originallyAttemptedLanes) { return NoLanes; } +function includesSyncLane(lanes) { + return (lanes & (SyncLane | SyncHydrationLane)) !== NoLanes; +} function includesNonIdleWork(lanes) { return (lanes & NonIdleLanes) !== NoLanes; } @@ -6213,6 +6218,8 @@ function includesOnlyRetries(lanes) { return (lanes & RetryLanes) === lanes; } function includesOnlyNonUrgentLanes(lanes) { + // TODO: Should hydration lanes be included here? This function is only + // used in `updateDeferredValueImpl`. var UrgentLanes = SyncLane | InputContinuousLane | DefaultLane; return (lanes & UrgentLanes) === NoLanes; } @@ -6454,6 +6461,10 @@ function getBumpedLaneForHydration(root, renderLanes) { var lane; switch (renderLane) { + case SyncLane: + lane = SyncHydrationLane; + break; + case InputContinuousLane: lane = InputContinuousHydrationLane; break; @@ -6482,7 +6493,6 @@ function getBumpedLaneForHydration(root, renderLanes) { case RetryLane2: case RetryLane3: case RetryLane4: - case RetryLane5: lane = TransitionHydrationLane; break; @@ -34765,7 +34775,7 @@ function ensureRootIsScheduled(root, currentTime) { // TODO: Temporary until we confirm this warning is not fired. if ( existingCallbackNode == null && - existingCallbackPriority !== SyncLane + !includesSyncLane(existingCallbackPriority) ) { error( "Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue." @@ -34783,7 +34793,7 @@ function ensureRootIsScheduled(root, currentTime) { var newCallbackNode; - if (newCallbackPriority === SyncLane) { + if (includesSyncLane(newCallbackPriority)) { // Special case: Sync React callbacks are scheduled on a special // internal queue if (root.tag === LegacyRoot) { @@ -35333,7 +35343,7 @@ function performSyncWorkOnRoot(root) { flushPassiveEffects(); var lanes = getNextLanes(root, NoLanes); - if (!includesSomeLane(lanes, SyncLane)) { + if (!includesSyncLane(lanes)) { // There's no remaining sync work left. ensureRootIsScheduled(root, now()); return null; @@ -36506,16 +36516,13 @@ function commitRootImpl( // currently schedule the callback in multiple places, will wait until those // are consolidated. - if ( - includesSomeLane(pendingPassiveEffectsLanes, SyncLane) && - root.tag !== LegacyRoot - ) { + if (includesSyncLane(pendingPassiveEffectsLanes) && root.tag !== LegacyRoot) { flushPassiveEffects(); } // Read this again, since a passive effect might have updated it remainingLanes = root.pendingLanes; - if (includesSomeLane(remainingLanes, SyncLane)) { + if (includesSyncLane(remainingLanes)) { // finishing. If there are too many, it indicates an infinite update loop. if (root === rootWithNestedUpdates) { @@ -38401,7 +38408,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-modern-2655c9354-20221121"; +var ReactVersion = "18.3.0-www-modern-8a23def32-20221128"; function createPortal( children, diff --git a/compiled/facebook-www/ReactDOMTesting-prod.classic.js b/compiled/facebook-www/ReactDOMTesting-prod.classic.js index 81e7064827..09005192cd 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.classic.js @@ -1606,8 +1606,8 @@ function clz32Fallback(x) { x >>>= 0; return 0 === x ? 32 : (31 - ((log(x) / LN2) | 0)) | 0; } -var nextTransitionLane = 64, - nextRetryLane = 4194304; +var nextTransitionLane = 128, + nextRetryLane = 8388608; function getHighestPriorityLanes(lanes) { switch (lanes & -lanes) { case 1: @@ -1623,6 +1623,7 @@ function getHighestPriorityLanes(lanes) { case 32: return 32; case 64: + return 64; case 128: case 256: case 512: @@ -1638,13 +1639,13 @@ function getHighestPriorityLanes(lanes) { case 524288: case 1048576: case 2097152: - return lanes & 4194240; case 4194304: + return lanes & 8388480; case 8388608: case 16777216: case 33554432: case 67108864: - return lanes & 130023424; + return lanes & 125829120; case 134217728: return 134217728; case 268435456: @@ -1685,12 +1686,12 @@ function getNextLanes(root, wipLanes) { ((suspendedLanes = nextLanes & -nextLanes), (pingedLanes = wipLanes & -wipLanes), suspendedLanes >= pingedLanes || - (16 === suspendedLanes && 0 !== (pingedLanes & 4194240))) + (32 === suspendedLanes && 0 !== (pingedLanes & 8388480))) ) return wipLanes; 0 === (root.current.mode & 32) && - 0 !== (nextLanes & 4) && - (nextLanes |= pendingLanes & 16); + 0 !== (nextLanes & 8) && + (nextLanes |= pendingLanes & 32); wipLanes = root.entangledLanes; if (0 !== wipLanes) for (root = root.entanglements, wipLanes &= nextLanes; 0 < wipLanes; ) @@ -1705,8 +1706,8 @@ function computeExpirationTime(lane, currentTime) { case 1: case 2: case 4: - return currentTime + 250; case 8: + return currentTime + 250; case 16: case 32: case 64: @@ -1725,8 +1726,8 @@ function computeExpirationTime(lane, currentTime) { case 524288: case 1048576: case 2097152: - return currentTime + 5e3; case 4194304: + return currentTime + 5e3; case 8388608: case 16777216: case 33554432: @@ -1746,7 +1747,7 @@ function markStarvedLanesAsExpired(root, currentTime) { var suspendedLanes = root.suspendedLanes, pingedLanes = root.pingedLanes, expirationTimes = root.expirationTimes, - lanes = root.pendingLanes & -130023425; + lanes = root.pendingLanes & -125829121; 0 < lanes; ) { @@ -1766,12 +1767,12 @@ function getLanesToRetrySynchronouslyOnError(root, originallyAttemptedLanes) { return 0 !== root ? root : root & 1073741824 ? 1073741824 : 0; } function includesBlockingLane(root, lanes) { - return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 30); + return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 60); } function claimNextTransitionLane() { var lane = nextTransitionLane; nextTransitionLane <<= 1; - 0 === (nextTransitionLane & 4194240) && (nextTransitionLane = 64); + 0 === (nextTransitionLane & 8388480) && (nextTransitionLane = 128); return lane; } function createLaneMap(initial) { @@ -1838,13 +1839,13 @@ function runWithPriority(priority, fn) { } function lanesToEventPriority(lanes) { lanes &= -lanes; - return 1 < lanes - ? 4 < lanes + return 2 < lanes + ? 8 < lanes ? 0 !== (lanes & 268435455) - ? 16 + ? 32 : 536870912 - : 4 - : 1; + : 8 + : 2; } var Internals = { usingClientEntryPoint: !1, @@ -1964,7 +1965,7 @@ function flushSyncCallbacks() { previousUpdatePriority = currentUpdatePriority; try { var queue = syncQueue; - for (currentUpdatePriority = 1; i < queue.length; i++) { + for (currentUpdatePriority = 2; i < queue.length; i++) { var callback = queue[i]; do callback = callback(!0); while (null !== callback); @@ -3309,7 +3310,7 @@ function enqueueUpdate$1(fiber, update, lane) { } function entangleTransitions(root, fiber, lane) { fiber = fiber.updateQueue; - if (null !== fiber && ((fiber = fiber.shared), 0 !== (lane & 4194240))) { + if (null !== fiber && ((fiber = fiber.shared), 0 !== (lane & 8388480))) { var queueLanes = fiber.lanes; queueLanes &= root.pendingLanes; lane |= queueLanes; @@ -4117,8 +4118,8 @@ function checkIfSnapshotChanged(inst) { } } function forceStoreRerender(fiber) { - var root = enqueueConcurrentRenderForLane(fiber, 1); - null !== root && scheduleUpdateOnFiber(root, fiber, 1, -1); + var root = enqueueConcurrentRenderForLane(fiber, 2); + null !== root && scheduleUpdateOnFiber(root, fiber, 2, -1); } function mountState(initialState) { var hook = mountWorkInProgressHook(); @@ -4252,7 +4253,7 @@ function updateMemo(nextCreate, deps) { return nextCreate; } function updateDeferredValueImpl(hook, prevValue, value) { - if (0 === (renderLanes & 21)) + if (0 === (renderLanes & 42)) return ( hook.baseState && ((hook.baseState = !1), (didReceiveUpdate = !0)), (hook.memoizedState = value) @@ -4267,7 +4268,7 @@ function updateDeferredValueImpl(hook, prevValue, value) { function startTransition(setPending, callback) { var previousPriority = currentUpdatePriority; currentUpdatePriority = - 0 !== previousPriority && 4 > previousPriority ? previousPriority : 4; + 0 !== previousPriority && 8 > previousPriority ? previousPriority : 8; setPending(!0); var prevTransition = ReactCurrentBatchConfig$1.transition; ReactCurrentBatchConfig$1.transition = {}; @@ -4381,7 +4382,7 @@ function enqueueRenderPhaseUpdate(queue, update) { queue.pending = update; } function entangleTransitionUpdate(root, queue, lane) { - if (0 !== (lane & 4194240)) { + if (0 !== (lane & 8388480)) { var queueLanes = queue.lanes; queueLanes &= root.pendingLanes; lane |= queueLanes; @@ -4886,10 +4887,10 @@ function markSuspenseBoundaryShouldCapture( 1 === sourceFiber.tag && (null === sourceFiber.alternate ? (sourceFiber.tag = 17) - : ((returnFiber = createUpdate(-1, 1)), + : ((returnFiber = createUpdate(-1, 2)), (returnFiber.tag = 2), - enqueueUpdate$1(sourceFiber, returnFiber, 1))), - (sourceFiber.lanes |= 1)), + enqueueUpdate$1(sourceFiber, returnFiber, 2))), + (sourceFiber.lanes |= 2)), suspenseBoundary ); suspenseBoundary.flags |= 32768; @@ -5479,9 +5480,9 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ) return ( 0 === (workInProgress.mode & 1) - ? (workInProgress.lanes = 1) + ? (workInProgress.lanes = 2) : "$!" === current.data - ? (workInProgress.lanes = 8) + ? (workInProgress.lanes = 16) : (workInProgress.lanes = 1073741824), null ); @@ -5517,7 +5518,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - (workInProgress.lanes = 4194304), + (workInProgress.lanes = 8388608), current ); pushPrimaryTreeSuspenseHandler(workInProgress); @@ -5746,13 +5747,15 @@ function updateDehydratedSuspenseComponent( nextProps = workInProgressRoot; if (null !== nextProps) { switch (renderLanes & -renderLanes) { - case 4: - suspenseInstance = 2; + case 2: + suspenseInstance = 1; break; - case 16: - suspenseInstance = 8; + case 8: + suspenseInstance = 4; + break; + case 32: + suspenseInstance = 16; break; - case 64: case 128: case 256: case 512: @@ -5773,7 +5776,7 @@ function updateDehydratedSuspenseComponent( case 16777216: case 33554432: case 67108864: - suspenseInstance = 32; + suspenseInstance = 64; break; case 536870912: suspenseInstance = 268435456; @@ -6675,7 +6678,7 @@ function completeWork(current, workInProgress, renderLanes) { ((workInProgress.flags |= 64), (newProps = !0), cutOffTailIfNeeded(type, !1), - (workInProgress.lanes = 4194304)); + (workInProgress.lanes = 8388608)); } else { if (!newProps) @@ -6704,7 +6707,7 @@ function completeWork(current, workInProgress, renderLanes) { ((workInProgress.flags |= 64), (newProps = !0), cutOffTailIfNeeded(type, !1), - (workInProgress.lanes = 4194304)); + (workInProgress.lanes = 8388608)); type.isBackwards ? ((JSCompiler_inline_result.sibling = workInProgress.child), (workInProgress.child = JSCompiler_inline_result)) @@ -8929,7 +8932,7 @@ function requestEventTime() { : (currentEventTime = now()); } function requestUpdateLane(fiber) { - if (0 === (fiber.mode & 1)) return 1; + if (0 === (fiber.mode & 1)) return 2; if (0 !== (executionContext & 2) && 0 !== workInProgressRootRenderLanes) return workInProgressRootRenderLanes & -workInProgressRootRenderLanes; if (null !== ReactCurrentBatchConfig.transition) @@ -8941,7 +8944,7 @@ function requestUpdateLane(fiber) { fiber = currentUpdatePriority; if (0 !== fiber) return fiber; fiber = window.event; - fiber = void 0 === fiber ? 16 : getEventPriority(fiber.type); + fiber = void 0 === fiber ? 32 : getEventPriority(fiber.type); return fiber; } function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { @@ -8957,7 +8960,7 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { 4 === workInProgressRootExitStatus && markRootSuspended$1(root, workInProgressRootRenderLanes)), ensureRootIsScheduled(root, eventTime), - 1 === lane && + 2 === lane && 0 === executionContext && 0 === (fiber.mode & 1) && (resetRenderTimer(), @@ -8979,7 +8982,7 @@ function ensureRootIsScheduled(root, currentTime) { root.callbackPriority !== currentTime) ) { null != existingCallbackNode && cancelCallback(existingCallbackNode); - if (1 === currentTime) + if (0 !== (currentTime & 3)) 0 === root.tag ? scheduleLegacySyncCallback(performSyncWorkOnRoot.bind(null, root)) : scheduleSyncCallback(performSyncWorkOnRoot.bind(null, root)), @@ -8989,13 +8992,13 @@ function ensureRootIsScheduled(root, currentTime) { (existingCallbackNode = null); else { switch (lanesToEventPriority(nextLanes)) { - case 1: + case 2: existingCallbackNode = ImmediatePriority; break; - case 4: + case 8: existingCallbackNode = UserBlockingPriority; break; - case 16: + case 32: existingCallbackNode = NormalPriority; break; case 536870912: @@ -9098,7 +9101,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) { case 3: markRootSuspended$1(root, lanes); if ( - (lanes & 130023424) === lanes && + (lanes & 125829120) === lanes && ((didTimeout = globalMostRecentFallbackTime + 500 - now()), 10 < didTimeout) ) { @@ -9129,7 +9132,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) { break; case 4: markRootSuspended$1(root, lanes); - if ((lanes & 4194240) === lanes) break; + if ((lanes & 8388480) === lanes) break; didTimeout = root.eventTimes; for (originallyAttemptedLanes = -1; 0 < lanes; ) (errorRetryLanes$148 = 31 - clz32(lanes)), @@ -9271,7 +9274,7 @@ function performSyncWorkOnRoot(root) { if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); flushPassiveEffects(); var lanes = getNextLanes(root, 0); - if (0 === (lanes & 1)) return ensureRootIsScheduled(root, now()), null; + if (0 === (lanes & 3)) return ensureRootIsScheduled(root, now()), null; var exitStatus = renderRootSync(root, lanes); if (0 !== root.tag && 2 === exitStatus) { var originallyAttemptedLanes = lanes, @@ -9331,7 +9334,7 @@ function flushSync(fn) { try { if ( ((ReactCurrentBatchConfig$2.transition = null), - (currentUpdatePriority = 1), + (currentUpdatePriority = 2), fn) ) return fn(); @@ -9400,7 +9403,7 @@ function handleThrow(root, thrownValue) { } function shouldAttemptToSuspendUntilDataResolves() { if ( - (workInProgressRootRenderLanes & 130023424) === + (workInProgressRootRenderLanes & 125829120) === workInProgressRootRenderLanes ) return !0; @@ -9410,7 +9413,7 @@ function shouldAttemptToSuspendUntilDataResolves() { ) return !1; if ( - (workInProgressRootRenderLanes & 4194240) === + (workInProgressRootRenderLanes & 8388480) === workInProgressRootRenderLanes ) { var suspenseHandler = suspenseHandlerStackCursor.current; @@ -9808,7 +9811,7 @@ function commitRoot(root, recoverableErrors, transitions) { prevTransition = ReactCurrentBatchConfig$2.transition; try { (ReactCurrentBatchConfig$2.transition = null), - (currentUpdatePriority = 1), + (currentUpdatePriority = 2), commitRootImpl( root, recoverableErrors, @@ -9859,7 +9862,7 @@ function commitRootImpl( transitions = ReactCurrentBatchConfig$2.transition; ReactCurrentBatchConfig$2.transition = null; var previousPriority = currentUpdatePriority; - currentUpdatePriority = 1; + currentUpdatePriority = 2; var prevExecutionContext = executionContext; executionContext |= 4; ReactCurrentOwner$2.current = null; @@ -9908,11 +9911,11 @@ function commitRootImpl( (root = firstUncaughtError), (firstUncaughtError = null), root); - 0 !== (pendingPassiveEffectsLanes & 1) && + 0 !== (pendingPassiveEffectsLanes & 3) && 0 !== root.tag && flushPassiveEffects(); remainingLanes = root.pendingLanes; - 0 !== (remainingLanes & 1) + 0 !== (remainingLanes & 3) ? root === rootWithNestedUpdates ? nestedUpdateCount++ : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root)) @@ -9932,7 +9935,7 @@ function flushPassiveEffects() { remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes), - priority = 16 > renderPriority ? 16 : renderPriority; + priority = 32 > renderPriority ? 32 : renderPriority; renderPriority = ReactCurrentBatchConfig$2.transition; var previousPriority = currentUpdatePriority; try { @@ -9975,11 +9978,11 @@ function flushPassiveEffects() { } function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) { sourceFiber = createCapturedValueAtFiber(error, sourceFiber); - sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 1); - rootFiber = enqueueUpdate$1(rootFiber, sourceFiber, 1); + sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 2); + rootFiber = enqueueUpdate$1(rootFiber, sourceFiber, 2); sourceFiber = requestEventTime(); null !== rootFiber && - (markRootUpdated(rootFiber, 1, sourceFiber), + (markRootUpdated(rootFiber, 2, sourceFiber), ensureRootIsScheduled(rootFiber, sourceFiber)); } function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) { @@ -10007,16 +10010,16 @@ function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) { sourceFiber = createClassErrorUpdate( nearestMountedAncestor, sourceFiber, - 1 + 2 ); nearestMountedAncestor = enqueueUpdate$1( nearestMountedAncestor, sourceFiber, - 1 + 2 ); sourceFiber = requestEventTime(); null !== nearestMountedAncestor && - (markRootUpdated(nearestMountedAncestor, 1, sourceFiber), + (markRootUpdated(nearestMountedAncestor, 2, sourceFiber), ensureRootIsScheduled(nearestMountedAncestor, sourceFiber)); break; } @@ -10049,7 +10052,7 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) { (workInProgressRootRenderLanes & pingedLanes) === pingedLanes && (4 === workInProgressRootExitStatus || (3 === workInProgressRootExitStatus && - (workInProgressRootRenderLanes & 130023424) === + (workInProgressRootRenderLanes & 125829120) === workInProgressRootRenderLanes && 500 > now() - globalMostRecentFallbackTime) ? prepareFreshStack(root, 0) @@ -10059,10 +10062,10 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) { function retryTimedOutBoundary(boundaryFiber, retryLane) { 0 === retryLane && (0 === (boundaryFiber.mode & 1) - ? (retryLane = 1) + ? (retryLane = 2) : ((retryLane = nextRetryLane), (nextRetryLane <<= 1), - 0 === (nextRetryLane & 130023424) && (nextRetryLane = 4194304))); + 0 === (nextRetryLane & 125829120) && (nextRetryLane = 8388608))); var eventTime = requestEventTime(); boundaryFiber = enqueueConcurrentRenderForLane(boundaryFiber, retryLane); null !== boundaryFiber && @@ -11269,7 +11272,7 @@ _attemptSynchronousHydration = function(fiber) { if (root$159.current.memoizedState.isDehydrated) { var lanes = getHighestPriorityLanes(root$159.pendingLanes); 0 !== lanes && - (markRootEntangled(root$159, lanes | 1), + (markRootEntangled(root$159, lanes | 2), ensureRootIsScheduled(root$159, now()), 0 === (executionContext & 6) && (resetRenderTimer(), flushSyncCallbacks())); @@ -11277,13 +11280,13 @@ _attemptSynchronousHydration = function(fiber) { break; case 13: flushSync(function() { - var root = enqueueConcurrentRenderForLane(fiber, 1); + var root = enqueueConcurrentRenderForLane(fiber, 2); if (null !== root) { var eventTime = requestEventTime(); - scheduleUpdateOnFiber(root, fiber, 1, eventTime); + scheduleUpdateOnFiber(root, fiber, 2, eventTime); } }), - markRetryLaneIfNotHydrated(fiber, 1); + markRetryLaneIfNotHydrated(fiber, 2); } }; attemptContinuousHydration$1 = function(fiber) { @@ -11353,7 +11356,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1511 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-classic-2655c9354-20221121", + version: "18.3.0-www-classic-8a23def32-20221128", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2051 = { @@ -11383,7 +11386,7 @@ var internals$jscomp$inline_2051 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-next-2655c9354-20221121" + reconcilerVersion: "18.3.0-next-8a23def32-20221128" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2052 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -14260,10 +14263,10 @@ function createEventListenerWrapperWithPriority( eventSystemFlags ) { switch (getEventPriority(domEventName)) { - case 1: + case 2: var listenerWrapper = dispatchDiscreteEvent; break; - case 4: + case 8: listenerWrapper = dispatchContinuousEvent; break; default: @@ -14286,7 +14289,7 @@ function dispatchDiscreteEvent( prevTransition = ReactCurrentBatchConfig$3.transition; ReactCurrentBatchConfig$3.transition = null; try { - (currentUpdatePriority = 1), + (currentUpdatePriority = 2), dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); } finally { (currentUpdatePriority = previousPriority), @@ -14303,7 +14306,7 @@ function dispatchContinuousEvent( prevTransition = ReactCurrentBatchConfig$3.transition; ReactCurrentBatchConfig$3.transition = null; try { - (currentUpdatePriority = 4), + (currentUpdatePriority = 8), dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); } finally { (currentUpdatePriority = previousPriority), @@ -14463,7 +14466,7 @@ function getEventPriority(domEventName) { case "popstate": case "select": case "selectstart": - return 1; + return 2; case "drag": case "dragenter": case "dragexit": @@ -14483,23 +14486,23 @@ function getEventPriority(domEventName) { case "mouseleave": case "pointerenter": case "pointerleave": - return 4; + return 8; case "message": switch (getCurrentPriorityLevel()) { case ImmediatePriority: - return 1; + return 2; case UserBlockingPriority: - return 4; + return 8; case NormalPriority: case LowPriority: - return 16; + return 32; case IdlePriority: return 536870912; default: - return 16; + return 32; } default: - return 16; + return 32; } } assign(Internals, { @@ -14836,7 +14839,7 @@ exports.unstable_flushControlled = function(fn) { previousPriority = currentUpdatePriority; try { (ReactCurrentBatchConfig$2.transition = null), - (currentUpdatePriority = 1), + (currentUpdatePriority = 2), fn(); } finally { (currentUpdatePriority = previousPriority), @@ -14865,4 +14868,4 @@ exports.unstable_renderSubtreeIntoContainer = function( ); }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-next-2655c9354-20221121"; +exports.version = "18.3.0-next-8a23def32-20221128"; diff --git a/compiled/facebook-www/ReactDOMTesting-prod.modern.js b/compiled/facebook-www/ReactDOMTesting-prod.modern.js index 58b33dc15d..79c9423ba6 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.modern.js @@ -1347,8 +1347,8 @@ function clz32Fallback(x) { x >>>= 0; return 0 === x ? 32 : (31 - ((log(x) / LN2) | 0)) | 0; } -var nextTransitionLane = 64, - nextRetryLane = 4194304; +var nextTransitionLane = 128, + nextRetryLane = 8388608; function getHighestPriorityLanes(lanes) { switch (lanes & -lanes) { case 1: @@ -1364,6 +1364,7 @@ function getHighestPriorityLanes(lanes) { case 32: return 32; case 64: + return 64; case 128: case 256: case 512: @@ -1379,13 +1380,13 @@ function getHighestPriorityLanes(lanes) { case 524288: case 1048576: case 2097152: - return lanes & 4194240; case 4194304: + return lanes & 8388480; case 8388608: case 16777216: case 33554432: case 67108864: - return lanes & 130023424; + return lanes & 125829120; case 134217728: return 134217728; case 268435456: @@ -1426,12 +1427,12 @@ function getNextLanes(root, wipLanes) { ((suspendedLanes = nextLanes & -nextLanes), (pingedLanes = wipLanes & -wipLanes), suspendedLanes >= pingedLanes || - (16 === suspendedLanes && 0 !== (pingedLanes & 4194240))) + (32 === suspendedLanes && 0 !== (pingedLanes & 8388480))) ) return wipLanes; 0 === (root.current.mode & 32) && - 0 !== (nextLanes & 4) && - (nextLanes |= pendingLanes & 16); + 0 !== (nextLanes & 8) && + (nextLanes |= pendingLanes & 32); wipLanes = root.entangledLanes; if (0 !== wipLanes) for (root = root.entanglements, wipLanes &= nextLanes; 0 < wipLanes; ) @@ -1446,8 +1447,8 @@ function computeExpirationTime(lane, currentTime) { case 1: case 2: case 4: - return currentTime + 250; case 8: + return currentTime + 250; case 16: case 32: case 64: @@ -1466,8 +1467,8 @@ function computeExpirationTime(lane, currentTime) { case 524288: case 1048576: case 2097152: - return currentTime + 5e3; case 4194304: + return currentTime + 5e3; case 8388608: case 16777216: case 33554432: @@ -1487,7 +1488,7 @@ function markStarvedLanesAsExpired(root, currentTime) { var suspendedLanes = root.suspendedLanes, pingedLanes = root.pingedLanes, expirationTimes = root.expirationTimes, - lanes = root.pendingLanes & -130023425; + lanes = root.pendingLanes & -125829121; 0 < lanes; ) { @@ -1507,12 +1508,12 @@ function getLanesToRetrySynchronouslyOnError(root, originallyAttemptedLanes) { return 0 !== root ? root : root & 1073741824 ? 1073741824 : 0; } function includesBlockingLane(root, lanes) { - return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 30); + return 0 !== (root.current.mode & 32) ? !1 : 0 !== (lanes & 60); } function claimNextTransitionLane() { var lane = nextTransitionLane; nextTransitionLane <<= 1; - 0 === (nextTransitionLane & 4194240) && (nextTransitionLane = 64); + 0 === (nextTransitionLane & 8388480) && (nextTransitionLane = 128); return lane; } function createLaneMap(initial) { @@ -1579,13 +1580,13 @@ function runWithPriority(priority, fn) { } function lanesToEventPriority(lanes) { lanes &= -lanes; - return 1 < lanes - ? 4 < lanes + return 2 < lanes + ? 8 < lanes ? 0 !== (lanes & 268435455) - ? 16 + ? 32 : 536870912 - : 4 - : 1; + : 8 + : 2; } var _attemptSynchronousHydration, attemptContinuousHydration, @@ -1867,7 +1868,7 @@ function dispatchDiscreteEvent( prevTransition = ReactCurrentBatchConfig.transition; ReactCurrentBatchConfig.transition = null; try { - (currentUpdatePriority = 1), + (currentUpdatePriority = 2), dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); } finally { (currentUpdatePriority = previousPriority), @@ -1884,7 +1885,7 @@ function dispatchContinuousEvent( prevTransition = ReactCurrentBatchConfig.transition; ReactCurrentBatchConfig.transition = null; try { - (currentUpdatePriority = 4), + (currentUpdatePriority = 8), dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); } finally { (currentUpdatePriority = previousPriority), @@ -2044,7 +2045,7 @@ function getEventPriority(domEventName) { case "popstate": case "select": case "selectstart": - return 1; + return 2; case "drag": case "dragenter": case "dragexit": @@ -2064,23 +2065,23 @@ function getEventPriority(domEventName) { case "mouseleave": case "pointerenter": case "pointerleave": - return 4; + return 8; case "message": switch (getCurrentPriorityLevel()) { case ImmediatePriority: - return 1; + return 2; case UserBlockingPriority: - return 4; + return 8; case NormalPriority: case LowPriority: - return 16; + return 32; case IdlePriority: return 536870912; default: - return 16; + return 32; } default: - return 16; + return 32; } } var root = null, @@ -3051,10 +3052,10 @@ function addTrappedEventListener( isCapturePhaseListener ) { switch (getEventPriority(domEventName)) { - case 1: + case 2: var listenerWrapper = dispatchDiscreteEvent; break; - case 4: + case 8: listenerWrapper = dispatchContinuousEvent; break; default: @@ -5024,7 +5025,7 @@ function flushSyncCallbacks() { previousUpdatePriority = currentUpdatePriority; try { var queue = syncQueue; - for (currentUpdatePriority = 1; i < queue.length; i++) { + for (currentUpdatePriority = 2; i < queue.length; i++) { var callback = queue[i]; do callback = callback(!0); while (null !== callback); @@ -6307,7 +6308,7 @@ function enqueueUpdate$1(fiber, update, lane) { } function entangleTransitions(root, fiber, lane) { fiber = fiber.updateQueue; - if (null !== fiber && ((fiber = fiber.shared), 0 !== (lane & 4194240))) { + if (null !== fiber && ((fiber = fiber.shared), 0 !== (lane & 8388480))) { var queueLanes = fiber.lanes; queueLanes &= root.pendingLanes; lane |= queueLanes; @@ -7115,8 +7116,8 @@ function checkIfSnapshotChanged(inst) { } } function forceStoreRerender(fiber) { - var root = enqueueConcurrentRenderForLane(fiber, 1); - null !== root && scheduleUpdateOnFiber(root, fiber, 1, -1); + var root = enqueueConcurrentRenderForLane(fiber, 2); + null !== root && scheduleUpdateOnFiber(root, fiber, 2, -1); } function mountState(initialState) { var hook = mountWorkInProgressHook(); @@ -7250,7 +7251,7 @@ function updateMemo(nextCreate, deps) { return nextCreate; } function updateDeferredValueImpl(hook, prevValue, value) { - if (0 === (renderLanes & 21)) + if (0 === (renderLanes & 42)) return ( hook.baseState && ((hook.baseState = !1), (didReceiveUpdate = !0)), (hook.memoizedState = value) @@ -7265,7 +7266,7 @@ function updateDeferredValueImpl(hook, prevValue, value) { function startTransition(setPending, callback) { var previousPriority = currentUpdatePriority; currentUpdatePriority = - 0 !== previousPriority && 4 > previousPriority ? previousPriority : 4; + 0 !== previousPriority && 8 > previousPriority ? previousPriority : 8; setPending(!0); var prevTransition = ReactCurrentBatchConfig$2.transition; ReactCurrentBatchConfig$2.transition = {}; @@ -7379,7 +7380,7 @@ function enqueueRenderPhaseUpdate(queue, update) { queue.pending = update; } function entangleTransitionUpdate(root, queue, lane) { - if (0 !== (lane & 4194240)) { + if (0 !== (lane & 8388480)) { var queueLanes = queue.lanes; queueLanes &= root.pendingLanes; lane |= queueLanes; @@ -7870,10 +7871,10 @@ function markSuspenseBoundaryShouldCapture( 1 === sourceFiber.tag && (null === sourceFiber.alternate ? (sourceFiber.tag = 17) - : ((returnFiber = createUpdate(-1, 1)), + : ((returnFiber = createUpdate(-1, 2)), (returnFiber.tag = 2), - enqueueUpdate$1(sourceFiber, returnFiber, 1))), - (sourceFiber.lanes |= 1)), + enqueueUpdate$1(sourceFiber, returnFiber, 2))), + (sourceFiber.lanes |= 2)), suspenseBoundary ); suspenseBoundary.flags |= 32768; @@ -8427,9 +8428,9 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ) return ( 0 === (workInProgress.mode & 1) - ? (workInProgress.lanes = 1) + ? (workInProgress.lanes = 2) : "$!" === current.data - ? (workInProgress.lanes = 8) + ? (workInProgress.lanes = 16) : (workInProgress.lanes = 1073741824), null ); @@ -8465,7 +8466,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - (workInProgress.lanes = 4194304), + (workInProgress.lanes = 8388608), current ); pushPrimaryTreeSuspenseHandler(workInProgress); @@ -8694,13 +8695,15 @@ function updateDehydratedSuspenseComponent( nextProps = workInProgressRoot; if (null !== nextProps) { switch (renderLanes & -renderLanes) { - case 4: - suspenseInstance = 2; + case 2: + suspenseInstance = 1; break; - case 16: - suspenseInstance = 8; + case 8: + suspenseInstance = 4; + break; + case 32: + suspenseInstance = 16; break; - case 64: case 128: case 256: case 512: @@ -8721,7 +8724,7 @@ function updateDehydratedSuspenseComponent( case 16777216: case 33554432: case 67108864: - suspenseInstance = 32; + suspenseInstance = 64; break; case 536870912: suspenseInstance = 268435456; @@ -9609,7 +9612,7 @@ function completeWork(current, workInProgress, renderLanes) { ((workInProgress.flags |= 64), (newProps = !0), cutOffTailIfNeeded(type, !1), - (workInProgress.lanes = 4194304)); + (workInProgress.lanes = 8388608)); } else { if (!newProps) @@ -9638,7 +9641,7 @@ function completeWork(current, workInProgress, renderLanes) { ((workInProgress.flags |= 64), (newProps = !0), cutOffTailIfNeeded(type, !1), - (workInProgress.lanes = 4194304)); + (workInProgress.lanes = 8388608)); type.isBackwards ? ((JSCompiler_inline_result.sibling = workInProgress.child), (workInProgress.child = JSCompiler_inline_result)) @@ -11815,7 +11818,7 @@ function requestEventTime() { : (currentEventTime = now()); } function requestUpdateLane(fiber) { - if (0 === (fiber.mode & 1)) return 1; + if (0 === (fiber.mode & 1)) return 2; if (0 !== (executionContext & 2) && 0 !== workInProgressRootRenderLanes) return workInProgressRootRenderLanes & -workInProgressRootRenderLanes; if (null !== ReactCurrentBatchConfig$1.transition) @@ -11827,7 +11830,7 @@ function requestUpdateLane(fiber) { fiber = currentUpdatePriority; if (0 !== fiber) return fiber; fiber = window.event; - fiber = void 0 === fiber ? 16 : getEventPriority(fiber.type); + fiber = void 0 === fiber ? 32 : getEventPriority(fiber.type); return fiber; } function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { @@ -11843,7 +11846,7 @@ function scheduleUpdateOnFiber(root, fiber, lane, eventTime) { 4 === workInProgressRootExitStatus && markRootSuspended$1(root, workInProgressRootRenderLanes)), ensureRootIsScheduled(root, eventTime), - 1 === lane && + 2 === lane && 0 === executionContext && 0 === (fiber.mode & 1) && (resetRenderTimer(), @@ -11865,7 +11868,7 @@ function ensureRootIsScheduled(root, currentTime) { root.callbackPriority !== currentTime) ) { null != existingCallbackNode && cancelCallback(existingCallbackNode); - if (1 === currentTime) + if (0 !== (currentTime & 3)) 0 === root.tag ? scheduleLegacySyncCallback(performSyncWorkOnRoot.bind(null, root)) : scheduleSyncCallback(performSyncWorkOnRoot.bind(null, root)), @@ -11875,13 +11878,13 @@ function ensureRootIsScheduled(root, currentTime) { (existingCallbackNode = null); else { switch (lanesToEventPriority(nextLanes)) { - case 1: + case 2: existingCallbackNode = ImmediatePriority; break; - case 4: + case 8: existingCallbackNode = UserBlockingPriority; break; - case 16: + case 32: existingCallbackNode = NormalPriority; break; case 536870912: @@ -11984,7 +11987,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) { case 3: markRootSuspended$1(root, lanes); if ( - (lanes & 130023424) === lanes && + (lanes & 125829120) === lanes && ((didTimeout = globalMostRecentFallbackTime + 500 - now()), 10 < didTimeout) ) { @@ -12015,7 +12018,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) { break; case 4: markRootSuspended$1(root, lanes); - if ((lanes & 4194240) === lanes) break; + if ((lanes & 8388480) === lanes) break; didTimeout = root.eventTimes; for (originallyAttemptedLanes = -1; 0 < lanes; ) (errorRetryLanes$194 = 31 - clz32(lanes)), @@ -12157,7 +12160,7 @@ function performSyncWorkOnRoot(root) { if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); flushPassiveEffects(); var lanes = getNextLanes(root, 0); - if (0 === (lanes & 1)) return ensureRootIsScheduled(root, now()), null; + if (0 === (lanes & 3)) return ensureRootIsScheduled(root, now()), null; var exitStatus = renderRootSync(root, lanes); if (0 !== root.tag && 2 === exitStatus) { var originallyAttemptedLanes = lanes, @@ -12217,7 +12220,7 @@ function flushSync(fn) { try { if ( ((ReactCurrentBatchConfig$3.transition = null), - (currentUpdatePriority = 1), + (currentUpdatePriority = 2), fn) ) return fn(); @@ -12286,7 +12289,7 @@ function handleThrow(root, thrownValue) { } function shouldAttemptToSuspendUntilDataResolves() { if ( - (workInProgressRootRenderLanes & 130023424) === + (workInProgressRootRenderLanes & 125829120) === workInProgressRootRenderLanes ) return !0; @@ -12296,7 +12299,7 @@ function shouldAttemptToSuspendUntilDataResolves() { ) return !1; if ( - (workInProgressRootRenderLanes & 4194240) === + (workInProgressRootRenderLanes & 8388480) === workInProgressRootRenderLanes ) { var suspenseHandler = suspenseHandlerStackCursor.current; @@ -12694,7 +12697,7 @@ function commitRoot(root, recoverableErrors, transitions) { prevTransition = ReactCurrentBatchConfig$3.transition; try { (ReactCurrentBatchConfig$3.transition = null), - (currentUpdatePriority = 1), + (currentUpdatePriority = 2), commitRootImpl( root, recoverableErrors, @@ -12745,7 +12748,7 @@ function commitRootImpl( transitions = ReactCurrentBatchConfig$3.transition; ReactCurrentBatchConfig$3.transition = null; var previousPriority = currentUpdatePriority; - currentUpdatePriority = 1; + currentUpdatePriority = 2; var prevExecutionContext = executionContext; executionContext |= 4; ReactCurrentOwner$2.current = null; @@ -12794,11 +12797,11 @@ function commitRootImpl( (root = firstUncaughtError), (firstUncaughtError = null), root); - 0 !== (pendingPassiveEffectsLanes & 1) && + 0 !== (pendingPassiveEffectsLanes & 3) && 0 !== root.tag && flushPassiveEffects(); remainingLanes = root.pendingLanes; - 0 !== (remainingLanes & 1) + 0 !== (remainingLanes & 3) ? root === rootWithNestedUpdates ? nestedUpdateCount++ : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root)) @@ -12818,7 +12821,7 @@ function flushPassiveEffects() { remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes), - priority = 16 > renderPriority ? 16 : renderPriority; + priority = 32 > renderPriority ? 32 : renderPriority; renderPriority = ReactCurrentBatchConfig$3.transition; var previousPriority = currentUpdatePriority; try { @@ -12861,11 +12864,11 @@ function flushPassiveEffects() { } function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) { sourceFiber = createCapturedValueAtFiber(error, sourceFiber); - sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 1); - rootFiber = enqueueUpdate$1(rootFiber, sourceFiber, 1); + sourceFiber = createRootErrorUpdate(rootFiber, sourceFiber, 2); + rootFiber = enqueueUpdate$1(rootFiber, sourceFiber, 2); sourceFiber = requestEventTime(); null !== rootFiber && - (markRootUpdated(rootFiber, 1, sourceFiber), + (markRootUpdated(rootFiber, 2, sourceFiber), ensureRootIsScheduled(rootFiber, sourceFiber)); } function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) { @@ -12893,16 +12896,16 @@ function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) { sourceFiber = createClassErrorUpdate( nearestMountedAncestor, sourceFiber, - 1 + 2 ); nearestMountedAncestor = enqueueUpdate$1( nearestMountedAncestor, sourceFiber, - 1 + 2 ); sourceFiber = requestEventTime(); null !== nearestMountedAncestor && - (markRootUpdated(nearestMountedAncestor, 1, sourceFiber), + (markRootUpdated(nearestMountedAncestor, 2, sourceFiber), ensureRootIsScheduled(nearestMountedAncestor, sourceFiber)); break; } @@ -12935,7 +12938,7 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) { (workInProgressRootRenderLanes & pingedLanes) === pingedLanes && (4 === workInProgressRootExitStatus || (3 === workInProgressRootExitStatus && - (workInProgressRootRenderLanes & 130023424) === + (workInProgressRootRenderLanes & 125829120) === workInProgressRootRenderLanes && 500 > now() - globalMostRecentFallbackTime) ? prepareFreshStack(root, 0) @@ -12945,10 +12948,10 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) { function retryTimedOutBoundary(boundaryFiber, retryLane) { 0 === retryLane && (0 === (boundaryFiber.mode & 1) - ? (retryLane = 1) + ? (retryLane = 2) : ((retryLane = nextRetryLane), (nextRetryLane <<= 1), - 0 === (nextRetryLane & 130023424) && (nextRetryLane = 4194304))); + 0 === (nextRetryLane & 125829120) && (nextRetryLane = 8388608))); var eventTime = requestEventTime(); boundaryFiber = enqueueConcurrentRenderForLane(boundaryFiber, retryLane); null !== boundaryFiber && @@ -13893,7 +13896,7 @@ _attemptSynchronousHydration = function(fiber) { if (root$205.current.memoizedState.isDehydrated) { var lanes = getHighestPriorityLanes(root$205.pendingLanes); 0 !== lanes && - (markRootEntangled(root$205, lanes | 1), + (markRootEntangled(root$205, lanes | 2), ensureRootIsScheduled(root$205, now()), 0 === (executionContext & 6) && (resetRenderTimer(), flushSyncCallbacks())); @@ -13901,13 +13904,13 @@ _attemptSynchronousHydration = function(fiber) { break; case 13: flushSync(function() { - var root = enqueueConcurrentRenderForLane(fiber, 1); + var root = enqueueConcurrentRenderForLane(fiber, 2); if (null !== root) { var eventTime = requestEventTime(); - scheduleUpdateOnFiber(root, fiber, 1, eventTime); + scheduleUpdateOnFiber(root, fiber, 2, eventTime); } }), - markRetryLaneIfNotHydrated(fiber, 1); + markRetryLaneIfNotHydrated(fiber, 2); } }; attemptContinuousHydration = function(fiber) { @@ -13977,7 +13980,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1666 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-modern-2655c9354-20221121", + version: "18.3.0-www-modern-8a23def32-20221128", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2076 = { @@ -14008,7 +14011,7 @@ var internals$jscomp$inline_2076 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-next-2655c9354-20221121" + reconcilerVersion: "18.3.0-next-8a23def32-20221128" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2077 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -14321,7 +14324,7 @@ exports.unstable_flushControlled = function(fn) { previousPriority = currentUpdatePriority; try { (ReactCurrentBatchConfig$3.transition = null), - (currentUpdatePriority = 1), + (currentUpdatePriority = 2), fn(); } finally { (currentUpdatePriority = previousPriority), @@ -14332,4 +14335,4 @@ exports.unstable_flushControlled = function(fn) { }; exports.unstable_isNewReconciler = !1; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-next-2655c9354-20221121"; +exports.version = "18.3.0-next-8a23def32-20221128"; diff --git a/compiled/facebook-www/ReactTestRenderer-dev.classic.js b/compiled/facebook-www/ReactTestRenderer-dev.classic.js index 64a33e363d..fca04ed7a6 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.classic.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.classic.js @@ -1153,91 +1153,91 @@ var NoLanes = var NoLane = /* */ 0; +var SyncHydrationLane = + /* */ + 1; var SyncLane = /* */ - 1; + 2; var InputContinuousHydrationLane = /* */ - 2; + 4; var InputContinuousLane = /* */ - 4; + 8; var DefaultHydrationLane = /* */ - 8; + 16; var DefaultLane = /* */ - 16; + 32; var TransitionHydrationLane = /* */ - 32; + 64; var TransitionLanes = /* */ - 4194240; + 8388480; var TransitionLane1 = /* */ - 64; + 128; var TransitionLane2 = /* */ - 128; + 256; var TransitionLane3 = /* */ - 256; + 512; var TransitionLane4 = /* */ - 512; + 1024; var TransitionLane5 = /* */ - 1024; + 2048; var TransitionLane6 = /* */ - 2048; + 4096; var TransitionLane7 = /* */ - 4096; + 8192; var TransitionLane8 = /* */ - 8192; + 16384; var TransitionLane9 = /* */ - 16384; + 32768; var TransitionLane10 = /* */ - 32768; + 65536; var TransitionLane11 = /* */ - 65536; + 131072; var TransitionLane12 = /* */ - 131072; + 262144; var TransitionLane13 = /* */ - 262144; + 524288; var TransitionLane14 = /* */ - 524288; + 1048576; var TransitionLane15 = /* */ - 1048576; + 2097152; var TransitionLane16 = /* */ - 2097152; + 4194304; var RetryLanes = /* */ - 130023424; + 125829120; var RetryLane1 = /* */ - 4194304; + 8388608; var RetryLane2 = /* */ - 8388608; + 16777216; var RetryLane3 = - /* */ - 16777216; -var RetryLane4 = /* */ 33554432; -var RetryLane5 = +var RetryLane4 = /* */ 67108864; var SomeRetryLane = RetryLane1; @@ -1262,6 +1262,9 @@ var nextRetryLane = RetryLane1; function getHighestPriorityLanes(lanes) { switch (getHighestPriorityLane(lanes)) { + case SyncHydrationLane: + return SyncHydrationLane; + case SyncLane: return SyncLane; @@ -1302,7 +1305,6 @@ function getHighestPriorityLanes(lanes) { case RetryLane2: case RetryLane3: case RetryLane4: - case RetryLane5: return lanes & RetryLanes; case SelectiveHydrationLane: @@ -1463,6 +1465,7 @@ function getMostRecentEventTime(root, lanes) { function computeExpirationTime(lane, currentTime) { switch (lane) { + case SyncHydrationLane: case SyncLane: case InputContinuousHydrationLane: case InputContinuousLane: @@ -1502,7 +1505,6 @@ function computeExpirationTime(lane, currentTime) { case RetryLane2: case RetryLane3: case RetryLane4: - case RetryLane5: // TODO: Retries should be allowed to expire if they are CPU bound for // too long, but when I made this change it caused a spike in browser // crashes. There must be some other underlying bug; not super urgent but @@ -1585,6 +1587,9 @@ function getLanesToRetrySynchronouslyOnError(root, originallyAttemptedLanes) { return NoLanes; } +function includesSyncLane(lanes) { + return (lanes & (SyncLane | SyncHydrationLane)) !== NoLanes; +} function includesNonIdleWork(lanes) { return (lanes & NonIdleLanes) !== NoLanes; } @@ -1592,6 +1597,8 @@ function includesOnlyRetries(lanes) { return (lanes & RetryLanes) === lanes; } function includesOnlyNonUrgentLanes(lanes) { + // TODO: Should hydration lanes be included here? This function is only + // used in `updateDeferredValueImpl`. var UrgentLanes = SyncLane | InputContinuousLane | DefaultLane; return (lanes & UrgentLanes) === NoLanes; } @@ -1829,6 +1836,10 @@ function getBumpedLaneForHydration(root, renderLanes) { var lane; switch (renderLane) { + case SyncLane: + lane = SyncHydrationLane; + break; + case InputContinuousLane: lane = InputContinuousHydrationLane; break; @@ -1857,7 +1868,6 @@ function getBumpedLaneForHydration(root, renderLanes) { case RetryLane2: case RetryLane3: case RetryLane4: - case RetryLane5: lane = TransitionHydrationLane; break; @@ -20133,7 +20143,7 @@ function ensureRootIsScheduled(root, currentTime) { // TODO: Temporary until we confirm this warning is not fired. if ( existingCallbackNode == null && - existingCallbackPriority !== SyncLane + !includesSyncLane(existingCallbackPriority) ) { error( "Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue." @@ -20151,7 +20161,7 @@ function ensureRootIsScheduled(root, currentTime) { var newCallbackNode; - if (newCallbackPriority === SyncLane) { + if (includesSyncLane(newCallbackPriority)) { // Special case: Sync React callbacks are scheduled on a special // internal queue if (root.tag === LegacyRoot) { @@ -20688,7 +20698,7 @@ function performSyncWorkOnRoot(root) { flushPassiveEffects(); var lanes = getNextLanes(root, NoLanes); - if (!includesSomeLane(lanes, SyncLane)) { + if (!includesSyncLane(lanes)) { // There's no remaining sync work left. ensureRootIsScheduled(root, now()); return null; @@ -21846,16 +21856,13 @@ function commitRootImpl( // currently schedule the callback in multiple places, will wait until those // are consolidated. - if ( - includesSomeLane(pendingPassiveEffectsLanes, SyncLane) && - root.tag !== LegacyRoot - ) { + if (includesSyncLane(pendingPassiveEffectsLanes) && root.tag !== LegacyRoot) { flushPassiveEffects(); } // Read this again, since a passive effect might have updated it remainingLanes = root.pendingLanes; - if (includesSomeLane(remainingLanes, SyncLane)) { + if (includesSyncLane(remainingLanes)) { { markNestedUpdateScheduled(); } // Count the number of times the root synchronously re-renders without @@ -23823,7 +23830,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-classic-2655c9354-20221121"; +var ReactVersion = "18.3.0-www-classic-8a23def32-20221128"; var didWarnAboutNestedUpdates; diff --git a/compiled/facebook-www/ReactTestRenderer-dev.modern.js b/compiled/facebook-www/ReactTestRenderer-dev.modern.js index 86089db655..b6491e1280 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.modern.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.modern.js @@ -1153,91 +1153,91 @@ var NoLanes = var NoLane = /* */ 0; +var SyncHydrationLane = + /* */ + 1; var SyncLane = /* */ - 1; + 2; var InputContinuousHydrationLane = /* */ - 2; + 4; var InputContinuousLane = /* */ - 4; + 8; var DefaultHydrationLane = /* */ - 8; + 16; var DefaultLane = /* */ - 16; + 32; var TransitionHydrationLane = /* */ - 32; + 64; var TransitionLanes = /* */ - 4194240; + 8388480; var TransitionLane1 = /* */ - 64; + 128; var TransitionLane2 = /* */ - 128; + 256; var TransitionLane3 = /* */ - 256; + 512; var TransitionLane4 = /* */ - 512; + 1024; var TransitionLane5 = /* */ - 1024; + 2048; var TransitionLane6 = /* */ - 2048; + 4096; var TransitionLane7 = /* */ - 4096; + 8192; var TransitionLane8 = /* */ - 8192; + 16384; var TransitionLane9 = /* */ - 16384; + 32768; var TransitionLane10 = /* */ - 32768; + 65536; var TransitionLane11 = /* */ - 65536; + 131072; var TransitionLane12 = /* */ - 131072; + 262144; var TransitionLane13 = /* */ - 262144; + 524288; var TransitionLane14 = /* */ - 524288; + 1048576; var TransitionLane15 = /* */ - 1048576; + 2097152; var TransitionLane16 = /* */ - 2097152; + 4194304; var RetryLanes = /* */ - 130023424; + 125829120; var RetryLane1 = /* */ - 4194304; + 8388608; var RetryLane2 = /* */ - 8388608; + 16777216; var RetryLane3 = - /* */ - 16777216; -var RetryLane4 = /* */ 33554432; -var RetryLane5 = +var RetryLane4 = /* */ 67108864; var SomeRetryLane = RetryLane1; @@ -1262,6 +1262,9 @@ var nextRetryLane = RetryLane1; function getHighestPriorityLanes(lanes) { switch (getHighestPriorityLane(lanes)) { + case SyncHydrationLane: + return SyncHydrationLane; + case SyncLane: return SyncLane; @@ -1302,7 +1305,6 @@ function getHighestPriorityLanes(lanes) { case RetryLane2: case RetryLane3: case RetryLane4: - case RetryLane5: return lanes & RetryLanes; case SelectiveHydrationLane: @@ -1463,6 +1465,7 @@ function getMostRecentEventTime(root, lanes) { function computeExpirationTime(lane, currentTime) { switch (lane) { + case SyncHydrationLane: case SyncLane: case InputContinuousHydrationLane: case InputContinuousLane: @@ -1502,7 +1505,6 @@ function computeExpirationTime(lane, currentTime) { case RetryLane2: case RetryLane3: case RetryLane4: - case RetryLane5: // TODO: Retries should be allowed to expire if they are CPU bound for // too long, but when I made this change it caused a spike in browser // crashes. There must be some other underlying bug; not super urgent but @@ -1585,6 +1587,9 @@ function getLanesToRetrySynchronouslyOnError(root, originallyAttemptedLanes) { return NoLanes; } +function includesSyncLane(lanes) { + return (lanes & (SyncLane | SyncHydrationLane)) !== NoLanes; +} function includesNonIdleWork(lanes) { return (lanes & NonIdleLanes) !== NoLanes; } @@ -1592,6 +1597,8 @@ function includesOnlyRetries(lanes) { return (lanes & RetryLanes) === lanes; } function includesOnlyNonUrgentLanes(lanes) { + // TODO: Should hydration lanes be included here? This function is only + // used in `updateDeferredValueImpl`. var UrgentLanes = SyncLane | InputContinuousLane | DefaultLane; return (lanes & UrgentLanes) === NoLanes; } @@ -1829,6 +1836,10 @@ function getBumpedLaneForHydration(root, renderLanes) { var lane; switch (renderLane) { + case SyncLane: + lane = SyncHydrationLane; + break; + case InputContinuousLane: lane = InputContinuousHydrationLane; break; @@ -1857,7 +1868,6 @@ function getBumpedLaneForHydration(root, renderLanes) { case RetryLane2: case RetryLane3: case RetryLane4: - case RetryLane5: lane = TransitionHydrationLane; break; @@ -20133,7 +20143,7 @@ function ensureRootIsScheduled(root, currentTime) { // TODO: Temporary until we confirm this warning is not fired. if ( existingCallbackNode == null && - existingCallbackPriority !== SyncLane + !includesSyncLane(existingCallbackPriority) ) { error( "Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue." @@ -20151,7 +20161,7 @@ function ensureRootIsScheduled(root, currentTime) { var newCallbackNode; - if (newCallbackPriority === SyncLane) { + if (includesSyncLane(newCallbackPriority)) { // Special case: Sync React callbacks are scheduled on a special // internal queue if (root.tag === LegacyRoot) { @@ -20688,7 +20698,7 @@ function performSyncWorkOnRoot(root) { flushPassiveEffects(); var lanes = getNextLanes(root, NoLanes); - if (!includesSomeLane(lanes, SyncLane)) { + if (!includesSyncLane(lanes)) { // There's no remaining sync work left. ensureRootIsScheduled(root, now()); return null; @@ -21846,16 +21856,13 @@ function commitRootImpl( // currently schedule the callback in multiple places, will wait until those // are consolidated. - if ( - includesSomeLane(pendingPassiveEffectsLanes, SyncLane) && - root.tag !== LegacyRoot - ) { + if (includesSyncLane(pendingPassiveEffectsLanes) && root.tag !== LegacyRoot) { flushPassiveEffects(); } // Read this again, since a passive effect might have updated it remainingLanes = root.pendingLanes; - if (includesSomeLane(remainingLanes, SyncLane)) { + if (includesSyncLane(remainingLanes)) { { markNestedUpdateScheduled(); } // Count the number of times the root synchronously re-renders without @@ -23823,7 +23830,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-modern-2655c9354-20221121"; +var ReactVersion = "18.3.0-www-modern-8a23def32-20221128"; var didWarnAboutNestedUpdates;