dillon1000/react
Commit
Browse files 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.
Changed paths3 files
First-parent comparisonscripts/fiber/tests-passing.txt ModifiedM src/renderers/shared/fiber/ReactFiberUpdateQueue.js ModifiedM src/renderers/shared/fiber/__tests__/ReactIncrementalUpdates-test.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…