tRPCttRPC
Powered by
NickN
tRPC•4y ago•
2 replies
Nick

Handling Query Errors at Root of App (v9)

I want to show an error toast on my
NextJS
NextJS
frontend every time there is an error from
useQuery
useQuery
in a functional component. Is there a way to add something at the root of my app that can watch for trpc errors or do I have to handle it at every use of
useQuery
useQuery
? (note: i am on v9)
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

handling errors server side
agiAagi / ❓-help
3y ago
Handling errors on the front-end
OutisOOutis / ❓-help
3y ago