Nuxt/test/fixtures/basic/components/AsyncServerComponent.server.vue

19 lines
316 B
Vue
Raw Permalink Normal View History

<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>