Deprecated createCaller alternative?
What’s the alternative for the deprecated method?
https://trpc.io/docs/v10/server/server-side-calls#routercreatecaller
Server Side Calls | tRPC
You may need to call your procedure(s) directly from the same server they're hosted in, createCallerFactory() can be used to achieve this. This is useful for server-side calls and for integration testing of your tRPC procedures.
2 Replies
you can use
.createCaller()
, we will likely undeprecate it 😄Solution