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

Function hasValidKey

code/communication/public/app.js:18712–18722  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

18710}
18711
18712function hasValidKey(config) {
18713 {
18714 if (hasOwnProperty.call(config, 'key')) {
18715 var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
18716 if (getter && getter.isReactWarning) {
18717 return false;
18718 }
18719 }
18720 }
18721 return config.key !== undefined;
18722}
18723
18724function defineKeyPropWarningGetter(props, displayName) {
18725 var warnAboutAccessingKey = function () {

Callers 2

createElementFunction · 0.70
cloneElementFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected