Concept Flow - Protected routes with loaders
User requests protected route
Loader runs on server
Check user authentication
Return data
Render protected [Render login page
When a user visits a protected route, the loader runs first to check if the user is authenticated. If yes, it returns data and renders the protected page. If not, it redirects to login.
