The docs state usage as:
const trpc = createTRPCReact<AppRouter>();
const queryClient = new QueryClient();
const clientUtils = createTRPCQueryUtils({ queryClient, client: trpc });
However this throws a typescript error about client
being invalid. There's a couple of Discord errors about this:
I'm not sure how to fix this, the types seem quite confusing for me.
https://trpc.io/docs/client/react/createTRPCQueryUtils
No response
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too