Fetching package from npm...
Set up @trpc/tanstack-react-query with createTRPCContext(), TRPCProvider and the useTRPC() hook, or createTRPCOptionsProxy() without React context. Pass queryOptions/infiniteQueryOptions/mutationOptions/ subscriptionOptions factories to TanStack Query hooks, invalidate with queryClient.invalidateQueries and queryFilter/pathFilter, read and write the cache with queryKey, prefix keys with keyPrefix, and infer types with inferInput/inferOutput.