Skip to content
Source
Sign inSign up
TanStack/router
Open History to see the last commit

README.md

46 lines816 Bytes

1# TanStack Router - React Query Example
2​
3An example demonstrating integration between TanStack Router and TanStack Query.
4​
5- [TanStack Router Docs](https://tanstack.com/router)
6- [TanStack Query Docs](https://tanstack.com/query)
7​
8## Start a new project based on this example
9​
10To start a new project based on this example, run:
11​
12```sh
13npx gitpick TanStack/router/tree/main/examples/react/basic-react-query basic-react-query
14```
15​
16## Getting Started
17​
18Install dependencies:
19​
20```sh
21pnpm install
22```
23​
24Start the development server:
25​
26```sh
27pnpm dev
28```
29​
30## Build
31​
32Build for production:
33​
34```sh
35pnpm build
36```
37​
38## About This Example
39​
40This example demonstrates:
41​
42- Integrating TanStack Query with TanStack Router
43- Data fetching with queries
44- Route-level data loading
45- Cache management
46- Prefetching data on route navigation