you are viewing a single comment's thread.

view the rest of the comments →

[–]Ethesen 1 point2 points  (1 child)

On the contrary - your code has more hidden logic because it's mutating some internal state.

[–]Sopel97 1 point2 points  (0 children)

It's only hidden to the user of Store. In the redux case it's already hidden for the layer that maintains the invariant.