| 1620 | } |
| 1621 | |
| 1622 | function defineKeyPropWarningGetter(props, displayName) { |
| 1623 | var warnAboutAccessingKey = function warnAboutAccessingKey() { |
| 1624 | if (!specialPropKeyWarningShown) { |
| 1625 | specialPropKeyWarningShown = true; |
| 1626 | warning$2(false, '%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://fb.me/react-special-props)', displayName); |
| 1627 | } |
| 1628 | }; |
| 1629 | warnAboutAccessingKey.isReactWarning = true; |
| 1630 | Object.defineProperty(props, 'key', { |
| 1631 | get: warnAboutAccessingKey, |
| 1632 | configurable: true |
| 1633 | }); |
| 1634 | } |
| 1635 | |
| 1636 | function defineRefPropWarningGetter(props, displayName) { |
| 1637 | var warnAboutAccessingRef = function warnAboutAccessingRef() { |