MCPcopy Create free account
hub / github.com/plotly/dash / hasValidKey

Function hasValidKey

dash/deps/react@18.2.0.js:630–642  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

628 }
629
630 function hasValidKey(config) {
631 {
632 if (hasOwnProperty.call(config, 'key')) {
633 var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
634
635 if (getter && getter.isReactWarning) {
636 return false;
637 }
638 }
639 }
640
641 return config.key !== undefined;
642 }
643
644 function defineKeyPropWarningGetter(props, displayName) {
645 var warnAboutAccessingKey = function () {

Callers 2

createElementFunction · 0.70
cloneElementFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…