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

Function warnNoop

docs/index.js:615–628  ·  view source on GitHub ↗
(publicInstance, callerName)

Source from the content-addressed store, hash-verified

613 return "function" === typeof maybeIterable ? maybeIterable : null;
614 }
615 function warnNoop(publicInstance, callerName) {
616 publicInstance =
617 ((publicInstance = publicInstance.constructor) &&
618 (publicInstance.displayName || publicInstance.name)) ||
619 "ReactClass";
620 var warningKey = publicInstance + "." + callerName;
621 didWarnStateUpdateForUnmountedComponent[warningKey] ||
622 (console.error(
623 "Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",
624 callerName,
625 publicInstance
626 ),
627 (didWarnStateUpdateForUnmountedComponent[warningKey] = !0));
628 }
629 function Component(props, context, updater) {
630 this.props = props;
631 this.context = context;

Callers 1

index.jsFile · 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…