Files
Janka UrygaandGitHub 5b4d844a04 test: allow-runtime breaks Link's Server component child detection (#95596)
See NAR-876. We discovered this problem in #95384, when removing the
Early/Late stage split, but it turns out that this was a preexisting
race that occurs for runtime-prefetchable segments the problem existed
before for runtime (which currently render in EarlyStatic, a task
earlier than non-runtime-prefetchable segments)

adds failing tests for `passHref` with allow-runtime (i.e. when the
segment runs early), and passing tests for it in the dynamic stage (when
the passHref is gated behind dynamic, which seems to delay it long
enough for the debug channel to initialize)
2026-07-10 15:16:41 +02:00

13 lines
250 B
TypeScript

import Link from 'next/link'
import CustomComponent from '../_client'
export default function Page() {
return (
<>
<Link href="/about" legacyBehavior passHref>
<CustomComponent>About</CustomComponent>
</Link>
</>
)
}