T
tRPC

React Native/Expo: Uncaught Error: No QueryClient set, use QueryClientProvider to set one

React Native/Expo: Uncaught Error: No QueryClient set, use QueryClientProvider to set one

Mmozzius6/9/2023
Found this issue but it just says to use patch-package, I was wondering if there was any changes since then? https://github.com/TanStack/query/discussions/4619 I think I may have solved it by doing this:
Solution:
```typescript import { defaultContext } from "@tanstack/react-query" export const api = createTRPCReact<AppRouter>({ reactQueryContext: defaultContext,...
Jump to solution
Solution
Mmozzius6/9/2023
import { defaultContext } from "@tanstack/react-query"

export const api = createTRPCReact<AppRouter>({
reactQueryContext: defaultContext,
});
import { defaultContext } from "@tanstack/react-query"

export const api = createTRPCReact<AppRouter>({
reactQueryContext: defaultContext,
});
Mmozzius6/9/2023
need to solve unrelated errors first before I can say for sure though yeah I can confirmed this worked

Looking for more? Join the community!

T
tRPC

React Native/Expo: Uncaught Error: No QueryClient set, use QueryClientProvider to set one

Join Server
Recommended Posts
All values in DecoratedProcedureRecord are of type anyI've stumbled across an issue and I'm not sure how to start diagnosing it... Basically in my IDE tDetecting batch queries/mutations on the server-sideHello all, Looking to leverage batching as a means to streamline some of our cross-service requests,VS Code becomes unresponsiveHello everyone, I've started to experience huge performance issues with my project that's based onMiddleware-ish for clientHi! I had a quick question about client-side usage: I have users with long-running sessions, and iWhy cannot I specify a mutation input with useQueryKey?It's supported with queries, but for some reason not with mutations. Why is this the case?how to connect trpc server (t3 stack) from my external nextjs app?how to connect trpc server (t3 stack) from my external nextjs app?trpc.legacyRouterName.procedure "does not exist" on type CreateTRPCNextBase, runs anywayHave reached the end of a massive trpc 9 -> trpc 10 migration, executed using the official guide witNot getting legacy router ops in merged tRPC 9 routerFollowed the guide to merge my large tRPC 9 router with tRPC 10, but now I can't use useQuery or acccreateTRPCNext Type Error + useQuery Not DefinedI'm trying to use the conventions for `createTRPCNext ` from https://github.com/trpc/examples-next-pRead response headers on the clientIve been searching for a while trying to figure out how to access response headers on the client. FoIs it possible to access context in input?Hi, I have a validator that requires to get context of prisma in the `input`, Is it possible to get TRPCContextState not found in v10In our v9 app, we used TRPCContextState from internals to type out TRPC utils, importing it like `im