React Query
Simplify React Query usage with minimal integration using ORPC and TanStack Query
Installation
Setup
Using a Global Client
Using Context with a Client
Multiple ORPC Instances
To prevent conflicts when using multiple ORPC instances, you can provide a unique base path to createORPCReactQueryUtils
.
This ensures that each instance manages its own set of query keys and avoids any conflicts.
Usage
Standard Queries and Mutations
Note: This library enhances TanStack Query by managing query keys and functions for you, providing a seamless developer experience.
Infinite Queries
Infinite queries require a cursor
in the input field for pagination.