MCPcopy Index your code
hub / github.com/plotly/dash / warnAboutAccessingKey

Function warnAboutAccessingKey

dash/deps/react@18.2.0.js:645–653  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

643
644 function defineKeyPropWarningGetter(props, displayName) {
645 var warnAboutAccessingKey = function () {
646 {
647 if (!specialPropKeyWarningShown) {
648 specialPropKeyWarningShown = true;
649
650 error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);
651 }
652 }
653 };
654
655 warnAboutAccessingKey.isReactWarning = true;
656 Object.defineProperty(props, 'key', {

Callers

nothing calls this directly

Calls 1

errorFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…