Question regarding tRPC
Hello everyone,
I have the following file in
src/pages/room/[slug].tsx
:
And the error I am getting is: Error: No QueryClient set, use QueryClientProvider to set one
Furthermore, a very interesting behavior occurs: the error gets bypassed somehow and the page renders successfully, the query/trpc works eventually but clerk CSS/function just breaks.
https://streamable.com/97zknm
I would appreciate some clarity.Streamable
bug_show
3 Replies
did you wrap the tree with the trpc provider?
Set up with Next.js | tRPC
Recommended file structure
yeah tRPC is set correctly otherwise this wouldn't work
Adding this as a dependency resolved the issue inside package.json:
"@tanstack/react-query": "^4.20.4",