Closed nhvu95 closed 3 years ago
https://stackblitz.com/edit/angular-ivy-ebkzxz?file=src/app/non-immer/non-immer.component.ts Please follow the demo above. and please check the console log.
You're right, but this is by design. Immer creates an immutable state, thus you can't simply update it. You're only allowed to update state in the update methods.
https://stackblitz.com/edit/angular-ivy-ebkzxz?file=src/app/non-immer/non-immer.component.ts Please follow the demo above. and please check the console log.