mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
This takes the `layerAssets` property from the previous PR and actually renders it, replacing the previous style handling. This ensures that when multiple page segments are rendered on screen, all of their associated CSS files are loaded. The existing `findHeadInCache` method only ever returns a single head node, which means it’d miss stylesheets. Fixes #59308 Fixes #63465
15 lines
220 B
TypeScript
15 lines
220 B
TypeScript
import Link from 'next/link'
|
|
|
|
export const metadata = {
|
|
title: 'Nested Page',
|
|
}
|
|
|
|
export default function Page() {
|
|
return (
|
|
<div className="sub">
|
|
<p>Sub</p>
|
|
<Link href="/">Home</Link>
|
|
</div>
|
|
)
|
|
}
|