Closed
Description
Currently, replaceState
is used in the writeState
function.
Lines 35 to 37 in cbe6f58
However, from the docs, replaceState
may be removed in the future.
https://facebook.github.io/react/docs/component-api.html#replacestate
Since the state is wrapped in {state: state}
I believe we'd get the same behaviour even though setState
does a shallow merge instead of a complete state replacement.
I hope to have a chance to prepare a PR for this. But I wanted to note it down.
Metadata
Metadata
Assignees
Labels
No labels