@@ -691,6 +691,11 @@ function createLaneMap(initial) {
691
691
for (var laneMap = [], i = 0; 31 > i; i++) laneMap.push(initial);
692
692
return laneMap;
693
693
}
694
+ function markRootUpdated$1(root, updateLane) {
695
+ root.pendingLanes |= updateLane;
696
+ 268435456 !== updateLane &&
697
+ ((root.suspendedLanes = 0), (root.pingedLanes = 0), (root.warmLanes = 0));
698
+ }
694
699
function markRootFinished(
695
700
root,
696
701
finishedLanes,
@@ -2398,7 +2403,12 @@ function markUpdateLaneFromFiberToRoot(sourceFiber, update, lane) {
2398
2403
(update.lane = lane | 536870912));
2399
2404
}
2400
2405
function getRootForUpdatedFiber(sourceFiber) {
2401
- throwIfInfiniteUpdateLoopDetected();
2406
+ if (50 < nestedUpdateCount)
2407
+ throw (
2408
+ ((nestedUpdateCount = 0),
2409
+ (rootWithNestedUpdates = null),
2410
+ Error(formatProdErrorMessage(185)))
2411
+ );
2402
2412
for (var parent = sourceFiber.return; null !== parent; )
2403
2413
(sourceFiber = parent), (parent = sourceFiber.return);
2404
2414
return 3 === sourceFiber.tag ? sourceFiber.stateNode : null;
@@ -10334,7 +10344,6 @@ var DefaultAsyncDispatcher = {
10334
10344
workInProgressRootConcurrentErrors = null,
10335
10345
workInProgressRootRecoverableErrors = null,
10336
10346
workInProgressRootDidIncludeRecursiveRenderUpdate = !1,
10337
- didIncludeCommitPhaseUpdate = !1,
10338
10347
globalMostRecentFallbackTime = 0,
10339
10348
workInProgressRootRenderTargetTime = Infinity,
10340
10349
workInProgressTransitions = null,
@@ -10377,7 +10386,7 @@ function scheduleUpdateOnFiber(root, fiber, lane) {
10377
10386
workInProgressDeferredLane,
10378
10387
workInProgressRootDidSkipSuspendedSiblings
10379
10388
);
10380
- markRootUpdated(root, lane);
10389
+ markRootUpdated$1 (root, lane);
10381
10390
if (0 === (executionContext & 2) || root !== workInProgressRoot)
10382
10391
root === workInProgressRoot &&
10383
10392
(0 === (executionContext & 2) &&
@@ -10656,15 +10665,6 @@ function isRenderConsistentWithExternalStores(finishedWork) {
10656
10665
}
10657
10666
return !0;
10658
10667
}
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
- }
10668
10668
function markRootSuspended(
10669
10669
root,
10670
10670
suspendedLanes,
@@ -11163,8 +11163,8 @@ function commitRootImpl(
11163
11163
do flushPassiveEffects();
11164
11164
while (null !== rootWithPendingPassiveEffects);
11165
11165
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;
11168
11168
if (null === finishedWork) return null;
11169
11169
root.finishedWork = null;
11170
11170
root.finishedLanes = 0;
@@ -11176,13 +11176,12 @@ function commitRootImpl(
11176
11176
remainingLanes |= concurrentlyUpdatedLanes;
11177
11177
markRootFinished(
11178
11178
root,
11179
- lanes ,
11179
+ didIncludeRenderPhaseUpdate ,
11180
11180
remainingLanes,
11181
11181
spawnedLane,
11182
11182
updatedLanes,
11183
11183
suspendedRetryLanes
11184
11184
);
11185
- didIncludeCommitPhaseUpdate = !1;
11186
11185
root === workInProgressRoot &&
11187
11186
((workInProgress = workInProgressRoot = null),
11188
11187
(workInProgressRootRenderLanes = 0));
@@ -11219,7 +11218,7 @@ function commitRootImpl(
11219
11218
rootDoesHavePassiveEffects
11220
11219
? ((rootDoesHavePassiveEffects = !1),
11221
11220
(rootWithPendingPassiveEffects = root),
11222
- (pendingPassiveEffectsLanes = lanes ))
11221
+ (pendingPassiveEffectsLanes = didIncludeRenderPhaseUpdate ))
11223
11222
: releaseRootPooledCache(root, remainingLanes);
11224
11223
remainingLanes = root.pendingLanes;
11225
11224
0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null);
@@ -11237,9 +11236,7 @@ function commitRootImpl(
11237
11236
});
11238
11237
0 !== (pendingPassiveEffectsLanes & 3) && flushPassiveEffects();
11239
11238
remainingLanes = root.pendingLanes;
11240
- didIncludeRenderPhaseUpdate ||
11241
- didIncludeCommitPhaseUpdate ||
11242
- (0 !== (lanes & 4194218) && 0 !== (remainingLanes & 42))
11239
+ 0 !== (didIncludeRenderPhaseUpdate & 4194218) && 0 !== (remainingLanes & 42)
11243
11240
? root === rootWithNestedUpdates
11244
11241
? nestedUpdateCount++
11245
11242
: ((nestedUpdateCount = 0), (rootWithNestedUpdates = root))
@@ -11304,7 +11301,7 @@ function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {
11304
11301
sourceFiber = createRootErrorUpdate(rootFiber.stateNode, sourceFiber, 2);
11305
11302
rootFiber = enqueueUpdate(rootFiber, sourceFiber, 2);
11306
11303
null !== rootFiber &&
11307
- (markRootUpdated(rootFiber, 2), ensureRootIsScheduled(rootFiber));
11304
+ (markRootUpdated$1 (rootFiber, 2), ensureRootIsScheduled(rootFiber));
11308
11305
}
11309
11306
function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) {
11310
11307
if (3 === sourceFiber.tag)
@@ -11337,7 +11334,7 @@ function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) {
11337
11334
nearestMountedAncestor,
11338
11335
sourceFiber
11339
11336
),
11340
- markRootUpdated(instance, 2),
11337
+ markRootUpdated$1 (instance, 2),
11341
11338
ensureRootIsScheduled(instance));
11342
11339
break;
11343
11340
}
@@ -11366,10 +11363,6 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) {
11366
11363
null !== pingCache && pingCache.delete(wakeable);
11367
11364
root.pingedLanes |= root.suspendedLanes & pingedLanes;
11368
11365
root.warmLanes &= ~pingedLanes;
11369
- executionContext & 2
11370
- ? (workInProgressRootDidIncludeRecursiveRenderUpdate = !0)
11371
- : executionContext & 4 && (didIncludeCommitPhaseUpdate = !0);
11372
- throwIfInfiniteUpdateLoopDetected();
11373
11366
workInProgressRoot === root &&
11374
11367
(workInProgressRootRenderLanes & pingedLanes) === pingedLanes &&
11375
11368
(4 === workInProgressRootExitStatus ||
@@ -11387,7 +11380,7 @@ function retryTimedOutBoundary(boundaryFiber, retryLane) {
11387
11380
0 === retryLane && (retryLane = claimNextRetryLane());
11388
11381
boundaryFiber = enqueueConcurrentRenderForLane(boundaryFiber, retryLane);
11389
11382
null !== boundaryFiber &&
11390
- (markRootUpdated(boundaryFiber, retryLane),
11383
+ (markRootUpdated$1 (boundaryFiber, retryLane),
11391
11384
ensureRootIsScheduled(boundaryFiber));
11392
11385
}
11393
11386
function retryDehydratedSuspenseBoundary(boundaryFiber) {
@@ -11416,18 +11409,6 @@ function resolveRetryWakeable(boundaryFiber, wakeable) {
11416
11409
null !== retryCache && retryCache.delete(wakeable);
11417
11410
retryTimedOutBoundary(boundaryFiber, retryLane);
11418
11411
}
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
- }
11431
11412
function scheduleCallback$1(priorityLevel, callback) {
11432
11413
return scheduleCallback$3(priorityLevel, callback);
11433
11414
}
@@ -11714,20 +11695,20 @@ function extractEvents$1(
11714
11695
}
11715
11696
}
11716
11697
for (
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 ++
11720
11701
) {
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);
11728
11709
registerSimpleEvent(
11729
- domEventName$jscomp$inline_1414 ,
11730
- "on" + capitalizedEvent$jscomp$inline_1415
11710
+ domEventName$jscomp$inline_1427 ,
11711
+ "on" + capitalizedEvent$jscomp$inline_1428
11731
11712
);
11732
11713
}
11733
11714
registerSimpleEvent(ANIMATION_END, "onAnimationEnd");
@@ -15168,16 +15149,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
15168
15149
0 === i && attemptExplicitHydrationTarget(target);
15169
15150
}
15170
15151
};
15171
- var isomorphicReactPackageVersion$jscomp$inline_1659 = React.version;
15152
+ var isomorphicReactPackageVersion$jscomp$inline_1672 = React.version;
15172
15153
if (
15173
- "19.0.0-experimental-2d16326d-20240930 " !==
15174
- isomorphicReactPackageVersion$jscomp$inline_1659
15154
+ "19.0.0-experimental-459fd418-20241001 " !==
15155
+ isomorphicReactPackageVersion$jscomp$inline_1672
15175
15156
)
15176
15157
throw Error(
15177
15158
formatProdErrorMessage(
15178
15159
527,
15179
- isomorphicReactPackageVersion$jscomp$inline_1659 ,
15180
- "19.0.0-experimental-2d16326d-20240930 "
15160
+ isomorphicReactPackageVersion$jscomp$inline_1672 ,
15161
+ "19.0.0-experimental-459fd418-20241001 "
15181
15162
)
15182
15163
);
15183
15164
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -15197,25 +15178,25 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
15197
15178
null === componentOrElement ? null : componentOrElement.stateNode;
15198
15179
return componentOrElement;
15199
15180
};
15200
- var internals$jscomp$inline_2124 = {
15181
+ var internals$jscomp$inline_2137 = {
15201
15182
bundleType: 0,
15202
- version: "19.0.0-experimental-2d16326d-20240930 ",
15183
+ version: "19.0.0-experimental-459fd418-20241001 ",
15203
15184
rendererPackageName: "react-dom",
15204
15185
currentDispatcherRef: ReactSharedInternals,
15205
15186
findFiberByHostInstance: getClosestInstanceFromNode,
15206
- reconcilerVersion: "19.0.0-experimental-2d16326d-20240930 "
15187
+ reconcilerVersion: "19.0.0-experimental-459fd418-20241001 "
15207
15188
};
15208
15189
if ("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__;
15210
15191
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
15213
15194
)
15214
15195
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
15217
15198
)),
15218
- (injectedHook = hook$jscomp$inline_2125 );
15199
+ (injectedHook = hook$jscomp$inline_2138 );
15219
15200
} catch (err) {}
15220
15201
}
15221
15202
exports.createRoot = function (container, options) {
@@ -15301,10 +15282,10 @@ exports.hydrateRoot = function (container, initialChildren, options) {
15301
15282
identifierPrefix.callback = null;
15302
15283
enqueueUpdate(options, identifierPrefix, isStrictMode);
15303
15284
initialChildren.current.lanes = isStrictMode;
15304
- markRootUpdated(initialChildren, isStrictMode);
15285
+ markRootUpdated$1 (initialChildren, isStrictMode);
15305
15286
ensureRootIsScheduled(initialChildren);
15306
15287
container[internalContainerInstanceKey] = initialChildren.current;
15307
15288
listenToAllSupportedEvents(container);
15308
15289
return new ReactDOMHydrationRoot(initialChildren);
15309
15290
};
15310
- exports.version = "19.0.0-experimental-2d16326d-20240930 ";
15291
+ exports.version = "19.0.0-experimental-459fd418-20241001 ";
0 commit comments