Why is redux state immutable?
For redux to work correctly, the state must be immutable. This means that whenever we update the redux state, we have to create a copy of the whole state and set values to fields we want to change. In code, this usually looks like:
let newState = {
...
supertokens.hashnode.dev5 min read