dillon1000/react

Commit

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 #8485
Browse files
Changed paths2 files
First-parent comparison
M src/renderers/shared/fiber/ReactFiberScheduler.js ModifiedM src/renderers/shared/shared/__tests__/ReactErrorBoundaries-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…