mirror of
https://github.com/facebook/react.git
synced 2026-02-27 03:07:57 +00:00
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.