expose next/link
prefetch behavior, similar to what getImageProps
does for next/image
#73381
stefanprobst
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
i want to be able to use
next/link
's prefetch behavior (incl. the intersection observer) with components where i cannot (for a11y reasons) usenext/link
's<Link>
directly.one example would be building a menu with links using react aria components. i need to use
<MenuItem>
instead of<NextLink>
here, but still want to be able to easily applynext/link
's prefetch behavior to these navigation links.Non-Goals
No response
Background
see e.g. the discussion on framework routing support in react aria components:
Proposal
Beta Was this translation helpful? Give feedback.
All reactions