dillon1000/react

Commit

Consolidate work loops

This makes it easier to track when we enter and exit a batch of work.

Further steps needed in this refactor:
- Get rid of tryComponentDidMount, tryComponentDidUpdate, etc. in
favor of the try-catch blocks that wrap each pass of the commit phase.
- Need to be able to switch between performing work that is possibly
failed (slower because it requires an extra check on each iteration) and
work that we know for sure has no errors.
Browse files
Changed paths4 files
First-parent comparison
M src/renderers/shared/fiber/ReactFiberScheduler.js ModifiedM src/renderers/shared/fiber/__tests__/ReactIncremental-test.js ModifiedM src/renderers/shared/fiber/__tests__/ReactIncrementalErrorHandling-test.js ModifiedM src/renderers/shared/fiber/__tests__/ReactIncrementalScheduling-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…