tRPCttRPC
Powered by
7up7
tRPC•2y ago•
2 replies
7up

NextJS App Routers with tRPC: can't call query on server component

Hi all,

I'm folloing this guidline to setup nextjs with tRPC but it didn't work when I call the query on server componet:
https://trpc.io/docs/client/react/server-components#getting-data-in-a-server-component

The query wasn't show up when I call: await trpc.hello.query()

Is there any config that I missed?

Thanks!!
Set up with React Server Components | tRPC
This guide is an overview of how one may use tRPC with a React Server Components (RSC) framework such as Next.js App Router.
Set up with React Server Components | tRPC
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Server Component Call to TRPC on express backend
JaaneekJJaaneek / ❓-help
3y ago
trpc with app dir nextjs
MajMMaj / ❓-help
3y ago
TRPC with Nextjs 13 App Router
SpoekySSpoeky / ❓-help
3y ago