T
tRPC

TRPC Error Handling

TRPC Error Handling

Ssahrohit8/16/2023
I am using TRPC as my backend for my nextjs application. The one major problem i am facing is that, whenever I throw a new TRPC error, it crashes my frontend completely. I wanted to know whether, there is a better of handling errors and getting error message in a text ? I am using TRPC with react query in the frontend Nextjs client and serving the api with a TRPC Express App.
AKAlex / KATT 🐱8/16/2023
Are you using suspense? If so you need a error boundary
Ssahrohit8/16/2023
I am using the new App router in the Next13. Here is the repository link, if you want. https://github.com/sahrohit/pracharya

Looking for more? Join the community!

T
tRPC

TRPC Error Handling

Join Server