()
| 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', { |
nothing calls this directly
no test coverage detected
searching dependent graphs…