NickN
tRPC4y ago
2 replies
Nick

Handling Query Errors at Root of App (v9)

I want to show an error toast on my
NextJS
frontend every time there is an error from
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
? (note: i am on v9)
Was this page helpful?