(props, displayName)
| 1005 | return void 0 !== config.key; |
| 1006 | } |
| 1007 | function defineKeyPropWarningGetter(props, displayName) { |
| 1008 | function warnAboutAccessingKey() { |
| 1009 | specialPropKeyWarningShown || |
| 1010 | ((specialPropKeyWarningShown = !0), |
| 1011 | console.error( |
| 1012 | "%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://react.dev/link/special-props)", |
| 1013 | displayName |
| 1014 | )); |
| 1015 | } |
| 1016 | warnAboutAccessingKey.isReactWarning = !0; |
| 1017 | Object.defineProperty(props, "key", { |
| 1018 | get: warnAboutAccessingKey, |
| 1019 | configurable: !0 |
| 1020 | }); |
| 1021 | } |
| 1022 | function elementRefGetterWithDeprecationWarning() { |
| 1023 | var componentName = getComponentNameFromType(this.type); |
| 1024 | didWarnAboutElementRef[componentName] || |
no outgoing calls
no test coverage detected
searching dependent graphs…