mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
This removes the `routerBfCache` and enables it automatically when `cacheComponents` is enabled. This leverages `React.Activity` on layout segments to support restoring previously visited UI segments while preserving state.
14 lines
194 B
TypeScript
14 lines
194 B
TypeScript
export default function RootLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode
|
|
}) {
|
|
return (
|
|
<html lang="en">
|
|
<body>
|
|
<div>{children}</div>
|
|
</body>
|
|
</html>
|
|
)
|
|
}
|