Nextjs App Router example repo doesn't match NextJS App Router Docs
#❓-help
The official documentation on how to use NextJSs App Router at:
https://trpc.io/docs/client/react/server-components
Doesn't match the example implementation:
https://github.com/trpc/trpc/tree/87ea49ed1da187e72669ce6f638500369b16b749/examples/.experimental/next-app-dir
That makes the docs unprecise and confusing. In the docs it's unclear where to put TRPCProvider and in the example repo it doesn't exist
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.
GitHub
trpc/examples/.experimental/next-app-dir at 87ea49ed1da187e72669ce6...
🧙♀️ Move Fast and Break Nothing. End-to-end typesafe APIs made easy. - trpc/trpc
0 Replies