Commit 52ea641
authored
[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).1 parent 3ec88e7 commit 52ea641
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2302 | 2302 | | |
2303 | 2303 | | |
2304 | 2304 | | |
| 2305 | + | |
| 2306 | + | |
| 2307 | + | |
2305 | 2308 | | |
2306 | 2309 | | |
2307 | 2310 | | |
| |||
2416 | 2419 | | |
2417 | 2420 | | |
2418 | 2421 | | |
2419 | | - | |
2420 | | - | |
2421 | 2422 | | |
2422 | 2423 | | |
2423 | 2424 | | |
| |||
0 commit comments