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
We have an app that relies on search params heavily and if they get cleared at any point then it's a dead end for the user :/ The only workaround for now is to validate params manually in loaders, but then the type-safety is all messed up.
Which project does this relate to?
Router
Describe the bug
If a route has both a
validateSearch
and abeforeLoad
that redirects:When landing on such page with an invalid search, the
search
object forwarded through the redirection is an empty object.Your Example Website or App
https://stackblitz.com/edit/tanstack-router-yhzqerey?file=src%2Froutes%2Fabout.tsx
Steps to Reproduce the Bug or Issue
/
homepage on the stackblitz repro aboveExpected behavior
I would have expected either:
errorComponent
)search
untouchedBut instead, we're redirected correctly, but the search becomes an empty object. There is no indication of an error:
errorComponent
gets mountedonError
callback gets calledScreenshots or Videos
No response
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: