(error, errorInfo)
| 48 | } |
| 49 | |
| 50 | componentDidCatch(error, errorInfo) { |
| 51 | logger.error(error); |
| 52 | |
| 53 | if (!hotComparisonOpen()) { |
| 54 | // do not log error outside of HMR cycle |
| 55 | |
| 56 | // trigger update to kick error |
| 57 | this.setState({}); |
| 58 | throw error; |
| 59 | } |
| 60 | const { errorReporter = configuration.errorReporter } = this.props; |
| 61 | if (!errorReporter) { |
| 62 | logException(error, errorInfo, this); |
| 63 | } |
| 64 | this.setState({ |
| 65 | error, |
| 66 | errorInfo, |
| 67 | }); |
| 68 | } |
| 69 | |
| 70 | retryHotLoaderError() { |
| 71 | this.setState({ error: null }, () => { |
nothing calls this directly
no test coverage detected