What problem does it solve?
Provides Solid-specific bindings for TanStack Router so SolidJS apps can use type-safe routing APIs, reactive Accessor-returning hooks, and integrated head management without fighting React-centric patterns or losing type inference.
Core Features & Use Cases
- RouterProvider and router instance registration for full type safety across links, navigation, and loaders.
- Accessor-returning hooks (useRouterState, useParams, useSearch, useLoaderData, useMatches) and components (Link, Navigate, Outlet, CatchBoundary, Await) adapted to Solid reactivity.
- Vite plugin support for file-based routing, client-first loaders, Suspense/Await patterns, and @solidjs/meta head integration; ideal for migrating from React or building new Solid SPAs that require strong type inference and predictable loader semantics.
Quick Start
Install @tanstack/solid-router and the router Vite plugin, set the plugin target to solid, generate a routeTree, create a router, register its type module, and wrap your app in RouterProvider while remembering to call Accessor functions to read reactive values.