You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using <Link to="" prefetch="intent">, prefetch will fetch the loader from network, while navigating to that page will correctly only call clientLoader.
When adding a clientLoader to existing route I would expect that loader _data request will never trigger again unless I explicitly call serverLoader, even if I forget to remove prefetch from Link elements
The text was updated successfully, but these errors were encountered:
We just published version 2.10.0-pre.0 which involves this issue. If you'd like to take it for a test run please try it out and let us know what you think!
Reproduction
https://stackblitz.com/edit/remix-run-remix-s2qdww
Hover on link to 'Other', in network devtools you can see a request for loader, and server log shows that loader was called.
System Info
Used Package Manager
npm
Expected Behavior
When using
<Link to="" prefetch="intent">
, prefetch will fetch theloader
from network, while navigating to that page will correctly only callclientLoader
.In case of using clientLoader as https://remix.run/docs/en/main/guides/client-data#skip-the-hop, that caused double network requests and result from
loader
is discarded.Actual Behavior
Either call clientLoader, or no loader at all.
When adding a clientLoader to existing route I would expect that loader _data request will never trigger again unless I explicitly call serverLoader, even if I forget to remove prefetch from Link elements
The text was updated successfully, but these errors were encountered: