T
tRPC

Which one method should I use for creating trpc for server componetns in Nextjs 13 App dir

Which one method should I use for creating trpc for server componetns in Nextjs 13 App dir

Mmlody_krol9/11/2023
Hi which one I should use experimental_createTRPCNextAppDirServer or createTRPCProxyClient when it comes to defining trpc api for the server components? I mean both works fine with next13 app dir and im confused
Fforehead48869/18/2023
+1
Jjthrilly9/21/2023
I've also got this question! They have totally different APIs, but function fairly similarly in practice. What are the pros and cons of each approach? One thing I've noticed is that using experimental_createTRPCNextAppDirServer with experimental_nextCacheLink was leading to stale data that caused infinite loops for me.

Looking for more? Join the community!

T
tRPC

Which one method should I use for creating trpc for server componetns in Nextjs 13 App dir

Join Server