@@ -7463,7 +7463,8 @@ function initSuspenseListRenderState(
74637463 isBackwards,
74647464 tail,
74657465 lastContentRow,
7466- tailMode
7466+ tailMode,
7467+ treeForkCount
74677468) {
74687469 var renderState = workInProgress.memoizedState;
74697470 null === renderState
@@ -7473,14 +7474,16 @@ function initSuspenseListRenderState(
74737474 renderingStartTime: 0,
74747475 last: lastContentRow,
74757476 tail: tail,
7476- tailMode: tailMode
7477+ tailMode: tailMode,
7478+ treeForkCount: treeForkCount
74777479 })
74787480 : ((renderState.isBackwards = isBackwards),
74797481 (renderState.rendering = null),
74807482 (renderState.renderingStartTime = 0),
74817483 (renderState.last = lastContentRow),
74827484 (renderState.tail = tail),
7483- (renderState.tailMode = tailMode));
7485+ (renderState.tailMode = tailMode),
7486+ (renderState.treeForkCount = treeForkCount));
74847487}
74857488function updateSuspenseListComponent(current, workInProgress, renderLanes) {
74867489 var nextProps = workInProgress.pendingProps,
@@ -7495,6 +7498,7 @@ function updateSuspenseListComponent(current, workInProgress, renderLanes) {
74957498 : (suspenseContext &= 1);
74967499 push(suspenseStackCursor, suspenseContext);
74977500 reconcileChildren(current, workInProgress, nextProps, renderLanes);
7501+ nextProps = isHydrating ? treeForkCount : 0;
74987502 if (!shouldForceFallback && null !== current && 0 !== (current.flags & 128))
74997503 a: for (current = workInProgress.child; null !== current; ) {
75007504 if (13 === current.tag)
@@ -7534,7 +7538,8 @@ function updateSuspenseListComponent(current, workInProgress, renderLanes) {
75347538 !1,
75357539 revealOrder,
75367540 renderLanes,
7537- tailMode
7541+ tailMode,
7542+ nextProps
75387543 );
75397544 break;
75407545 case "backwards":
@@ -7557,11 +7562,19 @@ function updateSuspenseListComponent(current, workInProgress, renderLanes) {
75577562 !0,
75587563 renderLanes,
75597564 null,
7560- tailMode
7565+ tailMode,
7566+ nextProps
75617567 );
75627568 break;
75637569 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+ );
75657578 break;
75667579 default:
75677580 workInProgress.memoizedState = null;
@@ -8799,12 +8812,12 @@ function completeWork(current, workInProgress, renderLanes) {
87998812 );
88008813 case 19:
88018814 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;
88068819 if (null === nextResource)
8807- if (newProps ) cutOffTailIfNeeded(type , !1);
8820+ if (type ) cutOffTailIfNeeded(newProps , !1);
88088821 else {
88098822 if (
88108823 0 !== workInProgressRootExitStatus ||
@@ -8814,7 +8827,7 @@ function completeWork(current, workInProgress, renderLanes) {
88148827 nextResource = findFirstSuspended(current);
88158828 if (null !== nextResource) {
88168829 workInProgress.flags |= 128;
8817- cutOffTailIfNeeded(type , !1);
8830+ cutOffTailIfNeeded(newProps , !1);
88188831 current = nextResource.updateQueue;
88198832 workInProgress.updateQueue = current;
88208833 scheduleRetryEffect(workInProgress, current);
@@ -8827,62 +8840,68 @@ function completeWork(current, workInProgress, renderLanes) {
88278840 suspenseStackCursor,
88288841 (suspenseStackCursor.current & 1) | 2
88298842 );
8843+ isHydrating &&
8844+ pushTreeFork(workInProgress, newProps.treeForkCount);
88308845 return workInProgress.child;
88318846 }
88328847 current = current.sibling;
88338848 }
8834- null !== type .tail &&
8849+ null !== newProps .tail &&
88358850 now() > workInProgressRootRenderTargetTime &&
88368851 ((workInProgress.flags |= 128),
8837- (newProps = !0),
8838- cutOffTailIfNeeded(type , !1),
8852+ (type = !0),
8853+ cutOffTailIfNeeded(newProps , !1),
88398854 (workInProgress.lanes = 4194304));
88408855 }
88418856 else {
8842- if (!newProps )
8857+ if (!type )
88438858 if (
88448859 ((current = findFirstSuspended(nextResource)), null !== current)
88458860 ) {
88468861 if (
88478862 ((workInProgress.flags |= 128),
8848- (newProps = !0),
8863+ (type = !0),
88498864 (current = current.updateQueue),
88508865 (workInProgress.updateQueue = current),
88518866 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 &&
88558870 !nextResource.alternate &&
88568871 !isHydrating)
88578872 )
88588873 return bubbleProperties(workInProgress), null;
88598874 } else
8860- 2 * now() - type .renderingStartTime >
8875+ 2 * now() - newProps .renderingStartTime >
88618876 workInProgressRootRenderTargetTime &&
88628877 536870912 !== renderLanes &&
88638878 ((workInProgress.flags |= 128),
8864- (newProps = !0),
8865- cutOffTailIfNeeded(type , !1),
8879+ (type = !0),
8880+ cutOffTailIfNeeded(newProps , !1),
88668881 (workInProgress.lanes = 4194304));
8867- type .isBackwards
8882+ newProps .isBackwards
88688883 ? ((nextResource.sibling = workInProgress.child),
88698884 (workInProgress.child = nextResource))
8870- : ((current = type .last),
8885+ : ((current = newProps .last),
88718886 null !== current
88728887 ? (current.sibling = nextResource)
88738888 : (workInProgress.child = nextResource),
8874- (type .last = nextResource));
8889+ (newProps .last = nextResource));
88758890 }
8876- if (null !== type .tail)
8891+ if (null !== newProps .tail)
88778892 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
88868905 );
88878906 bubbleProperties(workInProgress);
88888907 return null;
@@ -19139,14 +19158,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1913919158};
1914019159var isomorphicReactPackageVersion$jscomp$inline_2180 = React.version;
1914119160if (
19142- "19.2.0-experimental-280ff6fe-20250606 " !==
19161+ "19.2.0-experimental-56408a5b-20250610 " !==
1914319162 isomorphicReactPackageVersion$jscomp$inline_2180
1914419163)
1914519164 throw Error(
1914619165 formatProdErrorMessage(
1914719166 527,
1914819167 isomorphicReactPackageVersion$jscomp$inline_2180,
19149- "19.2.0-experimental-280ff6fe-20250606 "
19168+ "19.2.0-experimental-56408a5b-20250610 "
1915019169 )
1915119170 );
1915219171ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -19168,10 +19187,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1916819187};
1916919188var internals$jscomp$inline_2865 = {
1917019189 bundleType: 0,
19171- version: "19.2.0-experimental-280ff6fe-20250606 ",
19190+ version: "19.2.0-experimental-56408a5b-20250610 ",
1917219191 rendererPackageName: "react-dom",
1917319192 currentDispatcherRef: ReactSharedInternals,
19174- reconcilerVersion: "19.2.0-experimental-280ff6fe-20250606 "
19193+ reconcilerVersion: "19.2.0-experimental-56408a5b-20250610 "
1917519194};
1917619195if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1917719196 var hook$jscomp$inline_2866 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -19278,4 +19297,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
1927819297 listenToAllSupportedEvents(container);
1927919298 return new ReactDOMHydrationRoot(initialChildren);
1928019299};
19281- exports.version = "19.2.0-experimental-280ff6fe-20250606 ";
19300+ exports.version = "19.2.0-experimental-56408a5b-20250610 ";
0 commit comments