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

Function hasValidRef

code/one-direction-data-flow/public/app.js:18538–18548  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

18536var specialPropRefWarningShown = void 0;
18537
18538function hasValidRef(config) {
18539 {
18540 if (hasOwnProperty.call(config, 'ref')) {
18541 var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
18542 if (getter && getter.isReactWarning) {
18543 return false;
18544 }
18545 }
18546 }
18547 return config.ref !== undefined;
18548}
18549
18550function hasValidKey(config) {
18551 {

Callers 2

createElementFunction · 0.70
cloneElementFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected