Is it a good practice to update the state dynamically based on the payload.
Something like this : {...state, ...action.payload.data}
Where if payload = {userName : "John"} only the userName will be changed in the store without having to specify it explicitly.