invalidateQueries Example code invalidateQueries A typesafe wrapper around calling queryClient.invalidateQueries() , all it does is to call queryClient.invalidateQueries() wit...
Example Apps Example Apps You can clone trpc and play with local examples, or play with them in the CodeSandbox link below. Here’s some example apps: Description URL Links Rec...
useMutation() Example useMutation() The hooks provided by @trpc/react are a thin wrapper around React Query. For in-depth information about options and usage patterns, refer ...
Usage with Amazon API Gateway Amazon API Gateway adapter Example app How to add tRPC 1. Install deps 2. Create a tRPC router 3. Use the Amazon API Gateway adapter A word about ...
useInfiniteQuery info Example Procedure Example React Component useInfiniteQuery info Your procedure needs to accept a cursor input of any type For more details on infin...
Sponsors Financial Contributors 🥉 Bronze Sponsors 😻 Individuals Sponsors If you like working with tRPC, consider giving a token a apprecation by GitHub Sponsors ! Financ...
Starter Projects Starter Projects Get started quickly with one of the sample projects! Copy the snippet from Quick start with create-next-app in the below list to clone the pro...
Server-Side Rendering Configure _app.tsx for SSR Server-Side Rendering The only thing you need to do to get SSR on your application is to set ssr: true in your _app.tsx , bu...
Data Transformers Using superjson How to 1. Install 2. Add to createTRPCCLient() or withTRPC() config 3. Add to your AppRouter Different transformers for upload and downl...
Error Formatting Usage example highlighted Adding custom formatting Usage in React All properties sent to formatError() Error Formatting The error formatting in your router...