You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yup. Giving a key on useAsyncData does not handle the cache automatically. To use the cache from nuxt, it should use useNuxtData to manually manage the cache.
It's inconvenient to use tbh. I prefer some smart data-fetching library like vue-query, providing some powerful and convenient options like staleTime、 queryKey 、enabled etc.
Yup. Giving a key on
useAsyncData
does not handle the cache automatically. To use the cache from nuxt, it should useuseNuxtData
to manually manage the cache.It's inconvenient to use tbh. I prefer some smart data-fetching library like
vue-query
, providing some powerful and convenient options likestaleTime
、queryKey
、enabled
etc.ref: https://tanstack.com/query/latest/docs/framework/vue/guides/query-keys
Originally posted by @Jarsen136 in #10299 (comment)
WDYT? Feel free to write down any other ideal option. @kodadot/internal-dev
The text was updated successfully, but these errors were encountered: