T
tRPC

❓-help

Handling Query Errors at Root of App (v9)

GgwaiLoFi12/13/2022
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)
AKAlex / KATT 🐱12/14/2022
Check links in the docs Or default react query options works too

Looking for more? Join the community!