Nuxt/test/fixtures/basic/pages/client-only-page/normal.vue

21 lines
461 B
Vue
Raw Permalink Normal View History

2024-03-06 14:38:39 +00:00
<script setup lang="ts">
const renderedOnServer = useState(() => import.meta.server)
definePageMeta({
// Disable page transition for this page to avoid having multiple time the same page during transition
pageTransition: false,
layoutTransition: false,
})
2024-03-06 14:38:39 +00:00
</script>
<template>
<div>
<NuxtLink to="/client-only-page">
to client only page
</NuxtLink>
<p id="server-rendered">
{{ renderedOnServer }}
</p>
</div>
</template>