Open lomocc opened 3 days ago
I was able to open your sandbox and inspect the code, but it doesn't seem like there's any issue with the current behaviour. Right now, when passing prefetch={false}
it does not send a prefetch RSC request for the page. Instead, it just sends the regular RSC request when clicking, which is correct.
I was able to open your sandbox and inspect the code, but it doesn't seem like there's any issue with the current behaviour. Right now, when passing
prefetch={false}
it does not send a prefetch RSC request for the page. Instead, it just sends the regular RSC request when clicking, which is correct.
but, For project b
, got the Next-Router-State-Tree
parameter for project a
. I am currently experiencing a 500 error in the real project. I don't have the ability to reproduce this issue in codesandbox.
My core point is that the next/link
of project a passes the Next-Router-State-Tree
parameter of project a
, but project b
doesn't support it. prefetch=false
doesn't change it either.
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