dillon1000/react

Commit

[Flight] Don't increase serializedSize for every recursive pass (#33123)

I noticed that we increase this in the recursive part of the algorithm.
This would mean that we'd count a key more than once if it has Server
Components inside it recursively resolving. This moves it out to where
we enter from toJSON. Which is called once per JSON entry (and therefore
once per key).
Browse files
Changed paths1 file
First-parent comparison
M packages/react-server/src/ReactFlightServer.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…