dillon1000/react

Commit

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.
Browse files
Changed paths4 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 ModifiedM src/renderers/shared/shared/__tests__/ReactCompositeComponentState-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…