What problem does it solve?
This Skill streamlines the implementation of client-side and universal routing in SolidJS applications, making navigation and data management seamless.
Core Features & Use Cases
- Routing Setup: Declare nested and dynamic routes with
<Router> and <Route>, supporting route parameters, wildcards, and route groups.
- Navigation & Redirects: Use
<A>, useNavigate(), and <Navigate> for programmatic and declarative navigation, including route guards and protected routes.
- Data Handling: Employ
query, createAsync, and action APIs for efficient data fetching, caching, mutations, and revalidation, suitable for SPAs and SSR.
- Preloading & Lazy Loading: Preload routes on hover or focus, and load routes lazily with
lazy(), enhancing performance and user experience.
Quick Start
Wrap your app with <Router> and define <Route> components for your pages, then navigate using <A> or imperative functions to build a smooth, interactive UI.