TanStackT
TanStack2y ago
5 replies
skinny-azure

Wondering how to setup this structure via Directory routes?

Say I got these routes:
/
/auth/login
/whatever

I've got a
beforeLoad
checking my session on
__root.tsx
which is fine and re-directs to /auth/login. But /auth/login also has to wait on the
beforeLoad
from root so it won't render (it triggers a warning actually: "Tried to render a redirected route match! This is a weird circumstance, please file an issue!".

Wondering how you would (if you can) implement it?
Was this page helpful?