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

Function hasValidRef

code/redux/public/app.js:20009–20019  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

20007var specialPropRefWarningShown = void 0;
20008
20009function hasValidRef(config) {
20010 {
20011 if (hasOwnProperty.call(config, 'ref')) {
20012 var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
20013 if (getter && getter.isReactWarning) {
20014 return false;
20015 }
20016 }
20017 }
20018 return config.ref !== undefined;
20019}
20020
20021function hasValidKey(config) {
20022 {

Callers 2

createElementFunction · 0.70
cloneElementFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected