tRPCttRPC
Powered by
noahN
tRPC•3y ago•
12 replies
noah

tRPC requests on client vs server for NextJs

Hello, I'm new to tRPC, and am confused on one thing. I have watched videos of some using a server client to make their tRPC requests on server side with async/await before sending the data with html back to the user, and the more common approach I've seen is requesting with 'use client'. When is it practical to use these approaches?

Also, I don't quite understand how to properly set up a server client in tRPC with next in regards to providing context.
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

Using tRPC for server to server requests
21Vic221Vic / ❓-help
3y ago
Using trpc with fastify server and nextjs client
ZionZZion / ❓-help
3y ago
tRPC typings not working - Cannot import @trpc/server on client
Ofir SmolinskyOOfir Smolinsky / ❓-help
2y ago