Next.js Discord

Discord Forum

Working server side with tRPC with NextJs

Unanswered
Japanese pilchard posted this in #help-forum
Open in Discord
Japanese pilchardOP
Hello, I'm new to tRPC and Next, 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

1 Reply

Japanese pilchardOP
: (