Hacker News new | past | comments | ask | show | jobs | submit login

Could you expand on this?

You don't need it, but you certainly can prefer to use it regardless?

Hoping react-server-components <> trpc gets solved soon




If you use Server Actions, you can just call a server function from your frontend directly, no need for middleware like tRPC

https://nextjs.org/docs/app/building-your-application/data-f...


Thank you I only briefly read about them before and didn't consider them properly.

Will try out calling the database directly there, but I kinda liked how with tRPC I can add validation/auth checks etc/ will have to see how I develop my own strategy for that w server actions.


You can use zact for that

https://github.com/pingdotgg/zact




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: