TanStackT
TanStack13mo ago
2 replies
brilliant-lime

Should search parameter changes trigger route loader reloads when not specified in loaderDeps?

Hi,
I'm using URL search parameters to manage UI state that doesn't affect route loaders or other routing-related functionality. However, I've noticed that whenever a search parameter changes, the entire route tree refreshes and reloads.
I expected the route to reload only when its specified loaderDeps change.
Is this the intended behavior?

Unit tests for reproduction https://github.com/TanStack/router/pull/3160
Was this page helpful?