( workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext )
| 8614 | } |
| 8615 | }; |
| 8616 | function checkShouldComponentUpdate( |
| 8617 | workInProgress, |
| 8618 | ctor, |
| 8619 | oldProps, |
| 8620 | newProps, |
| 8621 | oldState, |
| 8622 | newState, |
| 8623 | nextContext |
| 8624 | ) { |
| 8625 | workInProgress = workInProgress.stateNode; |
| 8626 | return "function" === typeof workInProgress.shouldComponentUpdate |
| 8627 | ? workInProgress.shouldComponentUpdate(newProps, newState, nextContext) |
| 8628 | : ctor.prototype && ctor.prototype.isPureReactComponent |
| 8629 | ? !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState) |
| 8630 | : !0; |
| 8631 | } |
| 8632 | function callComponentWillReceiveProps( |
| 8633 | workInProgress, |
| 8634 | instance, |
no test coverage detected
searching dependent graphs…