what different with useStore().data & const store = useStore(); store.data #2474
-
who can tell me why, much thanks |
Beta Was this translation helpful? Give feedback.
Answered by
posva
Jan 4, 2024
Replies: 1 comment
-
In that specific case there is no difference but always prefer calling |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
posva
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In that specific case there is no difference but always prefer calling
usePermissionStore()
at the top of the navigation guard and not after anyawait
as that would break in SSR apps