Files
Andrew ClarkandGitHub 683a318d79 Omit params to from client segments (#84883)
If a layout or page is marked with "use client", we do not need to pass
any runtime params from the server; the client can parse them from the
URL, or (in the case of a rewrite) from the x-next-rewritten-path and
x-next-rewritten-query headers. This means the client can treat the
segment as fully static, and no dynamic request is necessary upon
navigation.
2025-10-21 03:33:54 -04:00

25 lines
574 B
TypeScript

import { LinkAccordion } from '../components/link-accordion'
export default function Page() {
return (
<>
<ul>
<li>
<LinkAccordion href="/clothing/1">/clothing/1</LinkAccordion>
</li>
<li>
<LinkAccordion href="/clothing/2">/clothing/2</LinkAccordion>
</li>
<li>
<LinkAccordion href="/shoes/3">/shoes/3</LinkAccordion>
</li>
<li>
<LinkAccordion href="/shoes/4?foo=bar">
/shoes/4?foo=bar
</LinkAccordion>
</li>
</ul>
</>
)
}