Reputation: 15271
When doing patchState
to update the signal store, should changes be immutable or does patchState
handle that internally?
Upvotes: 2
Views: 39
Reputation: 57696
From the documentation:
Updaters passed to the patchState function must perform state updates in an immutable manner. If a mutable change occurs to the state object, an error will be thrown in development mode.
Upvotes: 2