Skip to content

How to fetch data in server components? #224

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
valerarusu7 opened this issue May 4, 2025 · 3 comments
Open

How to fetch data in server components? #224

valerarusu7 opened this issue May 4, 2025 · 3 comments

Comments

@valerarusu7
Copy link

valerarusu7 commented May 4, 2025

how would I fetch the data with trpc in a server component?

@KyleAESI
Copy link

KyleAESI commented May 5, 2025

I'm new to tRPC but am a heavy RSC and Server Actions user with NextJS.

I found this helpful: https://trpc.io/blog/trpc-actions.

@valerarusu7
Copy link
Author

Yeah, I would like a similar experience as the t3-app

@KyleAESI
Copy link

KyleAESI commented May 7, 2025

Yeah, I would like a similar experience as the t3-app

I checked out this guide yesterday and really like the patterns he showed. (NextJS specific in this case)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants