(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext)
| 13315 | }; |
| 13316 | |
| 13317 | function checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext) { |
| 13318 | var instance = workInProgress.stateNode; |
| 13319 | if (typeof instance.shouldComponentUpdate === 'function') { |
| 13320 | startPhaseTimer(workInProgress, 'shouldComponentUpdate'); |
| 13321 | var shouldUpdate = instance.shouldComponentUpdate(newProps, newState, nextContext); |
| 13322 | stopPhaseTimer(); |
| 13323 | |
| 13324 | { |
| 13325 | !(shouldUpdate !== undefined) ? warningWithoutStack$1(false, '%s.shouldComponentUpdate(): Returned undefined instead of a ' + 'boolean value. Make sure to return true or false.', getComponentName(ctor) || 'Component') : void 0; |
| 13326 | } |
| 13327 | |
| 13328 | return shouldUpdate; |
| 13329 | } |
| 13330 | |
| 13331 | if (ctor.prototype && ctor.prototype.isPureReactComponent) { |
| 13332 | return !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState); |
| 13333 | } |
| 13334 | |
| 13335 | return true; |
| 13336 | } |
| 13337 | |
| 13338 | function checkClassInstance(workInProgress, ctor, newProps) { |
| 13339 | var instance = workInProgress.stateNode; |
no test coverage detected