mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
|
History
|
||
|---|---|---|
| .. | ||
| .vscode | ||
| src | ||
| .gitignore | ||
| index.html | ||
| package.json | ||
| postcss.config.mjs | ||
| README.md | ||
| tsconfig.json | ||
| vite.config.js | ||
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