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

Function hasValidKey

code/dependency-injection/public/app.js:18770–18780  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

18768}
18769
18770function hasValidKey(config) {
18771 {
18772 if (hasOwnProperty.call(config, 'key')) {
18773 var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
18774 if (getter && getter.isReactWarning) {
18775 return false;
18776 }
18777 }
18778 }
18779 return config.key !== undefined;
18780}
18781
18782function defineKeyPropWarningGetter(props, displayName) {
18783 var warnAboutAccessingKey = function () {

Callers 2

createElementFunction · 0.70
cloneElementFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected