TanStackT
TanStack15mo ago
32 replies
verbal-lime

Route not active when using `redirect()` in `beforeLoad`

I'm using redirect in beforeLoad in my index.tsx route to navigate to a different route. This works but the activeProps to not get applied to that route. See the minimal repro below:
https://stackblitz.com/edit/tanstack-router-redirect?file=src%2Froutes%2Findex.tsx
StackBlitzOwen Vey
When using redirect in beforeLoad, it doesn't cause the route navigated to to be active.
Redirect does not cause route to be active - StackBlitz
Was this page helpful?