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
just put the query before the useEffect, and use the result there?