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