Closed
Description
From @nightnei on October 4, 2018 15:47
I use componentDidCatch
to send error, like in the new documentation. But I receive 2 errors: one is from componentDidCatch
and another is sent from somewhere another place. Can I disable autosend errors?
componentDidCatch(error, errorInfo) {
this.setState({ error });
Sentry.configureScope(scope => {
Object.keys(errorInfo).forEach(key => {
scope.setExtra(key, errorInfo[key]);
});
});
Sentry.captureException(error);
}
Copied from original issue: getsentry/sentry#10021
Metadata
Metadata
Assignees
Labels
No labels