T
tRPC

`QueryClientProvider` not included in `withTRPC`?

`QueryClientProvider` not included in `withTRPC`?

JFJack Fischer12/20/2022
Trying to use import { useIsMutating } from "react-query" but it's throwing Error: No QueryClient set, use QueryClientProvider to set one We have the trpc.withTRPC(MyApp) with Next.js to add the tRPC provider - expected that this wouldn't also add the QueryClientProvider?
TTkDodo 🔮12/21/2022
With v10 of trpc, you need v4 of react-query, so the import must come from @tanstack/react-query
JFJack Fischer12/22/2022
Beast thank you!

Looking for more? Join the community!

T
tRPC

`QueryClientProvider` not included in `withTRPC`?

Join Server