#prefetch false not working
1 messages · Page 1 of 1 (latest)
Hi @robust arch. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
There are several issues reported on GitHub regarding the prefetch={false} attribute in the Link component of Next.js not working as expected.
-
In one issue (https://github.com/vercel/next.js/issues/55217), users reported that when using route groups with
Linkcomponent andprefetch={false}, clicking the link causes a hard page refresh. Some users suggested using the<a>tag instead of<Link>, while others mentioned that the issue started occurring after adding internationalization. -
Another issue (https://github.com/vercel/next.js/issues/59529) was reported where the default value of the
prefetchproperty in theLinkcomponent was not working as expected. The user expected the prefetch to work even when theprefetchproperty was not specified in theLinkcomponent, as per the Next.js documentation. However, it was pointed out that the behavior was changed as per this PR (https://github.com/vercel/next.js/pull/48383). -
In a third issue (https://github.com/vercel/next.js/issues/50412), it was reported that the
Linkcomponent is not prefetching on hover ifprefetch={false}is given, contrary to the documentation. -
In a fourth issue (https://github.com/vercel/next.js/issues/43118), a user reported that the
Linkcomponent withprefetch={false}was causing a full page refresh.