2023-07-19 06:55:53 +00:00
|
|
|
<script setup lang="ts">
|
|
|
|
definePageMeta({
|
2024-04-05 18:08:32 +00:00
|
|
|
layout: 'custom-async',
|
2023-07-19 06:55:53 +00:00
|
|
|
})
|
|
|
|
|
2023-08-07 22:03:40 +00:00
|
|
|
if (import.meta.client && !useNuxtApp().isHydrating) {
|
2023-07-19 06:55:53 +00:00
|
|
|
throw createError({
|
|
|
|
fatal: true,
|
2024-04-05 18:08:32 +00:00
|
|
|
message: '`useNuxtApp().isHydrating` is false by the time we run page setup',
|
2023-07-19 06:55:53 +00:00
|
|
|
})
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
Tests whether hydration is properly resolved within an async layout
|
|
|
|
</div>
|
|
|
|
</template>
|