TanStack
Router
v1
v1
Libraries
Framework
Start
RC
Docs
Router
Docs
Data & State Management
Query
Docs
DB
beta
Docs
Store
alpha
Docs
AI
beta
Docs
UI & UX
Table
Docs
Form
new
Docs
Hotkeys
alpha
Docs
Performance
Virtual
Docs
Pacer
beta
Docs
Tooling
Devtools
alpha
Docs
Config
Docs
CLI
alpha
Docs
Intent
alpha
Docs
Learn
Resources
Blog
Release notes, architecture notes, and essays.
YouTube
The official TanStack channel.
Community
Channels
Discord
Community support and real-time discussion.
GitHub
Source, issues, discussions, and releases.
People & Work
Maintainers
Meet the people maintaining the stack.
Contributors
Core, library, and community contributors.
Showcase
Products and teams building with TanStack.
Tools
Tools
Builder
Alpha
Generate TanStack app starters.
Stats
NPM and ecosystem usage data.
Merch
Recent Products
All Merch
Browse all TanStack apparel, accessories, and stickers.
Support
Support
Support Overview
Find the right support path.
Partners
Companies supporting TanStack.
OSS Sponsors
Sponsors keeping TanStack open source.
Enterprise Support
Private consulting and expert support.
Contact
Get in touch with the TanStack team.
About
Ethos
How we think about open source and products.
Tenets
The values that shape TanStack libraries.
Brand Guide
Logos, colors, and brand usage.
Search
AI
Ask AI
Log In
Log In
Libraries
All Libraries
Browse the full set of public packages.
Framework
Start
RC
Docs
Router
Docs
Data & State Management
Query
Docs
DB
beta
Docs
Store
alpha
Docs
AI
beta
Docs
UI & UX
Table
Docs
Form
new
Docs
Hotkeys
alpha
Docs
Performance
Virtual
Docs
Pacer
beta
Docs
Tooling
Devtools
alpha
Docs
Config
Docs
CLI
alpha
Docs
Intent
alpha
Docs
Learn
Resources
Blog
Release notes, architecture notes, and essays.
YouTube
The official TanStack channel.
Professional Workshops
Community
Channels
Discord
Community support and real-time discussion.
GitHub
Source, issues, discussions, and releases.
People & Work
Maintainers
Meet the people maintaining the stack.
Contributors
Core, library, and community contributors.
Showcase
Products and teams building with TanStack.
Tools
Tools
Builder
Alpha
Generate TanStack app starters.
Stats
NPM and ecosystem usage data.
Merch
Recent Products
All Merch
Browse all TanStack apparel, accessories, and stickers.
Support
Support
Support Overview
Find the right support path.
Partners
Companies supporting TanStack.
OSS Sponsors
Sponsors keeping TanStack open source.
Enterprise Support
Private consulting and expert support.
Contact
Get in touch with the TanStack team.
About
Ethos
How we think about open source and products.
Tenets
The values that shape TanStack libraries.
Brand Guide
Logos, colors, and brand usage.
Partnership Inquiry
Docs
React
Latest
Search...
K
API
Router
File-Based Routing
Menu
Menu
Home
Get Started
Guides
API
Examples
Community
React
Latest
API
Router
File-Based Routing
AI/LLM: This documentation page is available in plain markdown format at/router/latest/docs/api/router.md
API
Router API
Copy page
Functions
createFileRoute
createLazyFileRoute
createRootRoute
createRootRouteWithContext
createRoute
createLazyRoute
createRouteMask
createRouter
defer
getRouteApi
isNotFound
isRedirect
lazyRouteComponent
linkOptions
notFound
redirect
retainSearchParams
stripSearchParams
Components
<Await>
<CatchBoundary>
<CatchNotFound>
<ClientOnly>
<DefaultGlobalNotFound>
<ErrorComponent>
<Link>
<MatchRoute>
<Navigate>
<NotFoundComponent>
<Outlet>
Hooks
useAwaited
useBlocker
useCanGoBack
useChildMatches
useLinkProps
useLoaderData
useLoaderDeps
useLocation
useMatch
useMatchRoute
useMatches
useNavigate
useParentMatches
useParams
useRouteContext
useRouter
useRouterState
useSearch
Types
ActiveLinkOptions Type
AsyncRouteComponent Type
HistoryState Interface
LinkOptions Type
LinkProps Type
MatchRouteOptions Type
NavigateOptions Type
NotFoundError Type
ParsedHistoryState Type
ParsedLocation Type
Redirect Type
Register Type
Route Type
RouteApi Type
RouteMask Type
RouteMatch Type
RouteOptions Type
Router Type
RouterEvents Type
RouterOptions Type
RouterState Type
ToMaskOptions Type
ToOptions Type
UseMatchRouteOptions Type
ViewTransitionOptions Type
⚠️ Deprecated
FileRoute Class
Route Class
Router Class
RouteApi Class
RootRoute Class
NotFoundRoute Class
rootRouteWithContext Function
Edit on GitHub
Next
File-Based Routing
Blog
@Tan_Stack on X.com
@TannerLinsley on X.com
GitHub
YouTube
Nozzle.io - Keyword Rank Tracker
Ethos
Tenets
Privacy Policy
Terms of Service
© 2026 TanStack LLC
Partners
Become a Partner
Gold
Silver
Bronze