Skip to content
Open
6 changes: 5 additions & 1 deletion packages/vinext/src/shims/link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,11 @@ function prefetchUrl(
const prefetchPolicyHref = rewrittenPrefetchHref ?? prefetchHref;
const autoPrefetch =
mode === "route-tree" || mode === "segment"
? { cacheForNavigation: false, prefetchShellFirst: false, shouldPrefetch: true }
? {
cacheForNavigation: mode === "segment",
prefetchShellFirst: false,
shouldPrefetch: true,
}
: mode === "auto"
? resolveAutoAppRoutePrefetch(prefetchPolicyHref)
: mode === "full-after-shell"
Expand Down
Loading