Skip to content

Commit 54104be

Browse files
committed
Fix parentSerializedSize
1 parent e7d31af commit 54104be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-server/src/ReactFlightServer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3927,10 +3927,10 @@ function emitChunk(
39273927
}
39283928
// For anything else we need to try to serialize it using JSON.
39293929
// We stash the outer parent size so we can restore it when we exit.
3930+
const parentSerializedSize = serializedSize;
39303931
// We don't reset the serialized size counter from reentry because that indicates that we
39313932
// are outlining a model and we actually want to include that size into the parent since
39323933
// it will still block the parent row. It only restores to zero at the top of the stack.
3933-
const parentSerializedSize = 0;
39343934
try {
39353935
// $FlowFixMe[incompatible-type] stringify can return null for undefined but we never do
39363936
const json: string = stringify(value, task.toJSON);

0 commit comments

Comments
 (0)