@@ -7463,7 +7463,8 @@ function initSuspenseListRenderState(
7463
7463
isBackwards,
7464
7464
tail,
7465
7465
lastContentRow,
7466
- tailMode
7466
+ tailMode,
7467
+ treeForkCount
7467
7468
) {
7468
7469
var renderState = workInProgress.memoizedState;
7469
7470
null === renderState
@@ -7473,14 +7474,16 @@ function initSuspenseListRenderState(
7473
7474
renderingStartTime: 0,
7474
7475
last: lastContentRow,
7475
7476
tail: tail,
7476
- tailMode: tailMode
7477
+ tailMode: tailMode,
7478
+ treeForkCount: treeForkCount
7477
7479
})
7478
7480
: ((renderState.isBackwards = isBackwards),
7479
7481
(renderState.rendering = null),
7480
7482
(renderState.renderingStartTime = 0),
7481
7483
(renderState.last = lastContentRow),
7482
7484
(renderState.tail = tail),
7483
- (renderState.tailMode = tailMode));
7485
+ (renderState.tailMode = tailMode),
7486
+ (renderState.treeForkCount = treeForkCount));
7484
7487
}
7485
7488
function updateSuspenseListComponent(current, workInProgress, renderLanes) {
7486
7489
var nextProps = workInProgress.pendingProps,
@@ -7495,6 +7498,7 @@ function updateSuspenseListComponent(current, workInProgress, renderLanes) {
7495
7498
: (suspenseContext &= 1);
7496
7499
push(suspenseStackCursor, suspenseContext);
7497
7500
reconcileChildren(current, workInProgress, nextProps, renderLanes);
7501
+ nextProps = isHydrating ? treeForkCount : 0;
7498
7502
if (!shouldForceFallback && null !== current && 0 !== (current.flags & 128))
7499
7503
a: for (current = workInProgress.child; null !== current; ) {
7500
7504
if (13 === current.tag)
@@ -7534,7 +7538,8 @@ function updateSuspenseListComponent(current, workInProgress, renderLanes) {
7534
7538
!1,
7535
7539
revealOrder,
7536
7540
renderLanes,
7537
- tailMode
7541
+ tailMode,
7542
+ nextProps
7538
7543
);
7539
7544
break;
7540
7545
case "backwards":
@@ -7557,11 +7562,19 @@ function updateSuspenseListComponent(current, workInProgress, renderLanes) {
7557
7562
!0,
7558
7563
renderLanes,
7559
7564
null,
7560
- tailMode
7565
+ tailMode,
7566
+ nextProps
7561
7567
);
7562
7568
break;
7563
7569
case "together":
7564
- initSuspenseListRenderState(workInProgress, !1, null, null, void 0);
7570
+ initSuspenseListRenderState(
7571
+ workInProgress,
7572
+ !1,
7573
+ null,
7574
+ null,
7575
+ void 0,
7576
+ nextProps
7577
+ );
7565
7578
break;
7566
7579
default:
7567
7580
workInProgress.memoizedState = null;
@@ -8799,12 +8812,12 @@ function completeWork(current, workInProgress, renderLanes) {
8799
8812
);
8800
8813
case 19:
8801
8814
pop(suspenseStackCursor);
8802
- type = workInProgress.memoizedState;
8803
- if (null === type ) return bubbleProperties(workInProgress), null;
8804
- newProps = 0 !== (workInProgress.flags & 128);
8805
- nextResource = type .rendering;
8815
+ newProps = workInProgress.memoizedState;
8816
+ if (null === newProps ) return bubbleProperties(workInProgress), null;
8817
+ type = 0 !== (workInProgress.flags & 128);
8818
+ nextResource = newProps .rendering;
8806
8819
if (null === nextResource)
8807
- if (newProps ) cutOffTailIfNeeded(type , !1);
8820
+ if (type ) cutOffTailIfNeeded(newProps , !1);
8808
8821
else {
8809
8822
if (
8810
8823
0 !== workInProgressRootExitStatus ||
@@ -8814,7 +8827,7 @@ function completeWork(current, workInProgress, renderLanes) {
8814
8827
nextResource = findFirstSuspended(current);
8815
8828
if (null !== nextResource) {
8816
8829
workInProgress.flags |= 128;
8817
- cutOffTailIfNeeded(type , !1);
8830
+ cutOffTailIfNeeded(newProps , !1);
8818
8831
current = nextResource.updateQueue;
8819
8832
workInProgress.updateQueue = current;
8820
8833
scheduleRetryEffect(workInProgress, current);
@@ -8827,62 +8840,68 @@ function completeWork(current, workInProgress, renderLanes) {
8827
8840
suspenseStackCursor,
8828
8841
(suspenseStackCursor.current & 1) | 2
8829
8842
);
8843
+ isHydrating &&
8844
+ pushTreeFork(workInProgress, newProps.treeForkCount);
8830
8845
return workInProgress.child;
8831
8846
}
8832
8847
current = current.sibling;
8833
8848
}
8834
- null !== type .tail &&
8849
+ null !== newProps .tail &&
8835
8850
now() > workInProgressRootRenderTargetTime &&
8836
8851
((workInProgress.flags |= 128),
8837
- (newProps = !0),
8838
- cutOffTailIfNeeded(type , !1),
8852
+ (type = !0),
8853
+ cutOffTailIfNeeded(newProps , !1),
8839
8854
(workInProgress.lanes = 4194304));
8840
8855
}
8841
8856
else {
8842
- if (!newProps )
8857
+ if (!type )
8843
8858
if (
8844
8859
((current = findFirstSuspended(nextResource)), null !== current)
8845
8860
) {
8846
8861
if (
8847
8862
((workInProgress.flags |= 128),
8848
- (newProps = !0),
8863
+ (type = !0),
8849
8864
(current = current.updateQueue),
8850
8865
(workInProgress.updateQueue = current),
8851
8866
scheduleRetryEffect(workInProgress, current),
8852
- cutOffTailIfNeeded(type , !0),
8853
- null === type .tail &&
8854
- "hidden" === type .tailMode &&
8867
+ cutOffTailIfNeeded(newProps , !0),
8868
+ null === newProps .tail &&
8869
+ "hidden" === newProps .tailMode &&
8855
8870
!nextResource.alternate &&
8856
8871
!isHydrating)
8857
8872
)
8858
8873
return bubbleProperties(workInProgress), null;
8859
8874
} else
8860
- 2 * now() - type .renderingStartTime >
8875
+ 2 * now() - newProps .renderingStartTime >
8861
8876
workInProgressRootRenderTargetTime &&
8862
8877
536870912 !== renderLanes &&
8863
8878
((workInProgress.flags |= 128),
8864
- (newProps = !0),
8865
- cutOffTailIfNeeded(type , !1),
8879
+ (type = !0),
8880
+ cutOffTailIfNeeded(newProps , !1),
8866
8881
(workInProgress.lanes = 4194304));
8867
- type .isBackwards
8882
+ newProps .isBackwards
8868
8883
? ((nextResource.sibling = workInProgress.child),
8869
8884
(workInProgress.child = nextResource))
8870
- : ((current = type .last),
8885
+ : ((current = newProps .last),
8871
8886
null !== current
8872
8887
? (current.sibling = nextResource)
8873
8888
: (workInProgress.child = nextResource),
8874
- (type .last = nextResource));
8889
+ (newProps .last = nextResource));
8875
8890
}
8876
- if (null !== type .tail)
8891
+ if (null !== newProps .tail)
8877
8892
return (
8878
- (workInProgress = type.tail),
8879
- (type.rendering = workInProgress),
8880
- (type.tail = workInProgress.sibling),
8881
- (type.renderingStartTime = now()),
8882
- (workInProgress.sibling = null),
8883
- (current = suspenseStackCursor.current),
8884
- push(suspenseStackCursor, newProps ? (current & 1) | 2 : current & 1),
8885
- workInProgress
8893
+ (current = newProps.tail),
8894
+ (newProps.rendering = current),
8895
+ (newProps.tail = current.sibling),
8896
+ (newProps.renderingStartTime = now()),
8897
+ (current.sibling = null),
8898
+ (renderLanes = suspenseStackCursor.current),
8899
+ push(
8900
+ suspenseStackCursor,
8901
+ type ? (renderLanes & 1) | 2 : renderLanes & 1
8902
+ ),
8903
+ isHydrating && pushTreeFork(workInProgress, newProps.treeForkCount),
8904
+ current
8886
8905
);
8887
8906
bubbleProperties(workInProgress);
8888
8907
return null;
@@ -19139,14 +19158,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
19139
19158
};
19140
19159
var isomorphicReactPackageVersion$jscomp$inline_2180 = React.version;
19141
19160
if (
19142
- "19.2.0-experimental-280ff6fe-20250606 " !==
19161
+ "19.2.0-experimental-56408a5b-20250610 " !==
19143
19162
isomorphicReactPackageVersion$jscomp$inline_2180
19144
19163
)
19145
19164
throw Error(
19146
19165
formatProdErrorMessage(
19147
19166
527,
19148
19167
isomorphicReactPackageVersion$jscomp$inline_2180,
19149
- "19.2.0-experimental-280ff6fe-20250606 "
19168
+ "19.2.0-experimental-56408a5b-20250610 "
19150
19169
)
19151
19170
);
19152
19171
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -19168,10 +19187,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
19168
19187
};
19169
19188
var internals$jscomp$inline_2865 = {
19170
19189
bundleType: 0,
19171
- version: "19.2.0-experimental-280ff6fe-20250606 ",
19190
+ version: "19.2.0-experimental-56408a5b-20250610 ",
19172
19191
rendererPackageName: "react-dom",
19173
19192
currentDispatcherRef: ReactSharedInternals,
19174
- reconcilerVersion: "19.2.0-experimental-280ff6fe-20250606 "
19193
+ reconcilerVersion: "19.2.0-experimental-56408a5b-20250610 "
19175
19194
};
19176
19195
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
19177
19196
var hook$jscomp$inline_2866 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -19278,4 +19297,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
19278
19297
listenToAllSupportedEvents(container);
19279
19298
return new ReactDOMHydrationRoot(initialChildren);
19280
19299
};
19281
- exports.version = "19.2.0-experimental-280ff6fe-20250606 ";
19300
+ exports.version = "19.2.0-experimental-56408a5b-20250610 ";
0 commit comments