@@ -1527,13 +1527,13 @@ const startClientRenderedSuspenseBoundary = stringToPrecomputedChunk(
15271527const endSuspenseBoundary = stringToPrecomputedChunk ( '<!--/$-->' ) ;
15281528
15291529const clientRenderedSuspenseBoundaryError1 = stringToPrecomputedChunk (
1530- '<template data-hash ="' ,
1530+ '<template data-dgst ="' ,
15311531) ;
15321532const clientRenderedSuspenseBoundaryError1A = stringToPrecomputedChunk (
15331533 '" data-msg="' ,
15341534) ;
15351535const clientRenderedSuspenseBoundaryError1B = stringToPrecomputedChunk (
1536- '" data-stack ="' ,
1536+ '" data-stck ="' ,
15371537) ;
15381538const clientRenderedSuspenseBoundaryError2 = stringToPrecomputedChunk (
15391539 '"></template>' ,
@@ -1576,7 +1576,7 @@ export function writeStartPendingSuspenseBoundary(
15761576export function writeStartClientRenderedSuspenseBoundary (
15771577 destination : Destination ,
15781578 responseState : ResponseState ,
1579- errorHash : ?string ,
1579+ errorDigest : ?string ,
15801580 errorMesssage : ?string ,
15811581 errorComponentStack : ?string ,
15821582) : boolean {
@@ -1585,33 +1585,31 @@ export function writeStartClientRenderedSuspenseBoundary(
15851585 destination ,
15861586 startClientRenderedSuspenseBoundary ,
15871587 ) ;
1588- if ( errorHash ) {
1589- writeChunk ( destination , clientRenderedSuspenseBoundaryError1 ) ;
1590- writeChunk ( destination , stringToChunk ( escapeTextForBrowser ( errorHash ) ) ) ;
1591- // In prod errorMessage will usually be nullish but there is one case where
1592- // it is used (currently when the server aborts the task) so we leave it ungated.
1588+ writeChunk ( destination , clientRenderedSuspenseBoundaryError1 ) ;
1589+ writeChunk (
1590+ destination ,
1591+ stringToChunk ( escapeTextForBrowser ( errorDigest || '' ) ) ,
1592+ ) ;
1593+ if ( __DEV__ ) {
15931594 if ( errorMesssage ) {
15941595 writeChunk ( destination , clientRenderedSuspenseBoundaryError1A ) ;
15951596 writeChunk (
15961597 destination ,
15971598 stringToChunk ( escapeTextForBrowser ( errorMesssage ) ) ,
15981599 ) ;
15991600 }
1600- if ( __DEV__ ) {
1601- // Component stacks are currently only captured in dev
1602- if ( errorComponentStack ) {
1603- writeChunk ( destination , clientRenderedSuspenseBoundaryError1B ) ;
1604- writeChunk (
1605- destination ,
1606- stringToChunk ( escapeTextForBrowser ( errorComponentStack ) ) ,
1607- ) ;
1608- }
1601+ if ( errorComponentStack ) {
1602+ writeChunk ( destination , clientRenderedSuspenseBoundaryError1B ) ;
1603+ writeChunk (
1604+ destination ,
1605+ stringToChunk ( escapeTextForBrowser ( errorComponentStack ) ) ,
1606+ ) ;
16091607 }
1610- result = writeChunkAndReturn (
1611- destination ,
1612- clientRenderedSuspenseBoundaryError2 ,
1613- ) ;
16141608 }
1609+ result = writeChunkAndReturn (
1610+ destination ,
1611+ clientRenderedSuspenseBoundaryError2 ,
1612+ ) ;
16151613 return result ;
16161614}
16171615export function writeEndCompletedSuspenseBoundary (
@@ -1772,7 +1770,7 @@ export function writeEndSegment(
17721770// const SUSPENSE_PENDING_START_DATA = '$?';
17731771// const SUSPENSE_FALLBACK_START_DATA = '$!';
17741772//
1775- // function clientRenderBoundary(suspenseBoundaryID, errorHash , errorMsg, errorComponentStack) {
1773+ // function clientRenderBoundary(suspenseBoundaryID, errorDigest , errorMsg, errorComponentStack) {
17761774// // Find the fallback's first element.
17771775// const suspenseIdNode = document.getElementById(suspenseBoundaryID);
17781776// if (!suspenseIdNode) {
@@ -1786,9 +1784,9 @@ export function writeEndSegment(
17861784// suspenseNode.data = SUSPENSE_FALLBACK_START_DATA;
17871785// // assign error metadata to first sibling
17881786// let dataset = suspenseIdNode.dataset;
1789- // if (errorHash ) dataset.hash = errorHash ;
1787+ // if (errorDigest ) dataset.dgst = errorDigest ;
17901788// if (errorMsg) dataset.msg = errorMsg;
1791- // if (errorComponentStack) dataset.stack = errorComponentStack;
1789+ // if (errorComponentStack) dataset.stck = errorComponentStack;
17921790// // Tell React to retry it if the parent already hydrated.
17931791// if (suspenseNode._reactRetry) {
17941792// suspenseNode._reactRetry();
@@ -1876,7 +1874,7 @@ const completeSegmentFunction =
18761874const completeBoundaryFunction =
18771875 '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()}}' ;
18781876const clientRenderFunction =
1879- 'function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.hash =c),d&&(a.msg=d),e&&(a.stack =e),b._reactRetry&&b._reactRetry())}' ;
1877+ 'function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst =c),d&&(a.msg=d),e&&(a.stck =e),b._reactRetry&&b._reactRetry())}' ;
18801878
18811879const completeSegmentScript1Full = stringToPrecomputedChunk (
18821880 completeSegmentFunction + ';$RS("' ,
@@ -1957,7 +1955,7 @@ export function writeClientRenderBoundaryInstruction(
19571955 destination : Destination ,
19581956 responseState : ResponseState ,
19591957 boundaryID : SuspenseBoundaryID ,
1960- errorHash : ?string ,
1958+ errorDigest : ?string ,
19611959 errorMessage ?: string ,
19621960 errorComponentStack ?: string ,
19631961) : boolean {
@@ -1979,11 +1977,11 @@ export function writeClientRenderBoundaryInstruction(
19791977
19801978 writeChunk ( destination , boundaryID ) ;
19811979 writeChunk ( destination , clientRenderScript1A ) ;
1982- if ( errorHash || errorMessage || errorComponentStack ) {
1980+ if ( errorDigest || errorMessage || errorComponentStack ) {
19831981 writeChunk ( destination , clientRenderErrorScriptArgInterstitial ) ;
19841982 writeChunk (
19851983 destination ,
1986- stringToChunk ( escapeJSStringsForInstructionScripts ( errorHash || '' ) ) ,
1984+ stringToChunk ( escapeJSStringsForInstructionScripts ( errorDigest || '' ) ) ,
19871985 ) ;
19881986 }
19891987 if ( errorMessage || errorComponentStack ) {
0 commit comments