Skip to content

useQuery in combination with a Pinia store and store data (Nuxt) #131

Closed Answered by posva
youri-spendcloud asked this question in Questions
Discussion options

You must be logged in to vote

I would call useUser() where you need to. Since it's a query, it can be invalidated when logging out and it can be awaited when needed with the refresh() method since it dedupes requests.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@youri-spendcloud
Comment options

@posva
Comment options

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