dillon1000/react
Commit
Browse files 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
Changed paths3 files
First-parent comparisonpackages/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 ModifiedPatch
Files changed
Rendering syntax-highlighted changes…