New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
duplicated layout when using document driven with multiple layouts #1722
Comments
Moving It seems like the layout defined in |
Actually we don't recommend to use the in app.vue until Vue 3 fixes a bug with Suspense and nested elements. |
I'm using latest nuxt-content with document-driven, and I just discovered I don't even have an app.vue at all! But everything seems to work OK. Is that expected? Perhaps it's just using the one from |
I actually got curious about the cause of this behavior so I took a look at the source code.. There is So, this
We can choose not to inject |
Environment
Mac
v16.16.0
3.0.0
yarn@1.22.19
Reproduction
Reproduction Link: Link
Describe the bug
NuxtLayout
component inapp.vue
nuxt.config.ts
When using layout binding as instructed here, instead of replacing the default layout with the custom layout, custom layout is put within the
<slot />
of the default layout (so two layouts showing).Additional context
Might be related to this PR from nuxt/framework.
Logs
No response
The text was updated successfully, but these errors were encountered: