Script setup syntax and pinia reactivity #1962
-
When using For example:
In the above example, would a change to any property within the store, say Is it better to use |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
No. The idea in Vue is not to worry about when things render, just let Vue handle that for you.
Both are fine, use |
Beta Was this translation helpful? Give feedback.
No. The idea in Vue is not to worry about when things render, just let Vue handle that for you.
Both are fine, use
storeToRefs()
when having an individual value is more convenient or when you need to pass a piece of state to a Composable