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
Following the documentation I was able to setup a dynamic route, load some data, and if something doesn't exist, display not found.
This works as expected when navigating throughout the app (using the router). but once I refresh on a known-broken item, the default not found component does not render but the error component does.
Navigate to each tab on render. you will see that unknown shows as not found.
now, in the address bar (above the render,) append /unknown/idthe application will reload and show the error component.
Expected behavior
I would expect not found to show once the application loads
Screenshots or Videos
No response
Platform
latest macOS
Brave/Chrome
tanstack router v. 1.26.11
Additional context
If an activity/id exists and a user bookmarks/saves the url, if they go back and it no longer exists, i would expect them to see the appropriate not found message, not an error.
The text was updated successfully, but these errors were encountered:
Describe the bug
Following the documentation I was able to setup a dynamic route, load some data, and if something doesn't exist, display not found.
This works as expected when navigating throughout the app (using the router). but once I refresh on a known-broken item, the default not found component does not render but the error component does.
Your Example Website or App
https://stackblitz.com/edit/github-3cnvav?file=src%2Froutes%2F__root.tsx,src%2Froutes%2F%24type.%24id.tsx
Steps to Reproduce the Bug or Issue
Navigate to each tab on render. you will see that unknown shows as not found.
now, in the address bar (above the render,) append
/unknown/id
the application will reload and show the error component.Expected behavior
I would expect not found to show once the application loads
Screenshots or Videos
No response
Platform
Additional context
If an activity/id exists and a user bookmarks/saves the url, if they go back and it no longer exists, i would expect them to see the appropriate not found message, not an error.
The text was updated successfully, but these errors were encountered: