link, at least in v9 it was possible:link links: [
() => {
return ({ prev, next, op }) => {
next(op, (result) => {
if (result instanceof TRPCClientError) {
// handle error here
}
prev(result);
});
};
},
httpLink({
url: endpoint,
}),
]