Really need help with event triggered queries a composable #642
|
I'm having constant problems with this implementation of queries on an event. You get a warning if you use useAsyncQuery or useLazyAsync and you get a waring if you use useQuery inside of a method you get the can't stop automatically. So what is the proper way to query with nuxt/apollo on an event like click? Would really appreciate because seems no matter what I try there is some waring say not to do x. Example Test Any help would be much appreciated. |
Answered by
scottcarlton
Mar 17, 2025
Replies: 2 comments
|
This seems to be working but seems like it really smells. A lot of work just to do simple event trigged query. |
0 replies
|
Well looks like you can use useLazyQuery(query, variables) from vue/apollo in nuxtjs/apollo instead of all this work above. |
0 replies
Answer selected by
scottcarlton
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Well looks like you can use useLazyQuery(query, variables) from vue/apollo in nuxtjs/apollo instead of all this work above.