NuxtLoadingIndicator doesn't work properly on nested page with lazy load

The loading indicator doesn't show on nested pages with lazy load for the page content. I tried to use to use start() before my lazy call but it doesn't work becausen nuxt stop finish() when the page is loaded
const loadingIndicator = useLoadingIndicator()
loadingIndicator.start()

const { data: resource, pending } = await useGetResourceGallery({
resource_id: parseInt(route.params.resource_id as string),
fetch_type: 'fetch',
})
const loadingIndicator = useLoadingIndicator()
loadingIndicator.start()

const { data: resource, pending } = await useGetResourceGallery({
resource_id: parseInt(route.params.resource_id as string),
fetch_type: 'fetch',
})
how Can I do ? I need a workarround
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server