TRPCError({ code: "UNAUTHORIZED" })TRPCError({ code: "UNAUTHORIZED" }) in a middleware, and handling error states returned from useQueryuseQuery. However, each time I return a 401 with the TRPCErrorTRPCError I get the following client error from the tRPC client. Why does it do this? It messes up my React as well (see the second error). I thought you were supposed to throw TRPCErrorTRPCErrors? (Note: also using Tanstack Router, and running on Vinxi so it's all kinda experimental, do tell if that's what could be causing it.)
Join the Discord to ask follow-up questions and connect with the community