-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Description
Describe the bug
When in a notFoundComponent, a <Link to='...'> will automatically load the page. Interestingly, if you use a button with a onClick: () => navigate('/')... Nothing happens
Your Example Website or App
https://stackblitz.com/edit/github-h4dx75?file=src%2Fmain.tsx
Steps to Reproduce the Bug or Issue
- Clink on the
Invalid LinkButton or enter an invalid link in the URL. - Hover over the go back button
- The screen goes blank
If you comment either:
defaultPreload: 'intent'ordefaultPreloadStaleTime: 0, it works as expected. As a workaround you can set the link:<Link to='/' preload={false}>...</Link>and it should work as expected.
Expected behavior
As a user, I would expect that I can navigate when I click on a link.
Screenshots or Videos
No response
Platform
- OS: Linux
- Browser: Chrome
- Version: 121.0.6167.160
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels