<Link prefetch={false}> not work as expected #67375
Labels
bug
Issue was opened via the bug report template.
Navigation
Related to Next.js linking (e.g., <Link>) and navigation.
Link to the code that reproduces this issue
https://codesandbox.io/p/devbox/xenodochial-link-5g95h4
To Reproduce
A
project, add component:<Link prefeth={false} target="_selft" href="https://samedomain.com/path-b" />
window.addEventListener("beforeunload", function() { debugger; }, false)
network
tab, you can see a incorrect prefetch before page refreshB
project, the tree data is also incorrect.Current vs. Expected behavior
should disable prefetch. which called
navigateReducer -> getOrCreatePrefetchCacheEntry -> createLazyPrefetchEntry -> fetchServerResponse
Provide environment information
Which area(s) are affected? (Select all that apply)
Navigation
Which stage(s) are affected? (Select all that apply)
next start (local), Vercel (Deployed), Other (Deployed)
Additional context
No response
The text was updated successfully, but these errors were encountered: