Closed jumptrnr closed 8 months ago
As of Nuxt 3.10 using useAsyncQuery for an SSR app in , the console says:
[nuxt] [useAsyncData] Component is already mounted, please use $fetch instead. See https://nuxt.com/docs/getting-started/data-fetching
for example:
onMounted(async () => { const input_funds = { id: freshStore.user.account.id, dt: freshStore.pageAsOfDtIso, }; let result_funds = await useAsyncQuery(queryFunds, input_funds);
No warning, or a suggested approach to address since the docs still say best to use useAsyncData in the setup of an SSR app.
Have noted this:
https://github.com/nuxt/nuxt/discussions/25602
No response
Hope this is the right place for this vs nuxt.
moved before mounted
Environment
Describe the bug
As of Nuxt 3.10 using useAsyncQuery for an SSR app in , the console says:
[nuxt] [useAsyncData] Component is already mounted, please use $fetch instead. See https://nuxt.com/docs/getting-started/data-fetching
for example:
Expected behaviour
No warning, or a suggested approach to address since the docs still say best to use useAsyncData in the setup of an SSR app.
Have noted this:
https://github.com/nuxt/nuxt/discussions/25602
Reproduction
No response
Additional context
Hope this is the right place for this vs nuxt.
Logs
No response