(nextProps, nextState)
| 159 | } |
| 160 | |
| 161 | shouldComponentUpdate(nextProps, nextState) { |
| 162 | if(nextProps.editMode) { return true } |
| 163 | // 在运行模式只有state变化时才刷新 |
| 164 | if(nextState != this.state) { return true } |
| 165 | return false |
| 166 | } |
| 167 | |
| 168 | componentDidCatch(error, info) { |
| 169 | this.setState({ hasError: true }) |
nothing calls this directly
no outgoing calls
no test coverage detected