New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Page Reload Behavior with Data Prefetching Using Tanstack Router #1162
Comments
can you please try with the latest version (v1.15.22)? |
The issue persists with the new version 1.15.22. We will discuss with the team when we can allocate time to provide a demo application for demonstration. However, I believe if there is any public example of an application structure using Tanstack Router in conjunction with Tanstack Query, the behavior would be identical. 😢 |
Can you find out which (if any) router version did not have this issue? Can you reproduce the issue in one of the router+query examples. e.g. https://tanstack.com/router/v1/docs/framework/react/examples/basic-react-query-file-based ? |
@RomSribn is this problem since persisting in the latest version? Please respond to Manuel's question to this can be checked on. |
Just had a chat with @RomSribn and the issue is still occurring. We'll work on creating a reproduction as soon as we can. Thank you for your patience. |
@zackarychapple @RomSribn any update on your side? or a workable reproduction? Sidenote; what version of TSR are y'all on now?... and please create your reproduction using latest. |
Thank you for checking in. We are currently in the process of gathering all necessary details and setting up the environment to produce a workable reproduction. We understand the urgency of resolving this issue and are prioritizing it accordingly. Regarding TSR, we are using latest, as specified in the post. We will make sure to use the latest version for our reproduction to ensure compatibility and accuracy. I will keep you updated on our progress and will reach out if we need any further information or assistance from your side. |
Describe the bug
We have encountered an issue with data prefetching in our application utilizing @tanstack/react-query version 5.8.7 and @tanstack/react-router version ^1.0.5. The core of the problem lies in the application’s behavior when employing the defaultPreload: 'intent' flag to enable link hover prefetching. Specifically, upon prefetching data on hover, the entire page appears to reload, affecting even those components that are unrelated to the prefetching process, essentially reverting them to their initial state.
Your Example Website or App
Steps to Reproduce the Bug or Issue
Expected behavior
Data prefetching on hover should only refresh the data and components directly associated with the preloaded route without causing a full page reload or affecting unrelated components.
Screenshots or Videos
example.mov
Platform
Additional context
We have attached a video demonstrating the described behavior for a clearer understanding of the issue.
The text was updated successfully, but these errors were encountered: