SIGN IN SIGN UP
facebook / react UNCLAIMED

The library for web and native user interfaces.

0 0 0 JavaScript

Fix: Suspend while recovering from hydration error (#28800)

Fixes a bug that happens when an error occurs during hydration, React
switches to client rendering, and then the client render suspends. It
works correctly if there's a Suspense boundary on the stack, but not if
it happens in the shell of the app.

Prior to this fix, the app would crash with an "Unknown root exit
status" error.

I left a TODO comment for how we might refactor this code to be less
confusing in the future.
A
Andrew Clark committed
3f9e237a2feb74f1fca23b76d9d2e9e1713e2ba1
Parent: 64c8d2d
Committed by GitHub <noreply@github.com> on 4/9/2024, 9:11:46 PM