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.
4.8KMembers
View on DiscordMore Posts
Anyone has successfully setup a websockets subscription with an input ?Hi guys, here is my environment:
*** node v20.11.1
* yarn@4.1.0
* trpc 11.0.0-next-beta.294
* next 1Middleware context changes aren't applied to `responseMeta(opts)` optionsIn our middleware I extend the ctx like this:
```ts
const public = t.middleware(async ({ next, ctx