mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
### What Only call error log in SSR renderer, instead of calling it in all RSC and SSR renderers. Fixes #67352 Close NEXT-3579 ### Why The RSC rendered generated result will be rendered by SSR renderer again, at there we can get the actual error. So when there's a RSC error happening, only logging once in SSR rendering layer is enough.
12 lines
215 B
TypeScript
12 lines
215 B
TypeScript
import { ReactNode } from 'react'
|
|
|
|
export default function Root({ children }: { children: ReactNode }) {
|
|
return (
|
|
<html>
|
|
<body>{children}</body>
|
|
</html>
|
|
)
|
|
}
|
|
|
|
export const dynamic = 'force-dynamic'
|