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

README.md

47 lines851 Bytes

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