Syntatic sugar for state "getters" #2259
trev-dev
started this conversation in
3. Feature Ideas
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Forgive me if there's already a way to do this, but it would be cool if I could attach some $store to x-data on a component as a locally scoped, uniquely named variable and see changes to the global store update those local variables as wellThis is what getters are for. This idea is more of a request for syntactic sugar now.Here's an example of what I'm talking about:
Beta Was this translation helpful? Give feedback.
All reactions