Replies: 1 comment 1 reply
-
It is more clunky to use and passing state around should be more the exception rather than the rule, so doing that when you do not really need to does not make much sense. I also do not think introducing a new rune improves the situation in any significant way. If you want to opt out of proxy creation, there is |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When state is given an object it compiles to a proxy object which can be passed to an external store which can read a property reactively.
When given a scalar, it cannot be passed to a store unless it is in a getter.
This is very confusing.
Is there a reason why I shouldn't just use objects for all my state so that if I need to pass them to module stores I can?
Beta Was this translation helpful? Give feedback.
All reactions