[Vuejs]-Suspense not working with layouts in vue 3

1👍

Did you try to add timeout on Suspense ?

<RouterView v-slot="{ Component }">
  <Suspense>
    <component :is="layout">
      <Suspense timeout="0">
        <template #default>
          <component :is="Component" />
        </template>
        <template #fallback>
           <load-spinner></load-spinner>
        </template>
      </Suspense>
    </component>
  </Suspense>
</RouterView>

Leave a comment