Handle custom error class in error UI boundary
Hey guys,
I am throwing a custom error
in a subpage. I then try to handle it using a error UI boundary. Everything works as expected but inside of
error.tsx
is always false. I assume nextjs internally handles/wraps the error. Is there a way to get a hold of the thrown error directly in order to display different UI in case of an GQLError?
Thank you in advance0 Replies