@@ -691,6 +691,11 @@ function createLaneMap(initial) {
691691 for (var laneMap = [], i = 0; 31 > i; i++) laneMap.push(initial);
692692 return laneMap;
693693}
694+ function markRootUpdated$1(root, updateLane) {
695+ root.pendingLanes |= updateLane;
696+ 268435456 !== updateLane &&
697+ ((root.suspendedLanes = 0), (root.pingedLanes = 0), (root.warmLanes = 0));
698+ }
694699function markRootFinished(
695700 root,
696701 finishedLanes,
@@ -2398,7 +2403,12 @@ function markUpdateLaneFromFiberToRoot(sourceFiber, update, lane) {
23982403 (update.lane = lane | 536870912));
23992404}
24002405function getRootForUpdatedFiber(sourceFiber) {
2401- throwIfInfiniteUpdateLoopDetected();
2406+ if (50 < nestedUpdateCount)
2407+ throw (
2408+ ((nestedUpdateCount = 0),
2409+ (rootWithNestedUpdates = null),
2410+ Error(formatProdErrorMessage(185)))
2411+ );
24022412 for (var parent = sourceFiber.return; null !== parent; )
24032413 (sourceFiber = parent), (parent = sourceFiber.return);
24042414 return 3 === sourceFiber.tag ? sourceFiber.stateNode : null;
@@ -10334,7 +10344,6 @@ var DefaultAsyncDispatcher = {
1033410344 workInProgressRootConcurrentErrors = null,
1033510345 workInProgressRootRecoverableErrors = null,
1033610346 workInProgressRootDidIncludeRecursiveRenderUpdate = !1,
10337- didIncludeCommitPhaseUpdate = !1,
1033810347 globalMostRecentFallbackTime = 0,
1033910348 workInProgressRootRenderTargetTime = Infinity,
1034010349 workInProgressTransitions = null,
@@ -10377,7 +10386,7 @@ function scheduleUpdateOnFiber(root, fiber, lane) {
1037710386 workInProgressDeferredLane,
1037810387 workInProgressRootDidSkipSuspendedSiblings
1037910388 );
10380- markRootUpdated(root, lane);
10389+ markRootUpdated$1 (root, lane);
1038110390 if (0 === (executionContext & 2) || root !== workInProgressRoot)
1038210391 root === workInProgressRoot &&
1038310392 (0 === (executionContext & 2) &&
@@ -10656,15 +10665,6 @@ function isRenderConsistentWithExternalStores(finishedWork) {
1065610665 }
1065710666 return !0;
1065810667}
10659- function markRootUpdated(root, updatedLanes) {
10660- root.pendingLanes |= updatedLanes;
10661- 268435456 !== updatedLanes &&
10662- ((root.suspendedLanes = 0), (root.pingedLanes = 0), (root.warmLanes = 0));
10663- executionContext & 2
10664- ? (workInProgressRootDidIncludeRecursiveRenderUpdate = !0)
10665- : executionContext & 4 && (didIncludeCommitPhaseUpdate = !0);
10666- throwIfInfiniteUpdateLoopDetected();
10667- }
1066810668function markRootSuspended(
1066910669 root,
1067010670 suspendedLanes,
@@ -11163,8 +11163,8 @@ function commitRootImpl(
1116311163 do flushPassiveEffects();
1116411164 while (null !== rootWithPendingPassiveEffects);
1116511165 if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327));
11166- var finishedWork = root.finishedWork,
11167- lanes = root.finishedLanes;
11166+ var finishedWork = root.finishedWork;
11167+ didIncludeRenderPhaseUpdate = root.finishedLanes;
1116811168 if (null === finishedWork) return null;
1116911169 root.finishedWork = null;
1117011170 root.finishedLanes = 0;
@@ -11176,13 +11176,12 @@ function commitRootImpl(
1117611176 remainingLanes |= concurrentlyUpdatedLanes;
1117711177 markRootFinished(
1117811178 root,
11179- lanes ,
11179+ didIncludeRenderPhaseUpdate ,
1118011180 remainingLanes,
1118111181 spawnedLane,
1118211182 updatedLanes,
1118311183 suspendedRetryLanes
1118411184 );
11185- didIncludeCommitPhaseUpdate = !1;
1118611185 root === workInProgressRoot &&
1118711186 ((workInProgress = workInProgressRoot = null),
1118811187 (workInProgressRootRenderLanes = 0));
@@ -11219,7 +11218,7 @@ function commitRootImpl(
1121911218 rootDoesHavePassiveEffects
1122011219 ? ((rootDoesHavePassiveEffects = !1),
1122111220 (rootWithPendingPassiveEffects = root),
11222- (pendingPassiveEffectsLanes = lanes ))
11221+ (pendingPassiveEffectsLanes = didIncludeRenderPhaseUpdate ))
1122311222 : releaseRootPooledCache(root, remainingLanes);
1122411223 remainingLanes = root.pendingLanes;
1122511224 0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null);
@@ -11237,9 +11236,7 @@ function commitRootImpl(
1123711236 });
1123811237 0 !== (pendingPassiveEffectsLanes & 3) && flushPassiveEffects();
1123911238 remainingLanes = root.pendingLanes;
11240- didIncludeRenderPhaseUpdate ||
11241- didIncludeCommitPhaseUpdate ||
11242- (0 !== (lanes & 4194218) && 0 !== (remainingLanes & 42))
11239+ 0 !== (didIncludeRenderPhaseUpdate & 4194218) && 0 !== (remainingLanes & 42)
1124311240 ? root === rootWithNestedUpdates
1124411241 ? nestedUpdateCount++
1124511242 : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root))
@@ -11304,7 +11301,7 @@ function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {
1130411301 sourceFiber = createRootErrorUpdate(rootFiber.stateNode, sourceFiber, 2);
1130511302 rootFiber = enqueueUpdate(rootFiber, sourceFiber, 2);
1130611303 null !== rootFiber &&
11307- (markRootUpdated(rootFiber, 2), ensureRootIsScheduled(rootFiber));
11304+ (markRootUpdated$1 (rootFiber, 2), ensureRootIsScheduled(rootFiber));
1130811305}
1130911306function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) {
1131011307 if (3 === sourceFiber.tag)
@@ -11337,7 +11334,7 @@ function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) {
1133711334 nearestMountedAncestor,
1133811335 sourceFiber
1133911336 ),
11340- markRootUpdated(instance, 2),
11337+ markRootUpdated$1 (instance, 2),
1134111338 ensureRootIsScheduled(instance));
1134211339 break;
1134311340 }
@@ -11366,10 +11363,6 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) {
1136611363 null !== pingCache && pingCache.delete(wakeable);
1136711364 root.pingedLanes |= root.suspendedLanes & pingedLanes;
1136811365 root.warmLanes &= ~pingedLanes;
11369- executionContext & 2
11370- ? (workInProgressRootDidIncludeRecursiveRenderUpdate = !0)
11371- : executionContext & 4 && (didIncludeCommitPhaseUpdate = !0);
11372- throwIfInfiniteUpdateLoopDetected();
1137311366 workInProgressRoot === root &&
1137411367 (workInProgressRootRenderLanes & pingedLanes) === pingedLanes &&
1137511368 (4 === workInProgressRootExitStatus ||
@@ -11387,7 +11380,7 @@ function retryTimedOutBoundary(boundaryFiber, retryLane) {
1138711380 0 === retryLane && (retryLane = claimNextRetryLane());
1138811381 boundaryFiber = enqueueConcurrentRenderForLane(boundaryFiber, retryLane);
1138911382 null !== boundaryFiber &&
11390- (markRootUpdated(boundaryFiber, retryLane),
11383+ (markRootUpdated$1 (boundaryFiber, retryLane),
1139111384 ensureRootIsScheduled(boundaryFiber));
1139211385}
1139311386function retryDehydratedSuspenseBoundary(boundaryFiber) {
@@ -11416,18 +11409,6 @@ function resolveRetryWakeable(boundaryFiber, wakeable) {
1141611409 null !== retryCache && retryCache.delete(wakeable);
1141711410 retryTimedOutBoundary(boundaryFiber, retryLane);
1141811411}
11419- function throwIfInfiniteUpdateLoopDetected() {
11420- if (100 < nestedUpdateCount)
11421- throw (
11422- ((nestedUpdateCount = 0),
11423- (rootWithNestedUpdates = null),
11424- executionContext & 2 &&
11425- null !== workInProgressRoot &&
11426- (workInProgressRoot.errorRecoveryDisabledLanes |=
11427- workInProgressRootRenderLanes),
11428- Error(formatProdErrorMessage(185)))
11429- );
11430- }
1143111412function scheduleCallback$1(priorityLevel, callback) {
1143211413 return scheduleCallback$3(priorityLevel, callback);
1143311414}
@@ -11714,20 +11695,20 @@ function extractEvents$1(
1171411695 }
1171511696}
1171611697for (
11717- var i$jscomp$inline_1412 = 0;
11718- i$jscomp$inline_1412 < simpleEventPluginEvents.length;
11719- i$jscomp$inline_1412 ++
11698+ var i$jscomp$inline_1425 = 0;
11699+ i$jscomp$inline_1425 < simpleEventPluginEvents.length;
11700+ i$jscomp$inline_1425 ++
1172011701) {
11721- var eventName$jscomp$inline_1413 =
11722- simpleEventPluginEvents[i$jscomp$inline_1412 ],
11723- domEventName$jscomp$inline_1414 =
11724- eventName$jscomp$inline_1413 .toLowerCase(),
11725- capitalizedEvent$jscomp$inline_1415 =
11726- eventName$jscomp$inline_1413 [0].toUpperCase() +
11727- eventName$jscomp$inline_1413 .slice(1);
11702+ var eventName$jscomp$inline_1426 =
11703+ simpleEventPluginEvents[i$jscomp$inline_1425 ],
11704+ domEventName$jscomp$inline_1427 =
11705+ eventName$jscomp$inline_1426 .toLowerCase(),
11706+ capitalizedEvent$jscomp$inline_1428 =
11707+ eventName$jscomp$inline_1426 [0].toUpperCase() +
11708+ eventName$jscomp$inline_1426 .slice(1);
1172811709 registerSimpleEvent(
11729- domEventName$jscomp$inline_1414 ,
11730- "on" + capitalizedEvent$jscomp$inline_1415
11710+ domEventName$jscomp$inline_1427 ,
11711+ "on" + capitalizedEvent$jscomp$inline_1428
1173111712 );
1173211713}
1173311714registerSimpleEvent(ANIMATION_END, "onAnimationEnd");
@@ -15168,16 +15149,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1516815149 0 === i && attemptExplicitHydrationTarget(target);
1516915150 }
1517015151};
15171- var isomorphicReactPackageVersion$jscomp$inline_1659 = React.version;
15152+ var isomorphicReactPackageVersion$jscomp$inline_1672 = React.version;
1517215153if (
15173- "19.0.0-experimental-2d16326d-20240930 " !==
15174- isomorphicReactPackageVersion$jscomp$inline_1659
15154+ "19.0.0-experimental-d5bba18b-20241009 " !==
15155+ isomorphicReactPackageVersion$jscomp$inline_1672
1517515156)
1517615157 throw Error(
1517715158 formatProdErrorMessage(
1517815159 527,
15179- isomorphicReactPackageVersion$jscomp$inline_1659 ,
15180- "19.0.0-experimental-2d16326d-20240930 "
15160+ isomorphicReactPackageVersion$jscomp$inline_1672 ,
15161+ "19.0.0-experimental-d5bba18b-20241009 "
1518115162 )
1518215163 );
1518315164ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -15197,25 +15178,25 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1519715178 null === componentOrElement ? null : componentOrElement.stateNode;
1519815179 return componentOrElement;
1519915180};
15200- var internals$jscomp$inline_2124 = {
15181+ var internals$jscomp$inline_2137 = {
1520115182 bundleType: 0,
15202- version: "19.0.0-experimental-2d16326d-20240930 ",
15183+ version: "19.0.0-experimental-d5bba18b-20241009 ",
1520315184 rendererPackageName: "react-dom",
1520415185 currentDispatcherRef: ReactSharedInternals,
1520515186 findFiberByHostInstance: getClosestInstanceFromNode,
15206- reconcilerVersion: "19.0.0-experimental-2d16326d-20240930 "
15187+ reconcilerVersion: "19.0.0-experimental-d5bba18b-20241009 "
1520715188};
1520815189if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
15209- var hook$jscomp$inline_2125 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
15190+ var hook$jscomp$inline_2138 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
1521015191 if (
15211- !hook$jscomp$inline_2125 .isDisabled &&
15212- hook$jscomp$inline_2125 .supportsFiber
15192+ !hook$jscomp$inline_2138 .isDisabled &&
15193+ hook$jscomp$inline_2138 .supportsFiber
1521315194 )
1521415195 try {
15215- (rendererID = hook$jscomp$inline_2125 .inject(
15216- internals$jscomp$inline_2124
15196+ (rendererID = hook$jscomp$inline_2138 .inject(
15197+ internals$jscomp$inline_2137
1521715198 )),
15218- (injectedHook = hook$jscomp$inline_2125 );
15199+ (injectedHook = hook$jscomp$inline_2138 );
1521915200 } catch (err) {}
1522015201}
1522115202exports.createRoot = function (container, options) {
@@ -15301,10 +15282,10 @@ exports.hydrateRoot = function (container, initialChildren, options) {
1530115282 identifierPrefix.callback = null;
1530215283 enqueueUpdate(options, identifierPrefix, isStrictMode);
1530315284 initialChildren.current.lanes = isStrictMode;
15304- markRootUpdated(initialChildren, isStrictMode);
15285+ markRootUpdated$1 (initialChildren, isStrictMode);
1530515286 ensureRootIsScheduled(initialChildren);
1530615287 container[internalContainerInstanceKey] = initialChildren.current;
1530715288 listenToAllSupportedEvents(container);
1530815289 return new ReactDOMHydrationRoot(initialChildren);
1530915290};
15310- exports.version = "19.0.0-experimental-2d16326d-20240930 ";
15291+ exports.version = "19.0.0-experimental-d5bba18b-20241009 ";
0 commit comments