(prevProps, prevState)
| 37 | } |
| 38 | |
| 39 | shouldComponentUpdate(prevProps, prevState) { |
| 40 | // Don't update the component if the state had an error and still has one. |
| 41 | // This allows to break an infinite loop of error -> render -> error -> render |
| 42 | // https://github.com/gaearon/react-hot-loader/issues/696 |
| 43 | if (prevState.error && this.state.error) { |
| 44 | return false; |
| 45 | } |
| 46 | |
| 47 | return true; |
| 48 | } |
| 49 | |
| 50 | componentDidCatch(error, errorInfo) { |
| 51 | logger.error(error); |
nothing calls this directly
no outgoing calls
no test coverage detected