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
If you activate the touch device (open dev tools in chrome and click on toggle device toolbar) and click on the <Link> button a warning will be logged in the console.
Error: Invariant failed: Could not find match for from: /about
....
Error preloading route! ☝️
I stumbled upon this while checking responsiveness viewports with chrome browser. I am guessing there is some viewport logic somewhere that drops the window location for some reason. I was unable to reproduce this in Safari.
When I spin up the start-basic on Chrome I can reproduce the error
The Stackblitz uses a virtual machine to spin up on Safari so there is no Error: Invariant failed: Could not find match for from: /about since it's Safari
In conclusion, this is a Chrome browser issue that does not place nice with tanstack in the mobile device view
I have tried setting the defaultPreload: 'viewport' thinking that would clear the error but to no avail.
Which project does this relate to?
Router
Describe the bug
If you activate the touch device (open dev tools in chrome and click on toggle device toolbar) and click on the
<Link>
button a warning will be logged in the console.Your Example Website or App
https://stackblitz.com/github/tanstack/router/tree/main/examples/react/quickstart-file-based?file=src%2Froutes%2F__root.tsx
Steps to Reproduce the Bug or Issue
Home
orAbout
button;Expected behavior
My expectation is that there is no warning in the console.
Screenshots or Videos
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: