anton.johansson
Custom error management
Well, I mostly want this because I feel it's clearer to handle my own error than a library-specific error. 🙂 But it probably does not matter much.
Anyway, I tried messing around with transformer, but it looks like the entire framework is tightly coupled with the
TRPCClientError
type. The TRPCLink
type "forces" TRPCClientError
.26 replies
Custom error management
@Nick Lucas Any ideas? Digging deep into the tRPC code at the moment, and it looks like the error must be of type
TRPCClientError<MyRouter>
. Otherwise, I could probably write my own httpBatchLink
with custom error logic, but it looks like I can't.26 replies