DamianOsipiuk / vue-query

Hooks for fetching, caching and updating asynchronous data in Vue
https://vue-query.vercel.app/
MIT License
1.11k stars 48 forks source link

vue-query hooks not work on nuxt v 2.15.8 #237

Closed kevindev-ni closed 2 years ago

kevindev-ni commented 2 years ago

vue-query hooks can only be used inside setup() function.

DamianOsipiuk commented 2 years ago

Hi, I would need more information on what if your setup, how did you set it up, vue-query version etc.

It definitely works as this version is about a year old and there is a working example with vue2: https://github.com/DamianOsipiuk/vue-query/tree/beta/examples/nuxt-simple