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•3w 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-goldOP•3w ago
Thanks @mubrik