1
0
mirror of https://github.com/nuxt/nuxt.git synced 2025-03-25 18:37:33 +00:00
Nuxt/test/fixtures/basic/components/DelayedComponent.vue
Michael Brevard 281a931a0a
feat(nuxt): delayed/lazy hydration support ()
Co-authored-by: Daniel Roe <daniel@roe.dev>
2025-02-28 23:19:17 +00:00

17 lines
304 B
Vue

<template>
<div>
This {{ mounted ? 'is' : 'is not' }} mounted.
</div>
</template>
<script setup lang="ts">
const mounted = ref(false)
onMounted(() => { mounted.value = true })
const props = defineProps<{ logHydration?: true }>()
if (props.logHydration) {
console.log('hydrated')
}
</script>