dillon1000/react

Commit

Do not add additional work to a batch that is already rendering (#13072)

* Do not add additional work to a batch that is already rendering.

Otherwise, the part of the tree that hasn't rendered yet will receive
the latest state, but the already rendered part will show the state
as it was before the intervening update.

* Reduce non-helpfulness of comments
Browse files
Changed paths3 files
First-parent comparison
M packages/react-reconciler/src/ReactFiberScheduler.js ModifiedM packages/react-reconciler/src/__tests__/ReactExpiration-test.internal.js ModifiedM packages/react-reconciler/src/__tests__/ReactIncrementalUpdates-test.internal.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…