Nick
Nick3y ago

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)
1 Reply
Alex / KATT 🐱
Check links in the docs Or default react query options works too

Did you find this page helpful?