TanStackT
TanStack7mo ago
5 replies
moderate-tomato

Problem with navigating to same route

After updating the @tanstack/react-routerfrom version 1.120.13 to version 1.121.34 I have a problem when trying to navigate using to: '.' option in
navigate
from
useNavigate
(for Link component works the same). From what I've been able to determine, the router tries to redirect to basepath after calling navigate with to : '.'.
I found that this issue was related to that but it doesnt resolve my problem https://github.com/TanStack/router/pull/4472.
I prepare some demo to show the problem. To reproduce the issue go to Map and click on button open panel it than redirect you to the index route.
https://codesandbox.io/p/sandbox/tanstack-router-bug-example-j4qlpj
GitHub
GitHub is where people build software. More than 150 million people use GitHub to discover, fork, and contribute to over 420 million projects.
Build software better, together
Preview image
Preview image
Was this page helpful?