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

Function hasValidKey

code/higher-order-components/public/app.js:18671–18681  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

18669}
18670
18671function hasValidKey(config) {
18672 {
18673 if (hasOwnProperty.call(config, 'key')) {
18674 var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
18675 if (getter && getter.isReactWarning) {
18676 return false;
18677 }
18678 }
18679 }
18680 return config.key !== undefined;
18681}
18682
18683function defineKeyPropWarningGetter(props, displayName) {
18684 var warnAboutAccessingKey = function () {

Callers 2

createElementFunction · 0.70
cloneElementFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected