(nextProps, nextState)
| 303 | } |
| 304 | |
| 305 | shouldComponentUpdate(nextProps, nextState) { |
| 306 | // draggable does not affect inner components |
| 307 | return ( |
| 308 | !shallowEqual( |
| 309 | omit(this.props, ['draggable']), |
| 310 | omit(nextProps, ['draggable']) |
| 311 | ) || !shallowEqual(this.state, nextState) |
| 312 | ); |
| 313 | } |
| 314 | |
| 315 | componentDidUpdate(prevProps) { |
| 316 | if (process.env.NODE_ENV !== 'production') { |
nothing calls this directly
no test coverage detected