mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
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)
13 lines
250 B
TypeScript
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>
|
|
</>
|
|
)
|
|
}
|