tRPCttRPC
Powered by
BastinB
tRPC•14mo ago•
1 reply
Bastin

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.
Set up with React Server Components | tRPC
GitHub
trpc/examples/.experimental/next-app-dir at 87ea49ed1da187e72669ce6...
🧙‍♀️ Move Fast and Break Nothing. End-to-end typesafe APIs made easy. - trpc/trpc
trpc/examples/.experimental/next-app-dir at 87ea49ed1da187e72669ce6...
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

Example Repo for NextJS App Router + React Query + tRPC
BørgeBBørge / ❓-help
10mo ago
nextjs app router `fetchRequestHandler`'s createContext doesn't run.
VilianVVilian / ❓-help
3y ago
TRPC with Nextjs 13 App Router
SpoekySSpoeky / ❓-help
3y ago