storeToRefs makes reactive -> ref #2601
Replies: 2 comments
-
You don't need const store = useStore()
store.state.value |
Beta Was this translation helpful? Give feedback.
0 replies
-
I did want to pass individual state around. But you're right |
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
-
storeToRefs turns 'reactive' -> 'ref'. I use reactive mostly to not write '.value' every time. Any way to keep this functionality?
// store.ts
// component.vue
Beta Was this translation helpful? Give feedback.
All reactions