Destruct Composable Store #851
Answered
by
posva
rynz
asked this question in
Help and Questions
-
export const useCounterStore = defineStore('counter', () => {
const count = ref(0)
function increment() {
count.value++
}
return { count, increment }
}) Is very similar to When exclusively using a Composable Store as per the example above, must we still use |
Beta Was this translation helpful? Give feedback.
Answered by
posva
Nov 29, 2021
Replies: 1 comment 3 replies
-
You still ned |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
rynz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You still ned
toRefs()
orstoreToRefs()
because it adds more than just what is returned and wraps it withreactive()