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

Function resolveClassComponentProps

docs/index.js:8646–8660  ·  view source on GitHub ↗
(Component, baseProps)

Source from the content-addressed store, hash-verified

8644 classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
8645}
8646function resolveClassComponentProps(Component, baseProps) {
8647 var newProps = baseProps;
8648 if ("ref" in baseProps) {
8649 newProps = {};
8650 for (var propName in baseProps)
8651 "ref" !== propName && (newProps[propName] = baseProps[propName]);
8652 }
8653 if ((Component = Component.defaultProps)) {
8654 newProps === baseProps && (newProps = assign({}, newProps));
8655 for (var propName$67 in Component)
8656 void 0 === newProps[propName$67] &&
8657 (newProps[propName$67] = Component[propName$67]);
8658 }
8659 return newProps;
8660}
8661var reportGlobalError =
8662 "function" === typeof reportError
8663 ? reportError

Callers 6

updateClassComponentFunction · 0.85
beginWorkFunction · 0.85
commitClassSnapshotFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…