tRPCttRPC
Powered by
rocawearR
tRPC•4y ago•
11 replies
rocawear

tRPC sockets with react

Trying to make my React app work with socket with minimal server but getting error:

"Uncaught TypeError: Cannot destructure property 'client' of 'useContext(...)' as it is null."
at Object.useSubscription (createHooksInternal-9c1f8ad9.mjs:363:17)
at createHooksInternal-9c1f8ad9.mjs:57:29

Current code on comments!
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

trpc subscription with react-query
kamamaKkamama / ❓-help
3y ago
Using tRPC (createCallerFactory) with react-query.
lunacraftsLlunacrafts / ❓-help
2y ago
TRPC with react query, getting error twice?
DevThoughtsDDevThoughts / ❓-help
3y ago