mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
52ea641449
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).