mirror of
https://github.com/nuxt/nuxt.git
synced 2025-03-26 02:47:34 +00:00
17 lines
304 B
Vue
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>
|