you are trying to break Single Source of Truth principle
more info on my answer :)
👍 2
z
Zach Klippenstein (he/him) [MOD]
01/13/2022, 3:49 PM
I don't think passing a mutable state and changing it from a function breaks single source of truth - that state object is still the single source of truth. It’s still an anti pattern, but not for that particular reason.