Handling hydration mismatch with document driven mode due to layout front matter #1930
-
I have the following file structure:
In <template>
<div>
<!-- This is causing a hydration mismatch -->
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</div>
</template> and in
My question is, I'm trying to make a normal site and there is a homepage and about page. But the link to the blog should be handled by nuxt content and I have documentDriven mode turned on. This is causing an error to be thrown due to a hydration mismatch when I am on the I want nuxt documentDriven mode to take over the content directory but then use nuxt as usual for the rest of the pages that are not a blog. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
did you find a fix for this issue? |
Beta Was this translation helpful? Give feedback.
-
@dbzx10299 @skngetich you can fix this with defining a Layout components:
<template>
<slot />
</template>
<template>
<Layout>
<NuxtPage />
</Layout>
</template> |
Beta Was this translation helpful? Give feedback.
@dbzx10299 @skngetich you can fix this with defining a Layout components:
components/Layout.vue
app.vue