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