"The recommended usage is to colocate actions and states within the store" - why? #3026
Unanswered
jameshfisher
asked this question in
Q&A
Replies: 1 comment
-
I think the wording is misleading or incorrect. Probably it should say "The typical usage is..." I'm not exactly sure if "its encapsulated nature" is correct wording, but what it means is to define actions in the state. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the official docs, I read
I therefore don't understand the recommendation. If the alternative has concrete advantages and no downsides, shouldn't it be the recommendation?
I then read:
But what does this actually mean? What's the advantage that I'm not seeing? Isn't a JS module a perfectly fine encapsulation?
Beta Was this translation helpful? Give feedback.
All reactions