Nuxt/test/fixtures/basic/pages/hydration/layout.vue

19 lines
376 B
Vue
Raw Permalink Normal View History

<script setup lang="ts">
definePageMeta({
layout: 'custom-async'
})
if (import.meta.client && !useNuxtApp().isHydrating) {
throw createError({
fatal: true,
message: '`useNuxtApp().isHydrating` is false by the time we run page setup'
})
}
</script>
<template>
<div>
Tests whether hydration is properly resolved within an async layout
</div>
</template>