T
TanStack3w ago
national-gold

Data loading for redirection decision

Hello! Which one is the proper place for checking some data in the database and redirecting the user based on the value of the data retrieved? beforeLoad or loader? Thank you.
2 Replies
grumpy-cyan
grumpy-cyan3w ago
Authenticated Routes | TanStack Router React Docs
Authentication is an extremely common requirement for web applications. In this guide, we'll walk through how to use TanStack Router to build protected routes, and how to redirect users to login if th...
national-gold
national-goldOP3w ago
Thanks @mubrik

Did you find this page helpful?