@samitouri / QOS-React-2 / commits / 56e846921d

[Flight] Exclude RSC Stream if the stream resolves in a task (#34838)

Sebastian Markbåge committed Oct 14, 2025 at 08:28 UTC 56e846921d600878ae0ab7bb400fdeba97d81827
5 files changed +236 -267
packages/react-client/src/ReactFlightClient.js
+52 -26
@@ -367,6 +367,7 @@ type Response = {
367 _debugRootStack?: null | Error, // DEV-only
368 _debugRootTask?: null | ConsoleTask, // DEV-only
369 _debugStartTime: number, // DEV-only
370 + _debugIOStarted: boolean, // DEV-only
371 _debugFindSourceMapURL?: void | FindSourceMapURLCallback, // DEV-only
372 _debugChannel?: void | DebugChannel, // DEV-only
373 _blockedConsole?: null | SomeChunk<ConsoleEntry>, // DEV-only
@@ -500,7 +501,7 @@ function createErrorChunk<T>(
501 }
502
503 function moveDebugInfoFromChunkToInnerValue<T>(
503 - chunk: InitializedChunk<T>,
504 + chunk: InitializedChunk<T> | InitializedStreamChunk<any>,
505 value: T,
506 ): void {
507 // Remove the debug info from the initialized chunk, and add it to the inner
@@ -1569,6 +1570,10 @@ function fulfillReference(
1570 initializedChunk.reason = handler.reason; // Used by streaming chunks
1571 if (resolveListeners !== null) {
1572 wakeChunk(resolveListeners, handler.value, initializedChunk);
1573 + } else {
1574 + if (__DEV__) {
1575 + moveDebugInfoFromChunkToInnerValue(initializedChunk, handler.value);
1576 + }
1577 }
1578 }
1579 }
@@ -1818,6 +1823,10 @@ function loadServerReference<A: Iterable<any>, T>(
1823 initializedChunk.value = handler.value;
1824 if (resolveListeners !== null) {
1825 wakeChunk(resolveListeners, handler.value, initializedChunk);
1826 + } else {
1827 + if (__DEV__) {
1828 + moveDebugInfoFromChunkToInnerValue(initializedChunk, handler.value);
1829 + }
1830 }
1831 }
1832 }
@@ -2536,6 +2545,10 @@ function missingCall() {
2545 );
2546 }
2547
2548 +function markIOStarted(this: Response) {
2549 + this._debugIOStarted = true;
2550 +}
2551 +
2552 function ResponseInstance(
2553 this: $FlowFixMe,
2554 bundlerConfig: ServerConsumerModuleMap,
@@ -2609,6 +2622,10 @@ function ResponseInstance(
2622 // where as if you use createFromReadableStream from the body of the fetch
2623 // then the start time is when the headers resolved.
2624 this._debugStartTime = performance.now();
2625 + this._debugIOStarted = false;
2626 + // We consider everything before the first setTimeout task to be cached data
2627 + // and is not considered I/O required to load the stream.
2628 + setTimeout(markIOStarted.bind(this), 0);
2629 }
2630 this._debugFindSourceMapURL = findSourceMapURL;
2631 this._debugChannel = debugChannel;
@@ -2762,7 +2779,7 @@ function incrementChunkDebugInfo(
2779 }
2780 }
2781
2765 -function addDebugInfo(chunk: SomeChunk<any>, debugInfo: ReactDebugInfo): void {
2782 +function addAsyncInfo(chunk: SomeChunk<any>, asyncInfo: ReactAsyncInfo): void {
2783 const value = resolveLazy(chunk.value);
2784 if (
2785 typeof value === 'object' &&
@@ -2774,34 +2791,39 @@ function addDebugInfo(chunk: SomeChunk<any>, debugInfo: ReactDebugInfo): void {
2791 ) {
2792 if (isArray(value._debugInfo)) {
2793 // $FlowFixMe[method-unbinding]
2777 - value._debugInfo.push.apply(value._debugInfo, debugInfo);
2794 + value._debugInfo.push(asyncInfo);
2795 } else {
2796 Object.defineProperty((value: any), '_debugInfo', {
2797 configurable: false,
2798 enumerable: false,
2799 writable: true,
2783 - value: debugInfo,
2800 + value: [asyncInfo],
2801 });
2802 }
2803 } else {
2804 // $FlowFixMe[method-unbinding]
2788 - chunk._debugInfo.push.apply(chunk._debugInfo, debugInfo);
2805 + chunk._debugInfo.push(asyncInfo);
2806 }
2807 }
2808
2809 function resolveChunkDebugInfo(
2810 + response: Response,
2811 streamState: StreamState,
2812 chunk: SomeChunk<any>,
2813 ): void {
2814 if (__DEV__ && enableAsyncDebugInfo) {
2797 - // Add the currently resolving chunk's debug info representing the stream
2798 - // to the Promise that was waiting on the stream, or its underlying value.
2799 - const debugInfo: ReactDebugInfo = [{awaited: streamState._debugInfo}];
2800 - if (chunk.status === PENDING || chunk.status === BLOCKED) {
2801 - const boundAddDebugInfo = addDebugInfo.bind(null, chunk, debugInfo);
2802 - chunk.then(boundAddDebugInfo, boundAddDebugInfo);
2803 - } else {
2804 - addDebugInfo(chunk, debugInfo);
2815 + // Only include stream information after a macrotask. Any chunk processed
2816 + // before that is considered cached data.
2817 + if (response._debugIOStarted) {
2818 + // Add the currently resolving chunk's debug info representing the stream
2819 + // to the Promise that was waiting on the stream, or its underlying value.
2820 + const asyncInfo: ReactAsyncInfo = {awaited: streamState._debugInfo};
2821 + if (chunk.status === PENDING || chunk.status === BLOCKED) {
2822 + const boundAddAsyncInfo = addAsyncInfo.bind(null, chunk, asyncInfo);
2823 + chunk.then(boundAddAsyncInfo, boundAddAsyncInfo);
2824 + } else {
2825 + addAsyncInfo(chunk, asyncInfo);
2826 + }
2827 }
2828 }
2829 }
@@ -2837,12 +2859,12 @@ function resolveModel(
2859 model,
2860 );
2861 if (__DEV__) {
2840 - resolveChunkDebugInfo(streamState, newChunk);
2862 + resolveChunkDebugInfo(response, streamState, newChunk);
2863 }
2864 chunks.set(id, newChunk);
2865 } else {
2866 if (__DEV__) {
2845 - resolveChunkDebugInfo(streamState, chunk);
2867 + resolveChunkDebugInfo(response, streamState, chunk);
2868 }
2869 resolveModelChunk(response, chunk, model);
2870 }
@@ -2869,7 +2891,7 @@ function resolveText(
2891 }
2892 const newChunk = createInitializedTextChunk(response, text);
2893 if (__DEV__) {
2872 - resolveChunkDebugInfo(streamState, newChunk);
2894 + resolveChunkDebugInfo(response, streamState, newChunk);
2895 }
2896 chunks.set(id, newChunk);
2897 }
@@ -2895,7 +2917,7 @@ function resolveBuffer(
2917 }
2918 const newChunk = createInitializedBufferChunk(response, buffer);
2919 if (__DEV__) {
2898 - resolveChunkDebugInfo(streamState, newChunk);
2920 + resolveChunkDebugInfo(response, streamState, newChunk);
2921 }
2922 chunks.set(id, newChunk);
2923 }
@@ -2942,7 +2964,7 @@ function resolveModule(
2964 blockedChunk.status = BLOCKED;
2965 }
2966 if (__DEV__) {
2945 - resolveChunkDebugInfo(streamState, blockedChunk);
2967 + resolveChunkDebugInfo(response, streamState, blockedChunk);
2968 }
2969 promise.then(
2970 () => resolveModuleChunk(response, blockedChunk, clientReference),
@@ -2952,12 +2974,12 @@ function resolveModule(
2974 if (!chunk) {
2975 const newChunk = createResolvedModuleChunk(response, clientReference);
2976 if (__DEV__) {
2955 - resolveChunkDebugInfo(streamState, newChunk);
2977 + resolveChunkDebugInfo(response, streamState, newChunk);
2978 }
2979 chunks.set(id, newChunk);
2980 } else {
2981 if (__DEV__) {
2960 - resolveChunkDebugInfo(streamState, chunk);
2982 + resolveChunkDebugInfo(response, streamState, chunk);
2983 }
2984 // This can't actually happen because we don't have any forward
2985 // references to modules.
@@ -2978,13 +3000,13 @@ function resolveStream<T: ReadableStream | $AsyncIterable<any, any, void>>(
3000 if (!chunk) {
3001 const newChunk = createInitializedStreamChunk(response, stream, controller);
3002 if (__DEV__) {
2981 - resolveChunkDebugInfo(streamState, newChunk);
3003 + resolveChunkDebugInfo(response, streamState, newChunk);
3004 }
3005 chunks.set(id, newChunk);
3006 return;
3007 }
3008 if (__DEV__) {
2987 - resolveChunkDebugInfo(streamState, chunk);
3009 + resolveChunkDebugInfo(response, streamState, chunk);
3010 }
3011 if (chunk.status !== PENDING) {
3012 // We already resolved. We didn't expect to see this.
@@ -3034,6 +3056,10 @@ function resolveStream<T: ReadableStream | $AsyncIterable<any, any, void>>(
3056 resolvedChunk.reason = controller;
3057 if (resolveListeners !== null) {
3058 wakeChunk(resolveListeners, chunk.value, (chunk: any));
3059 + } else {
3060 + if (__DEV__) {
3061 + moveDebugInfoFromChunkToInnerValue(resolvedChunk, stream);
3062 + }
3063 }
3064 }
3065
@@ -3433,12 +3459,12 @@ function resolvePostponeDev(
3459 postponeInstance,
3460 );
3461 if (__DEV__) {
3436 - resolveChunkDebugInfo(streamState, newChunk);
3462 + resolveChunkDebugInfo(response, streamState, newChunk);
3463 }
3464 chunks.set(id, newChunk);
3465 } else {
3466 if (__DEV__) {
3441 - resolveChunkDebugInfo(streamState, chunk);
3467 + resolveChunkDebugInfo(response, streamState, chunk);
3468 }
3469 triggerErrorOnChunk(response, chunk, postponeInstance);
3470 }
@@ -3467,12 +3493,12 @@ function resolveErrorModel(
3493 errorWithDigest,
3494 );
3495 if (__DEV__) {
3470 - resolveChunkDebugInfo(streamState, newChunk);
3496 + resolveChunkDebugInfo(response, streamState, newChunk);
3497 }
3498 chunks.set(id, newChunk);
3499 } else {
3500 if (__DEV__) {
3475 - resolveChunkDebugInfo(streamState, chunk);
3501 + resolveChunkDebugInfo(response, streamState, chunk);
3502 }
3503 triggerErrorOnChunk(response, chunk, errorWithDigest);
3504 }
packages/react-server-dom-webpack/src/__tests__/ReactFlightDOMBrowser-test.js
-12
@@ -3035,18 +3035,6 @@ describe('ReactFlightDOMBrowser', () => {
3035 {
3036 "time": 0,
3037 },
3038 - {
3039 - "awaited": {
3040 - "byteSize": 0,
3041 - "end": 0,
3042 - "name": "RSC stream",
3043 - "owner": null,
3044 - "start": 0,
3045 - "value": {
3046 - "value": "stream",
3047 - },
3048 - },
3049 - },
3038 ]
3039 `);
3040 }
packages/react-server-dom-webpack/src/__tests__/ReactFlightDOMEdge-test.js
-5
@@ -1248,11 +1248,6 @@ describe('ReactFlightDOMEdge', () => {
1248 owner: greetInfo,
1249 }),
1250 {time: 14},
1251 - expect.objectContaining({
1252 - awaited: expect.objectContaining({
1253 - name: 'RSC stream',
1254 - }),
1255 - }),
1251 ]);
1252 }
1253 // The owner that created the span was the outer server component.
packages/react-server/src/ReactFlightServer.js
+8 -12
@@ -2325,9 +2325,15 @@ function visitAsyncNode(
2325 return null;
2326 }
2327 visited.add(node);
2328 + if (node.end >= 0 && node.end <= request.timeOrigin) {
2329 + // This was already resolved when we started this render. It must have been either something
2330 + // that's part of a start up sequence or externally cached data. We exclude that information.
2331 + // The technique for debugging the effects of uncached data on the render is to simply uncache it.
2332 + return null;
2333 + }
2334 let previousIONode = null;
2335 // First visit anything that blocked this sequence to start in the first place.
2330 - if (node.previous !== null && node.end > request.timeOrigin) {
2336 + if (node.previous !== null) {
2337 previousIONode = visitAsyncNode(
2338 request,
2339 task,
@@ -2349,12 +2355,6 @@ function visitAsyncNode(
2355 return previousIONode;
2356 }
2357 case PROMISE_NODE: {
2352 - if (node.end <= request.timeOrigin) {
2353 - // This was already resolved when we started this render. It must have been either something
2354 - // that's part of a start up sequence or externally cached data. We exclude that information.
2355 - // The technique for debugging the effects of uncached data on the render is to simply uncache it.
2356 - return previousIONode;
2357 - }
2358 const awaited = node.awaited;
2359 let match: void | null | PromiseNode | IONode = previousIONode;
2360 const promise = node.promise.deref();
@@ -2437,11 +2437,7 @@ function visitAsyncNode(
2437 } else if (ioNode !== null) {
2438 const startTime: number = node.start;
2439 const endTime: number = node.end;
2440 - if (endTime <= request.timeOrigin) {
2441 - // This was already resolved when we started this render. It must have been either something
2442 - // that's part of a start up sequence or externally cached data. We exclude that information.
2443 - return null;
2444 - } else if (startTime < cutOff) {
2440 + if (startTime < cutOff) {
2441 // We started awaiting this node before we started rendering this sequence.
2442 // This means that this particular await was never part of the current sequence.
2443 // If we have another await higher up in the chain it might have a more actionable stack
packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js
+176 -212
@@ -1051,18 +1051,6 @@ describe('ReactFlightAsyncDebugInfo', () => {
1051 {
1052 "time": 0,
1053 },
1054 - {
1055 - "awaited": {
1056 - "byteSize": 0,
1057 - "end": 0,
1058 - "name": "RSC stream",
1059 - "owner": null,
1060 - "start": 0,
1061 - "value": {
1062 - "value": "stream",
1063 - },
1064 - },
1065 - },
1054 ]
1055 `);
1056 }
@@ -1126,9 +1114,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
1114 [
1115 "Object.<anonymous>",
1116 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
1129 - 1095,
1117 + 1083,
1118 109,
1131 - 1071,
1119 + 1059,
1120 50,
1121 ],
1122 ],
@@ -1154,18 +1142,6 @@ describe('ReactFlightAsyncDebugInfo', () => {
1142 {
1143 "time": 0,
1144 },
1157 - {
1158 - "awaited": {
1159 - "byteSize": 0,
1160 - "end": 0,
1161 - "name": "RSC stream",
1162 - "owner": null,
1163 - "start": 0,
1164 - "value": {
1165 - "value": "stream",
1166 - },
1167 - },
1168 - },
1145 ]
1146 `);
1147 }
@@ -1222,9 +1198,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
1198 [
1199 "Object.<anonymous>",
1200 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
1225 - 1191,
1201 + 1167,
1202 109,
1227 - 1174,
1203 + 1150,
1204 63,
1205 ],
1206 ],
@@ -1249,9 +1225,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
1225 [
1226 "Component",
1227 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
1252 - 1187,
1228 + 1163,
1229 24,
1254 - 1186,
1230 + 1162,
1231 5,
1232 ],
1233 ],
@@ -1281,9 +1257,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
1257 [
1258 "Component",
1259 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
1284 - 1187,
1260 + 1163,
1261 24,
1286 - 1186,
1262 + 1162,
1263 5,
1264 ],
1265 ],
@@ -1300,17 +1276,17 @@ describe('ReactFlightAsyncDebugInfo', () => {
1276 [
1277 "getData",
1278 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
1303 - 1176,
1279 + 1152,
1280 13,
1305 - 1175,
1281 + 1151,
1282 5,
1283 ],
1284 [
1285 "ThirdPartyComponent",
1286 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
1311 - 1182,
1287 + 1158,
1288 24,
1313 - 1181,
1289 + 1157,
1290 5,
1291 ],
1292 ],
@@ -1337,9 +1313,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
1313 [
1314 "Component",
1315 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
1340 - 1187,
1316 + 1163,
1317 24,
1342 - 1186,
1318 + 1162,
1319 5,
1320 ],
1321 ],
@@ -1348,17 +1324,17 @@ describe('ReactFlightAsyncDebugInfo', () => {
1324 [
1325 "getData",
1326 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
1351 - 1176,
1327 + 1152,
1328 13,
1353 - 1175,
1329 + 1151,
1330 5,
1331 ],
1332 [
1333 "ThirdPartyComponent",
1334 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
1359 - 1182,
1335 + 1158,
1336 24,
1361 - 1181,
1337 + 1157,
1338 5,
1339 ],
1340 ],
@@ -1391,9 +1367,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
1367 [
1368 "Component",
1369 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
1394 - 1187,
1370 + 1163,
1371 24,
1396 - 1186,
1372 + 1162,
1373 5,
1374 ],
1375 ],
@@ -1410,17 +1386,17 @@ describe('ReactFlightAsyncDebugInfo', () => {
1386 [
1387 "getData",
1388 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
1413 - 1177,
1389 + 1153,
1390 13,
1415 - 1175,
1391 + 1151,
1392 5,
1393 ],
1394 [
1395 "ThirdPartyComponent",
1396 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
1421 - 1182,
1397 + 1158,
1398 18,
1423 - 1181,
1399 + 1157,
1400 5,
1401 ],
1402 ],
@@ -1447,9 +1423,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
1423 [
1424 "Component",
1425 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
1450 - 1187,
1426 + 1163,
1427 24,
1452 - 1186,
1428 + 1162,
1429 5,
1430 ],
1431 ],
@@ -1458,17 +1434,17 @@ describe('ReactFlightAsyncDebugInfo', () => {
1434 [
1435 "getData",
1436 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
1461 - 1177,
1437 + 1153,
1438 13,
1463 - 1175,
1439 + 1151,
1440 5,
1441 ],
1442 [
1443 "ThirdPartyComponent",
1444 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
1469 - 1182,
1445 + 1158,
1446 18,
1471 - 1181,
1447 + 1157,
1448 5,
1449 ],
1450 ],
@@ -1568,9 +1544,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
1544 [
1545 "Object.<anonymous>",
1546 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
1571 - 1532,
1547 + 1508,
1548 40,
1573 - 1515,
1549 + 1491,
1550 62,
1551 ],
1552 [
@@ -1600,9 +1576,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
1576 [
1577 "Object.<anonymous>",
1578 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
1603 - 1532,
1579 + 1508,
1580 40,
1605 - 1515,
1581 + 1491,
1582 62,
1583 ],
1584 [
@@ -1627,17 +1603,17 @@ describe('ReactFlightAsyncDebugInfo', () => {
1603 [
1604 "getData",
1605 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
1630 - 1517,
1606 + 1493,
1607 13,
1632 - 1516,
1608 + 1492,
1609 25,
1610 ],
1611 [
1612 "Component",
1613 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
1638 - 1527,
1614 + 1503,
1615 13,
1640 - 1526,
1616 + 1502,
1617 5,
1618 ],
1619 ],
@@ -1656,9 +1632,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
1632 [
1633 "Object.<anonymous>",
1634 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
1659 - 1532,
1635 + 1508,
1636 40,
1661 - 1515,
1637 + 1491,
1638 62,
1639 ],
1640 [
@@ -1675,17 +1651,17 @@ describe('ReactFlightAsyncDebugInfo', () => {
1651 [
1652 "getData",
1653 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
1678 - 1517,
1654 + 1493,
1655 13,
1680 - 1516,
1656 + 1492,
1657 25,
1658 ],
1659 [
1660 "Component",
1661 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
1686 - 1527,
1662 + 1503,
1663 13,
1688 - 1526,
1664 + 1502,
1665 5,
1666 ],
1667 ],
@@ -1705,9 +1681,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
1681 [
1682 "Component",
1683 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
1708 - 1528,
1684 + 1504,
1685 60,
1710 - 1526,
1686 + 1502,
1687 5,
1688 ],
1689 ],
@@ -1729,9 +1705,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
1705 [
1706 "Object.<anonymous>",
1707 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
1732 - 1532,
1708 + 1508,
1709 40,
1734 - 1515,
1710 + 1491,
1711 62,
1712 ],
1713 [
@@ -1756,17 +1732,17 @@ describe('ReactFlightAsyncDebugInfo', () => {
1732 [
1733 "getData",
1734 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
1759 - 1517,
1735 + 1493,
1736 13,
1761 - 1516,
1737 + 1492,
1738 25,
1739 ],
1740 [
1741 "Component",
1742 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
1767 - 1527,
1743 + 1503,
1744 13,
1769 - 1526,
1745 + 1502,
1746 5,
1747 ],
1748 ],
@@ -1785,9 +1761,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
1761 [
1762 "Component",
1763 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
1788 - 1528,
1764 + 1504,
1765 60,
1790 - 1526,
1766 + 1502,
1767 5,
1768 ],
1769 ],
@@ -1796,9 +1772,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
1772 [
1773 "Child",
1774 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
1799 - 1522,
1775 + 1498,
1776 28,
1801 - 1521,
1777 + 1497,
1778 5,
1779 ],
1780 ],
@@ -1881,9 +1857,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
1857 [
1858 "Object.<anonymous>",
1859 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
1884 - 1845,
1860 + 1821,
1861 40,
1886 - 1829,
1862 + 1805,
1863 57,
1864 ],
1865 [
@@ -1913,9 +1889,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
1889 [
1890 "Object.<anonymous>",
1891 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
1916 - 1845,
1892 + 1821,
1893 40,
1918 - 1829,
1894 + 1805,
1895 57,
1896 ],
1897 [
@@ -1940,17 +1916,17 @@ describe('ReactFlightAsyncDebugInfo', () => {
1916 [
1917 "getData",
1918 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
1943 - 1831,
1919 + 1807,
1920 13,
1945 - 1830,
1921 + 1806,
1922 25,
1923 ],
1924 [
1925 "Component",
1926 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
1951 - 1840,
1927 + 1816,
1928 23,
1953 - 1839,
1929 + 1815,
1930 5,
1931 ],
1932 ],
@@ -1969,9 +1945,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
1945 [
1946 "Object.<anonymous>",
1947 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
1972 - 1845,
1948 + 1821,
1949 40,
1974 - 1829,
1950 + 1805,
1951 57,
1952 ],
1953 [
@@ -1988,17 +1964,17 @@ describe('ReactFlightAsyncDebugInfo', () => {
1964 [
1965 "getData",
1966 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
1991 - 1831,
1967 + 1807,
1968 13,
1993 - 1830,
1969 + 1806,
1970 25,
1971 ],
1972 [
1973 "Component",
1974 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
1999 - 1840,
1975 + 1816,
1976 23,
2001 - 1839,
1977 + 1815,
1978 5,
1979 ],
1980 ],
@@ -2018,9 +1994,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
1994 [
1995 "Component",
1996 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
2021 - 1841,
1997 + 1817,
1998 60,
2023 - 1839,
1999 + 1815,
2000 5,
2001 ],
2002 ],
@@ -2039,9 +2015,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
2015 [
2016 "Object.<anonymous>",
2017 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
2042 - 1845,
2018 + 1821,
2019 40,
2044 - 1829,
2020 + 1805,
2021 57,
2022 ],
2023 [
@@ -2066,17 +2042,17 @@ describe('ReactFlightAsyncDebugInfo', () => {
2042 [
2043 "getData",
2044 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
2069 - 1831,
2045 + 1807,
2046 13,
2071 - 1830,
2047 + 1806,
2048 25,
2049 ],
2050 [
2051 "Component",
2052 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
2077 - 1840,
2053 + 1816,
2054 23,
2079 - 1839,
2055 + 1815,
2056 5,
2057 ],
2058 ],
@@ -2090,9 +2066,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
2066 [
2067 "Component",
2068 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
2093 - 1841,
2069 + 1817,
2070 60,
2095 - 1839,
2071 + 1815,
2072 5,
2073 ],
2074 ],
@@ -2177,9 +2153,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
2153 [
2154 "Object.<anonymous>",
2155 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
2180 - 2141,
2156 + 2117,
2157 40,
2182 - 2123,
2158 + 2099,
2159 80,
2160 ],
2161 [
@@ -2209,9 +2185,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
2185 [
2186 "Object.<anonymous>",
2187 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
2212 - 2141,
2188 + 2117,
2189 40,
2214 - 2123,
2190 + 2099,
2191 80,
2192 ],
2193 [
@@ -2236,17 +2212,17 @@ describe('ReactFlightAsyncDebugInfo', () => {
2212 [
2213 "delayTrice",
2214 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
2239 - 2131,
2215 + 2107,
2216 13,
2241 - 2129,
2217 + 2105,
2218 5,
2219 ],
2220 [
2221 "Bar",
2222 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
2247 - 2136,
2223 + 2112,
2224 13,
2249 - 2135,
2225 + 2111,
2226 5,
2227 ],
2228 ],
@@ -2265,9 +2241,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
2241 [
2242 "Object.<anonymous>",
2243 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
2268 - 2141,
2244 + 2117,
2245 40,
2270 - 2123,
2246 + 2099,
2247 80,
2248 ],
2249 [
@@ -2284,17 +2260,17 @@ describe('ReactFlightAsyncDebugInfo', () => {
2260 [
2261 "delayTrice",
2262 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
2287 - 2131,
2263 + 2107,
2264 13,
2289 - 2129,
2265 + 2105,
2266 5,
2267 ],
2268 [
2269 "Bar",
2270 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
2295 - 2136,
2271 + 2112,
2272 13,
2297 - 2135,
2273 + 2111,
2274 5,
2275 ],
2276 ],
@@ -2316,9 +2292,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
2292 [
2293 "Object.<anonymous>",
2294 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
2319 - 2141,
2295 + 2117,
2296 40,
2321 - 2123,
2297 + 2099,
2298 80,
2299 ],
2300 [
@@ -2343,25 +2319,25 @@ describe('ReactFlightAsyncDebugInfo', () => {
2319 [
2320 "delayTwice",
2321 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
2346 - 2125,
2322 + 2101,
2323 13,
2348 - 2124,
2324 + 2100,
2325 5,
2326 ],
2327 [
2328 "delayTrice",
2329 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
2354 - 2130,
2330 + 2106,
2331 15,
2356 - 2129,
2332 + 2105,
2333 5,
2334 ],
2335 [
2336 "Bar",
2337 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
2362 - 2136,
2338 + 2112,
2339 13,
2364 - 2135,
2340 + 2111,
2341 5,
2342 ],
2343 ],
@@ -2380,9 +2356,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
2356 [
2357 "Object.<anonymous>",
2358 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
2383 - 2141,
2359 + 2117,
2360 40,
2385 - 2123,
2361 + 2099,
2362 80,
2363 ],
2364 [
@@ -2399,25 +2375,25 @@ describe('ReactFlightAsyncDebugInfo', () => {
2375 [
2376 "delayTwice",
2377 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
2402 - 2125,
2378 + 2101,
2379 13,
2404 - 2124,
2380 + 2100,
2381 5,
2382 ],
2383 [
2384 "delayTrice",
2385 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
2410 - 2130,
2386 + 2106,
2387 15,
2412 - 2129,
2388 + 2105,
2389 5,
2390 ],
2391 [
2392 "Bar",
2393 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
2418 - 2136,
2394 + 2112,
2395 13,
2420 - 2135,
2396 + 2111,
2397 5,
2398 ],
2399 ],
@@ -2439,9 +2415,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
2415 [
2416 "Object.<anonymous>",
2417 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
2442 - 2141,
2418 + 2117,
2419 40,
2444 - 2123,
2420 + 2099,
2421 80,
2422 ],
2423 [
@@ -2466,9 +2442,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
2442 [
2443 "delayTwice",
2444 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
2469 - 2126,
2445 + 2102,
2446 13,
2471 - 2124,
2447 + 2100,
2448 5,
2449 ],
2450 ],
@@ -2487,9 +2463,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
2463 [
2464 "Object.<anonymous>",
2465 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
2490 - 2141,
2466 + 2117,
2467 40,
2492 - 2123,
2468 + 2099,
2469 80,
2470 ],
2471 [
@@ -2506,9 +2482,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
2482 [
2483 "delayTwice",
2484 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
2509 - 2126,
2485 + 2102,
2486 13,
2511 - 2124,
2487 + 2100,
2488 5,
2489 ],
2490 ],
@@ -2581,9 +2557,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
2557 [
2558 "Object.<anonymous>",
2559 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
2584 - 2550,
2560 + 2526,
2561 109,
2586 - 2539,
2562 + 2515,
2563 58,
2564 ],
2565 ],
@@ -2605,9 +2581,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
2581 [
2582 "Object.<anonymous>",
2583 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
2608 - 2550,
2584 + 2526,
2585 109,
2610 - 2539,
2586 + 2515,
2587 58,
2588 ],
2589 ],
@@ -2624,17 +2600,17 @@ describe('ReactFlightAsyncDebugInfo', () => {
2600 [
2601 "getData",
2602 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
2627 - 2541,
2603 + 2517,
2604 14,
2629 - 2540,
2605 + 2516,
2606 5,
2607 ],
2608 [
2609 "Component",
2610 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
2635 - 2547,
2611 + 2523,
2612 20,
2637 - 2546,
2613 + 2522,
2614 5,
2615 ],
2616 ],
@@ -2653,9 +2629,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
2629 [
2630 "Object.<anonymous>",
2631 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
2656 - 2550,
2632 + 2526,
2633 109,
2658 - 2539,
2634 + 2515,
2635 58,
2636 ],
2637 ],
@@ -2664,17 +2640,17 @@ describe('ReactFlightAsyncDebugInfo', () => {
2640 [
2641 "getData",
2642 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
2667 - 2541,
2643 + 2517,
2644 23,
2669 - 2540,
2645 + 2516,
2646 5,
2647 ],
2648 [
2649 "Component",
2650 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
2675 - 2547,
2651 + 2523,
2652 20,
2677 - 2546,
2653 + 2522,
2654 5,
2655 ],
2656 ],
@@ -2753,9 +2729,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
2729 [
2730 "Object.<anonymous>",
2731 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
2756 - 2717,
2732 + 2693,
2733 40,
2758 - 2705,
2734 + 2681,
2735 56,
2736 ],
2737 [
@@ -2785,9 +2761,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
2761 [
2762 "Object.<anonymous>",
2763 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
2788 - 2717,
2764 + 2693,
2765 40,
2790 - 2705,
2766 + 2681,
2767 56,
2768 ],
2769 [
@@ -2812,9 +2788,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
2788 [
2789 "Component",
2790 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
2815 - 2713,
2791 + 2689,
2792 20,
2817 - 2712,
2793 + 2688,
2794 5,
2795 ],
2796 ],
@@ -2833,9 +2809,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
2809 [
2810 "Object.<anonymous>",
2811 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
2836 - 2717,
2812 + 2693,
2813 40,
2838 - 2705,
2814 + 2681,
2815 56,
2816 ],
2817 [
@@ -2852,9 +2828,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
2828 [
2829 "Component",
2830 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
2855 - 2713,
2831 + 2689,
2832 20,
2857 - 2712,
2833 + 2688,
2834 5,
2835 ],
2836 ],
@@ -2947,9 +2923,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
2923 [
2924 "Object.<anonymous>",
2925 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
2950 - 2906,
2926 + 2882,
2927 40,
2952 - 2885,
2928 + 2861,
2929 42,
2930 ],
2931 [
@@ -2979,9 +2955,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
2955 [
2956 "Object.<anonymous>",
2957 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
2982 - 2906,
2958 + 2882,
2959 40,
2984 - 2885,
2960 + 2861,
2961 42,
2962 ],
2963 [
@@ -2998,17 +2974,17 @@ describe('ReactFlightAsyncDebugInfo', () => {
2974 [
2975 "",
2976 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
3001 - 2892,
2977 + 2868,
2978 15,
3003 - 2891,
2979 + 2867,
2980 15,
2981 ],
2982 [
2983 "Component",
2984 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
3009 - 2901,
2985 + 2877,
2986 19,
3011 - 2900,
2987 + 2876,
2988 5,
2989 ],
2990 ],
@@ -3027,9 +3003,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
3003 [
3004 "Object.<anonymous>",
3005 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
3030 - 2906,
3006 + 2882,
3007 40,
3032 - 2885,
3008 + 2861,
3009 42,
3010 ],
3011 [
@@ -3046,17 +3022,17 @@ describe('ReactFlightAsyncDebugInfo', () => {
3022 [
3023 "",
3024 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
3049 - 2892,
3025 + 2868,
3026 15,
3051 - 2891,
3027 + 2867,
3028 15,
3029 ],
3030 [
3031 "Component",
3032 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
3057 - 2901,
3033 + 2877,
3034 19,
3059 - 2900,
3035 + 2876,
3036 5,
3037 ],
3038 ],
@@ -3078,9 +3054,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
3054 [
3055 "Object.<anonymous>",
3056 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
3081 - 2906,
3057 + 2882,
3058 40,
3083 - 2885,
3059 + 2861,
3060 42,
3061 ],
3062 [
@@ -3097,9 +3073,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
3073 [
3074 "Component",
3075 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
3100 - 2901,
3076 + 2877,
3077 25,
3102 - 2900,
3078 + 2876,
3079 5,
3080 ],
3081 ],
@@ -3118,9 +3094,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
3094 [
3095 "Object.<anonymous>",
3096 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
3121 - 2906,
3097 + 2882,
3098 40,
3123 - 2885,
3099 + 2861,
3100 42,
3101 ],
3102 [
@@ -3137,9 +3113,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
3113 [
3114 "Component",
3115 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
3140 - 2901,
3116 + 2877,
3117 25,
3142 - 2900,
3118 + 2876,
3119 5,
3120 ],
3121 ],
@@ -3215,9 +3191,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
3191 [
3192 "Object.<anonymous>",
3193 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
3218 - 3182,
3194 + 3158,
3195 40,
3220 - 3170,
3196 + 3146,
3197 36,
3198 ],
3199 ],
@@ -3239,9 +3215,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
3215 [
3216 "Object.<anonymous>",
3217 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
3242 - 3182,
3218 + 3158,
3219 40,
3244 - 3170,
3220 + 3146,
3221 36,
3222 ],
3223 ],
@@ -3250,9 +3226,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
3226 [
3227 "Component",
3228 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
3253 - 3174,
3229 + 3150,
3230 7,
3255 - 3172,
3231 + 3148,
3232 5,
3233 ],
3234 ],
@@ -3271,9 +3247,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
3247 [
3248 "Object.<anonymous>",
3249 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
3274 - 3182,
3250 + 3158,
3251 40,
3276 - 3170,
3252 + 3146,
3253 36,
3254 ],
3255 ],
@@ -3282,9 +3258,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
3258 [
3259 "Component",
3260 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
3285 - 3176,
3261 + 3152,
3262 7,
3287 - 3172,
3263 + 3148,
3264 5,
3265 ],
3266 ],
@@ -3409,9 +3385,9 @@ describe('ReactFlightAsyncDebugInfo', () => {
3385 [
3386 "Component",
3387 "/packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js",
3412 - 3327,
3388 + 3303,
3389 20,
3414 - 3326,
3390 + 3302,
3391 5,
3392 ],
3393 ],
@@ -3422,18 +3398,6 @@ describe('ReactFlightAsyncDebugInfo', () => {
3398 {
3399 "time": 0,
3400 },
3425 - {
3426 - "awaited": {
3427 - "byteSize": 0,
3428 - "end": 0,
3429 - "name": "RSC stream",
3430 - "owner": null,
3431 - "start": 0,
3432 - "value": {
3433 - "value": "stream",
3434 - },
3435 - },
3436 - },
3401 ]
3402 `);
3403 }