Skip to content

Commit b4eb0ad

Browse files
authoredMay 3, 2022
Do not replay erroring beginWork with invokeGuardedCallback when suspended or previously errored (#24480)
When hydrating a suspense boundary an error or a suspending fiber can often lead to a cascade of hydration errors. While in many cases these errors are simply discarded (e.g. when teh root does not commit and we fall back to client rendering) the use of invokeGuardedCallback can lead to many of these errors appearing as uncaught in the browser console. This change avoids error replaying using invokeGuardedCallback when we are hydrating a suspense boundary and have either already suspended or we have one previous error which was replayed.
1 parent 99eef9e commit b4eb0ad

File tree

5 files changed

+468
-9
lines changed

5 files changed

+468
-9
lines changed
 

0 commit comments

Comments
 (0)