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. |
Beta Was this translation helpful? Give feedback.
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.
|
Beta Was this translation helpful? Give feedback.
-
Well looks like you can use useLazyQuery(query, variables) from vue/apollo in nuxtjs/apollo instead of all this work above. |
Beta Was this translation helpful? Give feedback.
Well looks like you can use useLazyQuery(query, variables) from vue/apollo in nuxtjs/apollo instead of all this work above.