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

Function hasValidKey

code/composition/public/app.js:18815–18825  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

18813}
18814
18815function hasValidKey(config) {
18816 {
18817 if (hasOwnProperty.call(config, 'key')) {
18818 var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
18819 if (getter && getter.isReactWarning) {
18820 return false;
18821 }
18822 }
18823 }
18824 return config.key !== undefined;
18825}
18826
18827function defineKeyPropWarningGetter(props, displayName) {
18828 var warnAboutAccessingKey = function () {

Callers 2

createElementFunction · 0.70
cloneElementFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected