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>
|
2023-12-19 12:21:29 +00:00
|
|
|
|
|
|
|
<ServerWithClient :lazy="lazy" />
|
2023-07-31 08:51:09 +00:00
|
|
|
</div>
|
|
|
|
</template>
|