Link prefetch on 13.4.4 works fine, in latest 13.5.3 not work
Unanswered
Fire ant posted this in #help-forum
Fire antOP
I wonder why it does not work? My code is all same, nothing changed. I only change the nextjs version.
In 13.4.4 only using
it's working, when hovering to link it's prefetch the data in network tab, but when using 13.5.X or latest version it's not working? Using
In 13.4.4 only using
<Link href={url}>it's working, when hovering to link it's prefetch the data in network tab, but when using 13.5.X or latest version it's not working? Using
<Link href={url} prefetch={true}> with prefetch to true and false also not work.10 Replies
Prefetching is only done in production and is true by default
So test it in production first. You also dont need to explicitly pass the
prefetch parameter.You can test using
npm run build && npm start command@Clown Prefetching is only done in production and is true by default
Fire antOP
I tested my code starting from version 13.4.8 and noticed that prefetch stopped working when hovering over a link. However, version 13.4.7 worked fine, even when tested locally. The issue began with the release of 13.4.8.
Did you test it in production?
Also btw prefetch doesnt happen on hover. It happens when Link becomes visible
@Clown Did you test it in production?
Fire antOP
it works in prod, im just curious why 13.4.7 in local it prefetch the link while im hovering to it and why in upper version its not
Because its not supposed to
It was probably fixed in the newer versions
@Fire ant did supreme help fix your issue/ is it solved now?