bee-dashboard icon indicating copy to clipboard operation
bee-dashboard copied to clipboard

Add way to report errors "upstream" when used as component

Open AuHau opened this issue 3 years ago • 0 comments

With the component refactor in Desktop, we track errors using Sentry on top-level. This unfortunately might not work as good, because we might not catch the errors that were originally caught by the Sentry's ErrorBound that was removed in #520. We could create a callback that could be passed as the Dashboard's App component's prop that would get called when this errors are caught here: https://github.com/ethersphere/bee-dashboard/blob/0260df61de0619202a819b79820cfbef6e3757ae/src/components/ErrorBoundary.tsx

AuHau avatar Aug 11 '22 09:08 AuHau