How to get result of a trpc query in a use effect

I often use mutateAsync for mutations, but ive never had to do a query. Any examples? I dont think im searching for the right thing in the docs.
1 Reply
cje
cje2y ago
just put the query before the useEffect, and use the result there?
Want results from more Discord servers?
Add your server