SansPapyrus683S
tRPC3y ago
13 replies
SansPapyrus683

`useQuery` not working?

is it just me or does
useQuery
not work in my next js components?
i try to call it and it says client[procedure] is not a function
image.png
Solution
Only applies if you're using t3 with app router:

If you're trying to use API in a client component then API needs to be imported from /trpc/react

If you're using API in an rsc or anything on the server, you import from /trpc/server
Was this page helpful?