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

Function callComponentWillReceiveProps

docs/index.js:8632–8645  ·  view source on GitHub ↗
(
  workInProgress,
  instance,
  newProps,
  nextContext
)

Source from the content-addressed store, hash-verified

8630 : !0;
8631}
8632function callComponentWillReceiveProps(
8633 workInProgress,
8634 instance,
8635 newProps,
8636 nextContext
8637) {
8638 workInProgress = instance.state;
8639 "function" === typeof instance.componentWillReceiveProps &&
8640 instance.componentWillReceiveProps(newProps, nextContext);
8641 "function" === typeof instance.UNSAFE_componentWillReceiveProps &&
8642 instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);
8643 instance.state !== workInProgress &&
8644 classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
8645}
8646function resolveClassComponentProps(Component, baseProps) {
8647 var newProps = baseProps;
8648 if ("ref" in baseProps) {

Callers 1

updateClassComponentFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…