MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / hasValidRef

Function hasValidRef

code/dependency-injection/public/app.js:18758–18768  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

18756var specialPropRefWarningShown = void 0;
18757
18758function hasValidRef(config) {
18759 {
18760 if (hasOwnProperty.call(config, 'ref')) {
18761 var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
18762 if (getter && getter.isReactWarning) {
18763 return false;
18764 }
18765 }
18766 }
18767 return config.ref !== undefined;
18768}
18769
18770function hasValidKey(config) {
18771 {

Callers 2

createElementFunction · 0.70
cloneElementFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected