Skip to content

what different with useStore().data & const store = useStore(); store.data #2474

Discussion options

You must be logged in to vote

In that specific case there is no difference but always prefer calling usePermissionStore() at the top of the navigation guard and not after any await as that would break in SSR apps

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by posva
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants