Nuxt/test/fixtures/basic/pages/suspense.vue

23 lines
616 B
Vue
Raw Normal View History

<script setup>
definePageMeta({
// Nested <Suspense> + <Transition> is still buggy
pageTransition: false,
layoutTransition: false
})
const links = ['sync', 'async'].flatMap(parent => [1, 2].flatMap(p => ['sync', 'async'].flatMap(child => [1, 2].map(c => `/suspense/${parent}-${p}/${child}-${c}/`))))
</script>
<template>
<div>
This exists to test synchronous transitions between nested Suspense components.
<hr>
<NuxtLink v-for="link in links" :key="link" :to="link" style="display: block;">
{{ link }}
</NuxtLink>
<hr>
<div>
<NuxtPage />
</div>
</div>
</template>