MCPcopy Index your code
hub / github.com/caseywebdev/react-list / checkShouldComponentUpdate

Function checkShouldComponentUpdate

docs/index.js:8616–8631  ·  view source on GitHub ↗
(
  workInProgress,
  ctor,
  oldProps,
  newProps,
  oldState,
  newState,
  nextContext
)

Source from the content-addressed store, hash-verified

8614 }
8615};
8616function 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}
8632function callComponentWillReceiveProps(
8633 workInProgress,
8634 instance,

Callers 1

updateClassComponentFunction · 0.85

Calls 3

shallowEqualFunction · 0.85
getComponentNameFromTypeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…