Moving between pages Problem in Nuxt 3.10.03, ssr:false
When moving between pages, the page moves after the API call is completed.
Isn't it usually an API call after turning the page?
Or is it a problem that I use useAsyncData + $fetch?
The "pending" value also does not work in case of a POST request after refresh.
I'm sharing my custom composable file.
Thanks
2 Replies
you can useLazyAsyncdata:
https://nuxt.com/docs/api/composables/use-lazy-async-data
Nuxt
useLazyAsyncData · Nuxt Composables
This wrapper around useAsyncData triggers navigation immediately.
Thanks