TanStack React Query
This is the recommended way to use tRPC with React and TanStack Query. It provides factories for common TanStack React Query interfaces like QueryKeys, QueryOptions, and MutationOptions, giving you a more TanStack Query-native experience.
If you're starting a new project, we recommend using this integration over the classic React Query integration. Read the announcement post for more information about this change.
Head to the Setup guide to get started.