© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
tRPC React - why the useState hook? - Theo's Typesafe Cult
TTC
Theo's Typesafe Cult
•
4y ago
•
20 replies
domi?
tRPC React - why the useState hook?
Hey
. I
've been following the docs for setting up tRPC for a React based project
. I noted in the docs that they recommend wrapping the tRPC client into a
useState()
useState()
. Could someone explain why
?
Theo's Typesafe Cult
Join
27,305
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
useState from TRPC Query
TTC
Theo's Typesafe Cult / questions
3y ago
tRPC react-query hook not called on load
TTC
Theo's Typesafe Cult / questions
3y ago
Conditional trpc hook query
TTC
Theo's Typesafe Cult / questions
3y ago
testing a trpc hook
TTC
Theo's Typesafe Cult / questions
4y ago