dillon1000/react

Commit

Handle setState inside an updater function

The update is scheduled as if the current processing update has already
been processed; if it has the same or higher priority, it will be
flushed in the same batch.

We also print a warning.
Browse files
Changed paths3 files
First-parent comparison
M scripts/fiber/tests-passing.txt ModifiedM src/renderers/shared/fiber/ReactFiberUpdateQueue.js ModifiedM src/renderers/shared/fiber/__tests__/ReactIncrementalUpdates-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…