mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 21:55:11 +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>
|