MCPcopy Index your code
hub / github.com/danielstocks/react-sortable / defineKeyPropWarningGetter

Function defineKeyPropWarningGetter

bundle.js:1622–1634  ·  view source on GitHub ↗
(props, displayName)

Source from the content-addressed store, hash-verified

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() {

Callers 1

bundle.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected