mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
1c56ef613a
Next.js's client router needs to know the pathname and query that the request was rewritten to in order to facilitate reuse of static RSC payloads generated from fallbacks. This takes the form of additional headers being sent back on the response that includes the correct rewritten pathname that later the client can take into account when generating the client route key.
12 lines
202 B
React
12 lines
202 B
React
import { Suspense } from 'react'
|
|
|
|
export default function RootLayout({ children }) {
|
|
return (
|
|
<html lang="en">
|
|
<body>
|
|
<Suspense>{children}</Suspense>
|
|
</body>
|
|
</html>
|
|
)
|
|
}
|