tRPCttRPC
Powered by
VengeanceV
tRPC•3y ago•
7 replies
Vengeance

useQuery in App Router?

I have a client component that I want to use useQuery in like in pages router, but only
query
query
is available
Solution
where are you importing
api
api
from? You have to make sure you import it from
/trpc/react.ts
/trpc/react.ts
Jump to solution
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Migrating pages router to app router
spreen_coSspreen_co / ❓-help
11mo ago
Next.js App router
BrianBBrian / ❓-help
8mo ago
Next 14 app router
Fitim BytyqiFFitim Bytyqi / ❓-help
2y ago
tRPC with app router
SzymonSSzymon / ❓-help
3y ago