Files
Josh Story c24c4ac3f5 [dynamicIO] Model invalid dynamic on empty shells (#77270)
Dynamic is disallowed unless a Suspense boundary is above it. This now
applies to metadaata (though this shouldn't matter because it now
streams) and viewport. To allow for fully dynamic routes including
viewport you must put a Suspense boundary around your root layout.
2025-04-14 13:45:14 +02:00

16 lines
238 B
TypeScript

import { Suspense } from 'react'
export default function RootLayout({
children,
}: {
children: React.ReactNode
}) {
return (
<Suspense>
<html lang="en">
<body>{children}</body>
</html>
</Suspense>
)
}