mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
Distinguish an absent postponed state from an empty one so cold RDC resume requests perform a full dynamic RSC render instead of being rejected or treated as revalidation.
12 lines
241 B
TypeScript
12 lines
241 B
TypeScript
import { ReactNode, Suspense } from 'react'
|
|
|
|
export default function Root({ children }: { children: ReactNode }) {
|
|
return (
|
|
<html>
|
|
<body>
|
|
<Suspense fallback="loading">{children}</Suspense>
|
|
</body>
|
|
</html>
|
|
)
|
|
}
|