Replies: 1 comment
-
I've come across the same issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
First of all, I'd like to thank you for your efforts in developing this awesome library.
While working on masked routes I've encountered a little problem. When a route is masked we are losing the ability to commit search changes.
Checking the source code seems like that this behaviour is intentional: https://github.com/TanStack/router/blob/main/packages/react-router/src/router.ts#L886
However, I've noticed an issue regarding state management in URLs. Specifically, if the route includes a state within the URL, changes are not appropriately reflected when the page is reloaded or when the link is shared
This leads me to a question: does it make sense to give the user the ability to set searchParams in a masked route?
If you guys agree, I can work on a PR.
Little screenshot to describe desired result.
Beta Was this translation helpful? Give feedback.
All reactions