mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
a180cdd8bfd2cacd74e22ef17a29a7c4c8bc7f0d
When an error boundary catches an error during hydration it'll try to
render the error state which will then try to hydrate that state,
causing hydration warnings.
When an error happens inside a Suspense boundary during hydration, we
instead let the boundary catch it and restart a client render from
there. However, when it's in the root we instead let it fail the root
and do the sync recovery pass. This didn't consider that we might hit an
error boundary first so this just skips the error boundary in that case.
We should probably instead let the root do a concurrent client render in
this same pass instead to unify with Suspense boundaries.
DiffTrain build for [5d4b7587da](https://github.com/facebook/react/commit/5d4b7587da52dd81bc5c366b909c4511e2970cd1)
Please do not delete this branch
Languages
JavaScript
67.1%
TypeScript
29.4%
HTML
1.5%
CSS
1.1%
C++
0.6%
Other
0.2%