t
tRPC
V
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
tRPC
Join
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
Migrating pages router to app router
S
spreen_co / ❓-help
11mo ago
Next.js App router
B
Brian / ❓-help
8mo ago
Next 14 app router
F
Fitim Bytyqi / ❓-help
2y ago
tRPC with app router
S
Szymon / ❓-help
3y ago