()
| 661 | |
| 662 | function defineRefPropWarningGetter(props, displayName) { |
| 663 | var warnAboutAccessingRef = function () { |
| 664 | { |
| 665 | if (!specialPropRefWarningShown) { |
| 666 | specialPropRefWarningShown = true; |
| 667 | |
| 668 | error('%s: `ref` 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); |
| 669 | } |
| 670 | } |
| 671 | }; |
| 672 | |
| 673 | warnAboutAccessingRef.isReactWarning = true; |
| 674 | Object.defineProperty(props, 'ref', { |
nothing calls this directly
no test coverage detected
searching dependent graphs…