using @badrap/result with tRPCs results
Hey, we are using @badrap/result as return type of our routers because we dont really like throwing errors. However this causes the frontend to look like this. First we need to check if there is a trpc error and then check if we returned an error from the router and only then we have access to the value. My question is if its possible to somehow join these two errors together so we dont need to check twice. Also if there is a totally different solution im open to that as well
0 Replies