Open History to see the last commit
1# TanStack Router - tRPC with React Query Example
2β
3An example demonstrating integration of tRPC with TanStack Query.
4β
5- [TanStack Router Docs](https://tanstack.com/router)
6- [tRPC Documentation](https://trpc.io)
7- [TanStack Query Docs](https://tanstack.com/query)
8β
9## Start a new project based on this example
10β
11To start a new project based on this example, run:
12β
13```sh
14npx gitpick TanStack/router/tree/main/examples/react/with-trpc-react-query with-trpc-react-query
15```
16β
17## Getting Started
18β
19Install dependencies:
20β
21```sh
22pnpm install
23```
24β
25Start the development server:
26β
27```sh
28pnpm dev
29```
30β
31## Build
32β
33Build for production:
34β
35```sh
36pnpm build
37```
38β
39## About This Example
40β
41This example demonstrates:
42β
43- tRPC integration with TanStack Router
44- TanStack Query for data fetching
45- Type-safe API calls with caching
46- End-to-end type safety
47- Optimistic updates