Nuxt/test/fixtures/basic/layouts/custom-async.vue

15 lines
239 B
Vue
Raw Normal View History

<template>
<div>
Custom Async Layout:
<slot />
<ComponentWithRef />
</div>
</template>
<script setup>
await Promise.resolve()
if (import.meta.client) {
console.log('isHydrating: ' + useNuxtApp().isHydrating)
}
</script>