Replies: 1 comment 3 replies
-
Why don't return a Ref directly? export const useCounter = defineStore('counter', () => {
const count = ref(0)
return { count }
}) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, first thing thanks for this plugin, its really help me a lot. Anyway, i have an idea, but cant really think how to implement it. The motive is related to Pinia, i have to write ref and computed to create writeable global data for pinia state.
Is it possible that vue macros can make a shorthand for ref and computed? maybe a simple shorthand for ref + computed would be cool, the end result of the idea maybe like this:
Also tell me if this already exists in somewhere.
Beta Was this translation helpful? Give feedback.
All reactions