dillon1000/react
Commit
Browse files Don't drop updates from queue when calling replaceState
We should be able to support passing a function to replaceState, which receives the accumulation of all the previously applied state updates. Which means we shouldn't drop those updates from the queue. Technically, we could drop them only when an object is passed to replaceState, but that seems like more trouble than it's worth.
Changed paths4 files
First-parent comparisonscripts/fiber/tests-passing.txt ModifiedM src/renderers/shared/fiber/ReactFiberUpdateQueue.js ModifiedM src/renderers/shared/fiber/__tests__/ReactIncrementalUpdates-test.js ModifiedM src/renderers/shared/shared/__tests__/ReactCompositeComponentState-test.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…