Immutable State Extension
Let's make sure that the state is not mutated accidentally. State should only be changed explicitly by dispatching an
action or by using setState
.
The Immutable State Extension will throw an error if you mutate state.
#
Register the extensionConfigure the store with the ImmutableStateExtension
: