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
I have a route that uses custom param parsing with Valibot. When I use the parsed params in a loader for a page under that route, the first page visit works as expected. However, if I navigate back from that page and return with different params, the loader seems to get "stuck" with the parsed params from my first visit. Reloading that page updates the loader to re-run with the expected params, but navigating away and back will cause it to get stuck again.
It seems like this is a loader-specific issue. If I remove the loader, I no longer see this behavior (the params on the page stay in sync with the URL as I would expect). It almost feels like I'm missing loaderDeps, but that only has access to the search params, not the route params.
Which project does this relate to?
Start
Describe the bug
I have a route that uses custom param parsing with Valibot. When I use the parsed params in a loader for a page under that route, the first page visit works as expected. However, if I navigate back from that page and return with different params, the loader seems to get "stuck" with the parsed params from my first visit. Reloading that page updates the loader to re-run with the expected params, but navigating away and back will cause it to get stuck again.
It seems like this is a loader-specific issue. If I remove the loader, I no longer see this behavior (the params on the page stay in sync with the URL as I would expect). It almost feels like I'm missing
loaderDeps, but that only has access to the search params, not the route params.Complete minimal reproducer
https://github.com/njGroters/tanstack-param-parsing-reproduction
Steps to Reproduce the Bug
Expected behavior
I would expect the parsed params to continue to match the URL state and be used in the loader on subsequent page visits.
Screenshots or Videos
Screen.Recording.2026-08-05.at.12.07.34.PM.mov
Platform
^7.3.1^1.9.11Additional context
No response