2023-07-31 08:51:09 +00:00
|
|
|
<script setup lang="ts">
|
|
|
|
const page = ref<HTMLDivElement | undefined>()
|
|
|
|
const mountedHTML = ref()
|
|
|
|
onMounted(() => {
|
|
|
|
mountedHTML.value = page.value?.innerHTML
|
|
|
|
})
|
|
|
|
|
|
|
|
const lazy = useRoute().query.lazy === 'true'
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2023-11-09 17:01:13 +00:00
|
|
|
<div
|
|
|
|
ref="page"
|
|
|
|
class="end-page"
|
|
|
|
>
|
2023-07-31 08:51:09 +00:00
|
|
|
End page
|
|
|
|
<pre>{{ mountedHTML }}</pre>
|
|
|
|
<section id="fallback">
|
2023-11-09 17:01:13 +00:00
|
|
|
<AsyncServerComponent
|
|
|
|
:lazy="lazy"
|
|
|
|
:count="42"
|
|
|
|
>
|
2023-07-31 08:51:09 +00:00
|
|
|
<template #fallback>
|
|
|
|
Loading server component
|
|
|
|
</template>
|
|
|
|
</AsyncServerComponent>
|
|
|
|
</section>
|
|
|
|
<section id="no-fallback">
|
2023-11-09 17:01:13 +00:00
|
|
|
<AsyncServerComponent
|
|
|
|
:lazy="lazy"
|
|
|
|
:count="42"
|
|
|
|
/>
|
2023-07-31 08:51:09 +00:00
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
</template>
|