Destructuring - storeToRefs #1944
Unanswered
marcpaskell
asked this question in
Help and Questions
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.
-
Hi - hopefully a simple answer for anyone who's been using pinia for a bit longer than me :)
So assuming I have a store that looks something like this:
Rather than referencing it in components like this
and using the full path
application.settings.branding.primary.headline
in templates or computed values etcIs there any way to destructure the store state, perhaps as you could with a reactive via toRefs?
this approach pulls the original value but is not reactive
Beta Was this translation helpful? Give feedback.
All reactions