next.js / test /development /app-dir /cache-components-dev-fallback-validation /app /partial /[top] /wrapped /layout.tsx
| import { Suspense } from 'react' | |
| export default async function Layout({ | |
| children, | |
| params, | |
| }: { | |
| children: React.ReactNode | |
| params: Promise<{ top: string }> | |
| }) { | |
| await params | |
| return <Suspense fallback={<div>Loading...</div>}>{children}</Suspense> | |
| } | |