Using vue query with vue router, generally in .ts file. #269
Unanswered
sonnguyenxaion
asked this question in
Q&A
Replies: 1 comment
-
Ad1.
It would reccoment no 1. Since it would not create any additional resources (observers) that could cause memory leaks. Ad2.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Question 1:
In my
router.beforeEach
there're some API which call many times, so I want to useuseQuery
to cache those API. But I caught an error that `useQuery's only used in < setup script />.So how do we deal with this issue?
Question 2:
What is the different between
queryClient
anduseQuery
hook? Which and when we usequeryClient
?Sorry, I couldn't find any good explanation in docs.
Thank you guys so much for supporting.
Beta Was this translation helpful? Give feedback.
All reactions