Handle React error boundary
Seems like Im doing something wrong as I can't handle the error boundary from trpc query.
I've queryClient with
I've queryClient with
useErrorboundary set to true and wrapped my component that uses trpc query with the React Error Boundary but it doesn't seem to be able to catch it. When I just throw before the query it successfully intercepts the error but from trpc seems its not doing that? Am I doing something wrong ?? throw new Error('test') is catched successfully and I see errrour boundary but when I remove it the trpc query then crashesh the app