Nuxt suspense component & vueQuery suspense in SSR app
What i try to do is using suspense in my page to show a fallback e.g. loading indicator as long as my vueQueries are fetching.
For what i understand you await suspense() to make sure the data is fetched and available.
I tried a lot of combinations but i never ever see the fallback when i excecuting a vueQuery query, it just renders the #default template when it is done fetching the data.
Could that imply that my component is not async in the Suspense compontent context although i'm using script setup and await suspense() onMounted?
Minimal Concept setup:
page.vue
HomePopularCategories.vue
I use await suspense() a lot to make sure the data is loaded on serverside without the verbose isLoading and isError conditionals
But i can not seem to get my head around this concept.
For what i understand you await suspense() to make sure the data is fetched and available.
I tried a lot of combinations but i never ever see the fallback when i excecuting a vueQuery query, it just renders the #default template when it is done fetching the data.
Could that imply that my component is not async in the Suspense compontent context although i'm using script setup and await suspense() onMounted?
Minimal Concept setup:
page.vue
HomePopularCategories.vue
I use await suspense() a lot to make sure the data is loaded on serverside without the verbose isLoading and isError conditionals
But i can not seem to get my head around this concept.