- I navigate via a
<Link>to the/aboutpage. - The component of the
/aboutpage has auseEffectwhich executesnavigatefunction. - The
navigateonly applies anidquery param, not more. - Expect: I would expect the final path to be
/about?id=1234 - Actual: The router navigates back to the home route
/I'm coming from and applies theid=1234query param there instead.
I created a repo with a reproduction and some additional notes in the README.
Reproduction: https://github.com/lukaskoeller/tanstack-react-router-useEffect-navigate-reproduction
I'm not sure if it's something I do wrong or rather a library bug, that's why I'm asking here first. Anybody that can help?