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

Function hasValidKey

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

Source from the content-addressed store, hash-verified

20019}
20020
20021function hasValidKey(config) {
20022 {
20023 if (hasOwnProperty.call(config, 'key')) {
20024 var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
20025 if (getter && getter.isReactWarning) {
20026 return false;
20027 }
20028 }
20029 }
20030 return config.key !== undefined;
20031}
20032
20033function defineKeyPropWarningGetter(props, displayName) {
20034 var warnAboutAccessingKey = function () {

Callers 2

createElementFunction · 0.70
cloneElementFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected