Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
fix(nuxt3): fix layout suspense loading (#3670)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored Mar 15, 2022
1 parent 505acb8 commit 3e0a3ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nuxt3/src/core/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export const layoutTemplate: NuxtTemplate = {
filename: 'layouts.mjs',
getContents ({ app }) {
const layoutsObject = genObjectFromRawEntries(Object.values(app.layouts).map(({ name, file }) => {
return [name, `defineAsyncComponent({ suspensible: false, loader: ${genDynamicImport(file)} })`]
return [name, `defineAsyncComponent(${genDynamicImport(file)})`]
}))
return [
'import { defineAsyncComponent } from \'vue\'',
Expand Down

0 comments on commit 3e0a3ed

Please sign in to comment.