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

Function hasValidRef

code/higher-order-components/public/app.js:18659–18669  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

18657var specialPropRefWarningShown = void 0;
18658
18659function hasValidRef(config) {
18660 {
18661 if (hasOwnProperty.call(config, 'ref')) {
18662 var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
18663 if (getter && getter.isReactWarning) {
18664 return false;
18665 }
18666 }
18667 }
18668 return config.ref !== undefined;
18669}
18670
18671function hasValidKey(config) {
18672 {

Callers 2

createElementFunction · 0.70
cloneElementFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected