[nuxt] [useAsyncData] Component is already mounted, please use $fetch instead. #27143
Replies: 1 comment
-
Duplicated |
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
-
I'm currently trying to incorporate an external library (kitsu) alongside useAsyncData to facilitate fetch requests. However, I'm encountering a warning from Nuxt because I'm not using $fetch, yet changing my entire implementation to accommodate this seems impractical. I'm utilizing useAsyncData within the mounted lifecycle hook. What should I do in this scenario?
api.ts
ExampleComponent.vue
[nuxt] [useAsyncData] Component is already mounted, please use $fetch instead. See https://nuxt.com/docs/getting-started/data-fetching
Beta Was this translation helpful? Give feedback.
All reactions