Skip to content

Commit 85343df

Browse files
committed
Update comments since conceptually now the Task is the stop signal
1 parent 5dc2fca commit 85343df

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/react-server/src/ReactFlightServer.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -933,8 +933,8 @@ function serializeReadableStream(
933933
__DEV__ ? task.debugTask : null,
934934
);
935935

936-
request.pendingChunks++; // The task represents the Start row. This adds a Stop row.
937-
936+
// The task represents the Stop row. This adds a Start row.
937+
request.pendingChunks++;
938938
const startStreamRow =
939939
streamTask.id.toString(16) + ':' + (supportsBYOB ? 'r' : 'R') + '\n';
940940
request.completedRegularChunks.push(stringToChunk(startStreamRow));
@@ -1023,8 +1023,8 @@ function serializeAsyncIterable(
10231023
__DEV__ ? task.debugTask : null,
10241024
);
10251025

1026-
request.pendingChunks++; // The task represents the Start row. This adds a Stop row.
1027-
1026+
// The task represents the Stop row. This adds a Start row.
1027+
request.pendingChunks++;
10281028
const startStreamRow =
10291029
streamTask.id.toString(16) + ':' + (isIterator ? 'x' : 'X') + '\n';
10301030
request.completedRegularChunks.push(stringToChunk(startStreamRow));

0 commit comments

Comments
 (0)