Closed dannytlake closed 1 month ago
@dannytlake Thank you for submitting an issue!
Our team is already looking to fix this issue
Thank you @samcx + @ztanner !
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Link to the code that reproduces this issue
https://github.com/dannytlake/next-prefetch-bug-current-route
To Reproduce
Start in production mode, view network tab.
pnpm build && pnpm start
page2_rsc
- this should not be occurringCurrent vs. Expected behavior
Current: The Next/Link component is prefetching the current page being viewed, unnecessarily consuming network + cpu resources
Expected: The Next/Link component should not prefetch links pointing to the current page being viewed.
Provide environment information
Which area(s) are affected? (Select all that apply)
Navigation, Performance
Which stage(s) are affected? (Select all that apply)
next start (local), Vercel (Deployed)
Additional context
This bug also occurs in next@14 (v14.2.13 at time of writing)