2023-03-20 21:47:06 +00:00
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
This is a .server (20ms) async component
|
|
|
|
{{ data }}
|
|
|
|
<div id="async-server-component-count">
|
|
|
|
{{ count }}
|
|
|
|
</div>
|
2023-08-10 19:01:09 +00:00
|
|
|
|
2023-08-15 15:21:50 +00:00
|
|
|
<SugarCounter :multiplier="1" />
|
2023-08-19 18:59:47 +00:00
|
|
|
<div class="interactive-component-wrapper" style="border: solid 1px red;">
|
2023-08-10 19:01:09 +00:00
|
|
|
The component bellow is not a slot but declared as interactive
|
2023-08-15 15:21:50 +00:00
|
|
|
|
|
|
|
<SugarCounter nuxt-client :multiplier="1" />
|
2023-08-10 19:01:09 +00:00
|
|
|
</div>
|
2023-08-15 15:21:50 +00:00
|
|
|
|
2023-05-15 22:43:53 +00:00
|
|
|
<slot />
|
2023-03-20 21:47:06 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
defineProps<{
|
|
|
|
count: number
|
|
|
|
}>()
|
|
|
|
|
|
|
|
const { data } = await useFetch('/api/very-long-request')
|
|
|
|
</script>
|