Skip to content

Commit f1c5d3c

Browse files
committed
adjust suspense
1 parent 7ad2dea commit f1c5d3c

File tree

3 files changed

+99
-4
lines changed

3 files changed

+99
-4
lines changed

app/(main)/layout.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { SanityLive } from "@/sanity/lib/live";
66
import { Nunito } from "next/font/google";
77
import { Inter } from "next/font/google";
88
import { draftMode } from "next/headers";
9+
import { Suspense } from 'react'
910

1011
import NextTopLoader from "nextjs-toploader";
1112
import type { SettingsQueryResult } from "@/sanity/types";
@@ -95,10 +96,12 @@ export default async function RootLayout({
9596
inter.variable,
9697
)}
9798
>
98-
<SpeedInsights />
99-
<MetaPixel />
100-
<DisableDraftMode />
101-
<VisualEditing />
99+
<Suspense>
100+
<SpeedInsights />
101+
<MetaPixel />
102+
<DisableDraftMode />
103+
<VisualEditing />
104+
</Suspense>
102105
<PlayerProvider>
103106
<ThemeProvider
104107
attribute="class"

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@
108108
"zod": "^3.24.1"
109109
},
110110
"devDependencies": {
111+
"@biomejs/biome": "1.9.4",
111112
"@eslint/eslintrc": "^3",
112113
"@tailwindcss/typography": "^0.5.16",
113114
"@types/node": "^20",

pnpm-lock.yaml

Lines changed: 91 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)