Skip to content

Commit c19e900

Browse files
committed
Fix pendingChunks mismatch
1 parent 1e66d62 commit c19e900

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/react-server/src/ReactFlightServer.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4309,13 +4309,13 @@ function forwardDebugInfo(
43094309
info.time < minimumTime ? minimumTime : info.time,
43104310
);
43114311
} else {
4312-
request.pendingChunks++;
43134312
if (typeof info.name === 'string') {
43144313
// We outline this model eagerly so that we can refer to by reference as an owner.
43154314
// If we had a smarter way to dedupe we might not have to do this if there ends up
43164315
// being no references to this as an owner.
43174316
outlineComponentInfo(request, (info: any));
43184317
// Emit a reference to the outlined one.
4318+
request.pendingChunks++;
43194319
emitDebugChunk(request, id, info);
43204320
} else if (info.awaited) {
43214321
const ioInfo = info.awaited;
@@ -4356,9 +4356,11 @@ function forwardDebugInfo(
43564356
// $FlowFixMe[cannot-write]
43574357
debugAsyncInfo.stack = debugStack;
43584358
}
4359+
request.pendingChunks++;
43594360
emitDebugChunk(request, id, debugAsyncInfo);
43604361
}
43614362
} else {
4363+
request.pendingChunks++;
43624364
emitDebugChunk(request, id, info);
43634365
}
43644366
}

0 commit comments

Comments
 (0)