New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default search params from validateSearch do not populate the URL #1184
Comments
Same thing here, any update on this? |
This link is invalid |
Raising the question. I also encountered this problem when using |
This is our biggest migration hurdle so far. Our users often share links to daily reports/metrics which aren't always opened the same day by the recipient- because the default state is omitted from the URL, there's no way to guarantee state consistency without forcing a redirect to update the search. Would love to hear if anyone has a better solution, love the type safety of this library but I'm finding myself sinking far too many hours trying to reinvent the wheel. |
Describe the bug
When using
validateSearch
, if you return a default value it becomes available via theuseSearch
hook in a component, but it does not appear in the URL.Your Example Website or App
https://stackblitz.com/edit/github-cqxxd6?file=src%2Froutes%2Fabout.tsx
Steps to Reproduce the Bug or Issue
Expected behavior
The default parameter from validateSearch is available via
useSearch
but does not show in the URL search params.Screenshots or Videos
No response
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: