gilhrpenner
TTCTheo's Typesafe Cult
•Created by gilhrpenner on 9/9/2023 in #questions
Unable to retrieve application context. Did you forget to wrap your App inside `withTRPC` HoC?
Hey, noob question but am not sure how to deal with it.
I recently added tRPC to my existing project, everything except my jest tests is working fine.
When I try to render a component that's calling tRPC
api.example.hello.useQuery({ text: 'from tRPC' });
it breaks my tests. Not really sure how to wrap my render function withTRPC.
I literally just have the tRPC setup and then a render(<Component />)4 replies