Properties
Name
Type
Description
shouldPrefetch
booltrue activates prefetching the target page when the link becomes visible in the viewport.to
stringFrom react-router-dom Link. The absolute path to the target page of the link. Uses the
to prop from the react-router-dom Link.Example (Basic usage)
<Link shouldPrefetch={true} to="/about/">About Us</Link>
Properties
Name
Type
Default
Description
[prefetchType]
boolfalseDeprecated. Use
shouldPrefetch instead.[shouldPrefetch]
boolfalseDetermine if the link should be prefetched using
IntersectionObserver.Source Code: pwa-studio/packages/venia-ui/lib/components/Link/link.js