Files
Andrew ClarkandGitHub d0dbd3ad83 [Experiment] <Link unstable_dynamicOnHover> (#77866)
This adds an unstable option to the Link component's called
`unstable_dynamicOnHover`. When set to true, the Link will initiate a
dynamic prefetch as soon as the link is hovered.

This is roughly equivalent to updating the prefetch prop to `true`
inside a mouse event handler.

Because this results in dynamic prefetching, semantically it has the
same implication as `prefetch={true}` — by the time the navigation
occurs, the target page's data may be slightly stale.
2025-04-05 20:47:41 -04:00

10 lines
212 B
TypeScript

import { LinkAccordion } from '../components/link-accordion'
export default function Page() {
return (
<LinkAccordion unstable_dynamicOnHover href="/dynamic">
Dynamic page
</LinkAccordion>
)
}