clerk-react-router-patterns - React Router v7 Patterns with Clerk
Provides React Router v7 patterns for Clerk authentication including loaders, actions, middleware, SSR, and organization switching.
Tags
Updated: 2026-09-14Capabilities
What this skill does
- Authenticate loaders and actions
- Protect routes with redirects
- Handle SSR user data
- Implement organization switching
- Configure clerkMiddleware and rootAuthLoader
Inputs
- React Router v7 application
- Clerk React Router SDK
- Route arguments and request context
Outputs
- Authentication status and user data
- Route redirects and HTTP responses
- Clerk authentication context
Requirements
- @clerk/react-router v3+
- React Router v7.9+
