MCPcopy Create free account
hub / github.com/plotly/dash / hasValidRef

Function hasValidRef

dash/deps/react@18.2.0.js:616–628  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

614 }
615
616 function hasValidRef(config) {
617 {
618 if (hasOwnProperty.call(config, 'ref')) {
619 var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
620
621 if (getter && getter.isReactWarning) {
622 return false;
623 }
624 }
625 }
626
627 return config.ref !== undefined;
628 }
629
630 function hasValidKey(config) {
631 {

Callers 2

createElementFunction · 0.70
cloneElementFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…