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
It's caused by unsophisticated local variable removal which incorrectly inlines the counter. Local variables are inlined to support destructuring the state.
Currently, using a loop in a Redcr reducer can end up mutably editing the state. For example
Will produce
It should probably work similar to how if-statements are handled, and continuously reassign the state
Could explore loop unrolling too if the number of iterations is a compile-time constant.
How often is a loop actually useful in a reducer though?
The text was updated successfully, but these errors were encountered: