MCPcopy Index your code
hub / github.com/plotly/dash / warnAboutAccessingRef

Function warnAboutAccessingRef

dash/deps/react@18.2.0.js:663–671  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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', {

Callers

nothing calls this directly

Calls 1

errorFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…