dillon1000/react
Commit
Browse files Error boundaries can only capture errors once per batch
Subsequent failures should propagate the error to the next boundary.
The conceptual model for this is
try {
render();
} catch (error) {
setStateToRecover();
render();
}
Closes #8485Changed paths2 files
First-parent comparisonsrc/renderers/shared/fiber/ReactFiberScheduler.js ModifiedM src/renderers/shared/shared/__tests__/ReactErrorBoundaries-test.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…