Open History to see the last commit
TanStack Router - React Query Example#
An example demonstrating integration between TanStack Router and TanStack Query.
Start a new project based on this example#
To start a new project based on this example, run:
npx gitpick TanStack/router/tree/main/examples/react/basic-react-query basic-react-query
Getting Started#
Install dependencies:
pnpm install
Start the development server:
pnpm dev
Build#
Build for production:
pnpm build
About This Example#
This example demonstrates:
- Integrating TanStack Query with TanStack Router
- Data fetching with queries
- Route-level data loading
- Cache management
- Prefetching data on route navigation