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

Function hasValidKey

code/new-context-api/public/app.js:18038–18048  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

18036}
18037
18038function hasValidKey(config) {
18039 {
18040 if (hasOwnProperty.call(config, 'key')) {
18041 var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
18042 if (getter && getter.isReactWarning) {
18043 return false;
18044 }
18045 }
18046 }
18047 return config.key !== undefined;
18048}
18049
18050function defineKeyPropWarningGetter(props, displayName) {
18051 var warnAboutAccessingKey = function () {

Callers 2

createElementFunction · 0.70
cloneElementFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected