Alias syntactic sugar of storeToRefs #1990
-
storeToRefs is a helper method to convert store reactive data to refs. Why? So if want to use the ref of loading. it should be like this; Imaging that I have a component that used more than one store that have loading state.
Perfect way should be
Do I miss something? Or this feature would be supported? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
did you try const { loading: aLoading } = storeToRefs(AStore); |
Beta Was this translation helpful? Give feedback.
did you try
const { loading: aLoading } = storeToRefs(AStore);
const { loading: bLoading} = storeToRefs(BStore);