MonkeyStruct
MonkeyStruct9mo ago

Using TRPC Server Caller in client side.

What's up TRPCer. so i'm currently working in vanilla react app with seperate backend in .NET, in previous projects i have used Next with TRPC server and honestly loved DX with it so i wanted to implement it for the react app and parse .NET server response in TRPC route func and utilize @trpc/server pkg that way and use createCaller instance to use like almost server/query func. intention was to use tanstack react query and trpc routes as basically queryFn. Seems like that wont work tho. trpc throws not allowed to use server func in client side error. Is there a way to make it work? or TRPC requires a server implemented with trpc server.
0 Replies
No replies yetBe the first to reply to this messageJoin