How do you guys handle server errors on tRPC

I wanted to know what methodologies or opinions some of you may have with regards to handling errors that come from the server or preventing/'doing another way' the if (error) ... lines on every file
2 Replies
scatter
scatter4y ago
useQuery and useMutation have an onError callback
Unknown User
Unknown User4y ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?