@@ -1543,19 +1543,14 @@ export function writeEndSegment(
1543
1543
//
1544
1544
// function clientRenderBoundary(suspenseBoundaryID) {
1545
1545
// // Find the fallback's first element.
1546
- // let suspenseNode = document.getElementById(suspenseBoundaryID);
1547
- // if (!suspenseNode ) {
1546
+ // const suspenseIdNode = document.getElementById(suspenseBoundaryID);
1547
+ // if (!suspenseIdNode ) {
1548
1548
// // The user must have already navigated away from this tree.
1549
1549
// // E.g. because the parent was hydrated.
1550
1550
// return;
1551
1551
// }
1552
- // // Find the boundary around the fallback. This might include text nodes.
1553
- // do {
1554
- // suspenseNode = suspenseNode.previousSibling;
1555
- // } while (
1556
- // suspenseNode.nodeType !== COMMENT_NODE ||
1557
- // suspenseNode.data !== SUSPENSE_PENDING_START_DATA
1558
- // );
1552
+ // // Find the boundary around the fallback. This is always the previous node.
1553
+ // const suspenseNode = suspenseIdNode.previousSibling;
1559
1554
// // Tag it to be client rendered.
1560
1555
// suspenseNode.data = SUSPENSE_FALLBACK_START_DATA;
1561
1556
// // Tell React to retry it if the parent already hydrated.
@@ -1566,24 +1561,19 @@ export function writeEndSegment(
1566
1561
//
1567
1562
// function completeBoundary(suspenseBoundaryID, contentID) {
1568
1563
// // Find the fallback's first element.
1569
- // let suspenseNode = document.getElementById(suspenseBoundaryID);
1564
+ // const suspenseIdNode = document.getElementById(suspenseBoundaryID);
1570
1565
// const contentNode = document.getElementById(contentID);
1571
1566
// // We'll detach the content node so that regardless of what happens next we don't leave in the tree.
1572
1567
// // This might also help by not causing recalcing each time we move a child from here to the target.
1573
1568
// contentNode.parentNode.removeChild(contentNode);
1574
- // if (!suspenseNode ) {
1569
+ // if (!suspenseIdNode ) {
1575
1570
// // The user must have already navigated away from this tree.
1576
1571
// // E.g. because the parent was hydrated. That's fine there's nothing to do
1577
1572
// // but we have to make sure that we already deleted the container node.
1578
1573
// return;
1579
1574
// }
1580
- // // Find the boundary around the fallback. This might include text nodes.
1581
- // do {
1582
- // suspenseNode = suspenseNode.previousSibling;
1583
- // } while (
1584
- // suspenseNode.nodeType !== COMMENT_NODE ||
1585
- // suspenseNode.data !== SUSPENSE_PENDING_START_DATA
1586
- // );
1575
+ // // Find the boundary around the fallback. This is always the previous node.
1576
+ // const suspenseNode = suspenseIdNode.previousSibling;
1587
1577
//
1588
1578
// // Clear all the existing children. This is complicated because
1589
1579
// // there can be embedded Suspense boundaries in the fallback.
@@ -1646,11 +1636,11 @@ export function writeEndSegment(
1646
1636
// }
1647
1637
1648
1638
const completeSegmentFunction =
1649
- 'function $RS(b,f){var a=document.getElementById(b),c =document.getElementById(f );for(a.parentNode.removeChild(a);a.firstChild;)c .parentNode.insertBefore(a.firstChild,c);c .parentNode.removeChild(c )}' ;
1639
+ 'function $RS(a,b){ a=document.getElementById(a);b =document.getElementById(b );for(a.parentNode.removeChild(a);a.firstChild;)b .parentNode.insertBefore(a.firstChild,b);b .parentNode.removeChild(b )}' ;
1650
1640
const completeBoundaryFunction =
1651
- 'function $RC(b,f){var a=document.getElementById(b),c =document.getElementById(f);c .parentNode.removeChild(c );if(a){do a=a.previousSibling;while(8!==a.nodeType||"$?"!==a.data); var h =a.parentNode,d =a.nextSibling,g =0;do{if(d &&8===d .nodeType){var e=d .data;if("/$"===e )if(0===g )break;else g --;else"$"!==e &&"$?"!==e &&"$!"!==e||g ++}e=d .nextSibling;h .removeChild(d);d=e }while(d );for(;c .firstChild;)h .insertBefore(c .firstChild,d );a.data="$";a._reactRetry&&a._reactRetry()}}' ;
1641
+ 'function $RC(a,b){ a=document.getElementById(a);b =document.getElementById(b);b .parentNode.removeChild(b );if(a){a=a.previousSibling;var f =a.parentNode,c =a.nextSibling,e =0;do{if(c &&8===c .nodeType){var d=c .data;if("/$"===d )if(0===e )break;else e --;else"$"!==d &&"$?"!==d &&"$!"!==d||e ++}d=c .nextSibling;f .removeChild(c);c=d }while(c );for(;b .firstChild;)f .insertBefore(b .firstChild,c );a.data="$";a._reactRetry&&a._reactRetry()}}' ;
1652
1642
const clientRenderFunction =
1653
- 'function $RX(b ){if(b =document.getElementById(b)){do b=b .previousSibling;while(8!==b.nodeType||"$?"!==b. data);b.data ="$!";b ._reactRetry&&b ._reactRetry()} }' ;
1643
+ 'function $RX(a ){if(a =document.getElementById(a))a=a .previousSibling,a. data="$!",a ._reactRetry&&a ._reactRetry()}' ;
1654
1644
1655
1645
const completeSegmentScript1Full = stringToPrecomputedChunk (
1656
1646
'<script>' + completeSegmentFunction + ';$RS("' ,
0 commit comments