mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
Fixes a mistake in the client when constructing a route tree from a partial server response. When applying the patch, we must propagate the new subtree hints all the way up to the root. This was an existing bug that I found when implementing the next PR in the stack, which relies on the subtree hint mechanism. I've split it out into its own step and confirmed the bug + fix using a regression test expressed via existing behavior. <!-- NEXT_JS_LLM_PR -->
11 lines
219 B
TypeScript
11 lines
219 B
TypeScript
import { ReactNode } from 'react'
|
|
|
|
export default function BLayout({ children }: { children: ReactNode }) {
|
|
return (
|
|
<div data-layout="b">
|
|
<div id="b-layout">B layout</div>
|
|
{children}
|
|
</div>
|
|
)
|
|
}
|