componentDidCatch(error, errorInfo) { this.setState({ error }); withScope(scope => { Object.keys(errorInfo).forEach(key => { scope.setExtra(key, errorInfo[key]); }); captureException(error); }); showReportDialog({ user: reportDialogUser, }); }
componentDidCatch(error, errorInfo) { this.setState({ error }); withScope(scope => { Object.keys(errorInfo).forEach(key => { scope.setExtra(key, errorInfo[key]); }); captureException(error); }); showReportDialog({ user: reportDialogUser, }); }