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

Function hasValidRef

code/new-context-api/public/app.js:18026–18036  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

18024var specialPropRefWarningShown = void 0;
18025
18026function hasValidRef(config) {
18027 {
18028 if (hasOwnProperty.call(config, 'ref')) {
18029 var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
18030 if (getter && getter.isReactWarning) {
18031 return false;
18032 }
18033 }
18034 }
18035 return config.ref !== undefined;
18036}
18037
18038function hasValidKey(config) {
18039 {

Callers 2

createElementFunction · 0.70
cloneElementFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected