| 17920 | } |
| 17921 | |
| 17922 | function defineKeyPropWarningGetter(props, displayName) { |
| 17923 | var warnAboutAccessingKey = function () { |
| 17924 | if (!specialPropKeyWarningShown) { |
| 17925 | specialPropKeyWarningShown = true; |
| 17926 | warning(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); |
| 17927 | } |
| 17928 | }; |
| 17929 | warnAboutAccessingKey.isReactWarning = true; |
| 17930 | Object.defineProperty(props, 'key', { |
| 17931 | get: warnAboutAccessingKey, |
| 17932 | configurable: true |
| 17933 | }); |
| 17934 | } |
| 17935 | |
| 17936 | function defineRefPropWarningGetter(props, displayName) { |
| 17937 | var warnAboutAccessingRef = function () { |