You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the result of a mutation, e.g. a unary operator, is assigned to a local variable, and that local variable is used in another mutation, e.g. assignment, the result can be that the original state is modified.
Sample input
An example in TypeScript of a reducer which produces unexpected results.
Describe the bug
When the result of a mutation, e.g. a unary operator, is assigned to a local variable, and that local variable is used in another mutation, e.g. assignment, the result can be that the original state is modified.
Sample input
An example in TypeScript of a reducer which produces unexpected results.
Current output
Specify which ES version you're targeting: ES2020
In this case,
state.first
has been altered. The result should be something likeThe text was updated successfully, but these errors were encountered: