-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
has workaroundA solution has been provided.A solution has been provided.
Description
Describe the bug
Links to a route will trigger any navigation inside the beforeLoad handler, when preloading that route. This can be reliably resolved by disabling preloading.
Your Example Website or App
https://stackblitz.com/edit/tanstack-router-zhwi16
Steps to Reproduce the Bug or Issue
Hover "about" link. It will navigate to "/third" without you clicking on the link
(about is a route with a beforeLoad which navigates to "/third". )
Expected behavior
preloading does not trigger navigation from the preloaded page
Screenshots or Videos
Screen.Recording.2024-03-27.at.10.52.38.AM.mov
Platform
- OS: [e.g. macOS, Windows, Linux]
- Browser: [e.g. Chrome, Safari, Firefox]
- Version: [e.g. 91.1]
Additional context
Similar sounding previous issues, probably unrelated:
#1201
#1220
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
has workaroundA solution has been provided.A solution has been provided.