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
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 app4 Replies
I expected that it Will re-throw the
TRPCClientError
so boundary catches it??I cant understand why its not able to catch the error? Is the TrpcClientError somehow swalloed or what? @alex / KATT might you lighten me a bit clearly something wrong im doing here
don't @ people