0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00
router/examples/react/with-trpc-react-query
History 2025-12-21 15:34:38 +00:00
..
.vscode chore(examples): add .vscode/settings.json configuration (#3349) 2025-02-07 10:29:48 +13:00
src chore: bump tailwind from v3 to v4 with postcss (#5580) 2025-10-22 03:42:26 +02:00
.gitignore feat: Merge alpha to main (#4365) 2025-06-10 23:19:32 +02:00
index.html chore: move start e2e and example projects from ./app to ./src (#3712) 2025-03-09 23:35:20 +01:00
package.json release: v1.142.6 2025-12-21 15:34:38 +00:00
README.md docs(examples): standardize the READMEs for the React examples (#6014) 2025-12-07 01:39:44 +13:00
tsconfig.json chore(examples): fix with-trpc and with-trpc-react-query examples (#4539) 2025-06-30 14:08:36 +12:00
vite.config.ts docs: move to tailwind 4 w/ vite (#6168) 2025-12-21 04:13:49 +01:00

TanStack Router - tRPC with React Query Example

An example demonstrating integration of tRPC with 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/with-trpc-react-query with-trpc-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:

  • tRPC integration with TanStack Router
  • TanStack Query for data fetching
  • Type-safe API calls with caching
  • End-to-end type safety
  • Optimistic updates