T
TanStack2mo ago
equal-aqua

When to opt for trpc mutation or use a server function

I'm writing a new application and I'm not sure whether to use/make a trpc mutation or a serverfunction for simple db updates. I would appreicate any guidance
1 Reply
other-emerald
other-emerald2mo ago
best go with server functions for now, since they are well detailed and most bugs are known in the RC. since it's still in RC best to avoid unnecessary overhead you can call server comps from components and almost anywhere else.

Did you find this page helpful?