Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Whats the correct way to wait for `trpc.useQuery` to finish and then update state? - Theo's Typesafe Cult
TTC
Theo's Typesafe Cult
•
4y ago
•
6 replies
neochrome
Whats the correct way to wait for `trpc.useQuery` to finish and then update state?
Like the title said
, I have a case where I need to press a button 2x to update my state
.
That happens because useEffect does not wait for useQuery to be finished
. Is there a way to sync those two
?
Theo's Typesafe Cult
Join
26,131
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Wait for useQuery result
TTC
Theo's Typesafe Cult / questions
4y ago
How to wait for state to update without useEffect?
TTC
Theo's Typesafe Cult / questions
3y ago
TRPC UseQuery
TTC
Theo's Typesafe Cult / questions
3y ago