t
tRPC
t
tRPC
TypeError: Cannot destructure property 'client' of 'useContext(...)' as it is null.
Original message was deleted
tRPC
Join
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,111
Members
View on Discord
A
Ahmed Elsakaan
β’
4/9/23, 7:59 AM
you forgot trpc
.withTRPC HOC in your
_app
.tsx
A
Ahmed Elsakaan
β’
4/9/23, 8:00 AM
https://trpc.io/docs/nextjs/setup#5-configure-_apptsx
Set up with Next.js | tRPC
Recommended file structure
D
Dastan
thank you so much for the quick response!
A
Ahmed Elsakaan
β’
4/9/23, 8:00 AM
glad I can be of help
D
Dastan
thank you so much for the quick response!
N
Nick
β’
4/9/23, 8:13 AM
If you
βre not using Next then you can look at the React query integration instead
.
N
Nick
β’
4/9/23, 8:13 AM
Slightly different setup