mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-18 18:27:13 +00:00
19 lines
316 B
Vue
19 lines
316 B
Vue
<template>
|
|
<div>
|
|
This is a .server (20ms) async component
|
|
{{ data }}
|
|
<div id="async-server-component-count">
|
|
{{ count }}
|
|
</div>
|
|
<slot />
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
defineProps<{
|
|
count: number
|
|
}>()
|
|
|
|
const { data } = await useFetch('/api/very-long-request')
|
|
</script>
|