setState to update the state of a Feature Store right away.
setState accepts a Partial Type. This allows us to pass only some properties of a bigger state interface.
Do you need to update the state based on the current state?
setState accepts a callback function which gives you access to the current state.
For better logging in the JS Console / Redux Dev Tools you can provide an optional name to the
Undo setState Actions with
We can easily undo
setState actions with the Undo Extension installed.
setState returns an action which can be used to perform an Undo.