mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 16:43:55 +00:00
19 lines
372 B
Vue
19 lines
372 B
Vue
<script setup lang="ts">
|
|
definePageMeta({
|
|
layout: 'custom-async'
|
|
})
|
|
|
|
if (process.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>
|