You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug: Extra render pass when reverting to client render
I noticed while working on a PR that when an error happens during
hydration, and we revert to client rendering, React actually does _two_
additional render passes instead of just one. We didn't notice it
earlier because none of our tests happened to assert on how many renders
it took to recover, only on the final output.
It's possible this extra render pass had other consequences that I'm
not aware of, like messing with some assumption in the recoverable
errors logic.
This adds a test to demonstrate the issue. (One problem is that we
don't have much test coverage of this scenario in the first place, which
likely would have caught this earlier.)
0 commit comments