calibreapp/react-live-chat-loader

[Feature Request] How to handle errors

niconiahi opened this issue · 0 comments

What problem would this feature solve?

Being able to send to Sentry the error that may happen on the third party scriptthird-party

Describe the solution you’d like to see

would like to see this:

    <LiveChatLoaderProvider
      onError: (error) => {
        Sentry.captureError(throw error)
      }
    >
      <HelpScout />
    </LiveChatLoaderProvider>

Are you willing to work on implementing this solution?

Yes

Describe alternatives you’ve considered

there are no alternatives, as it happens on the window (the browser) so it's not caught not even on the ErrorBoundary on the _app on a NextJS app

Additional context

No response

Code of Conduct

  • I agree to follow this project’s Code of Conduct