MCPcopy Index your code
hub / github.com/caseywebdev/react-list / coerceRef

Function coerceRef

docs/index.js:6243–6246  ·  view source on GitHub ↗
(workInProgress, element)

Source from the content-addressed store, hash-verified

6241 return trackUsedThenable(thenableState$1, thenable, index);
6242}
6243function coerceRef(workInProgress, element) {
6244 element = element.props.ref;
6245 workInProgress.ref = void 0 !== element ? element : null;
6246}
6247function throwOnInvalidObjectType(returnFiber, newChild) {
6248 if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE)
6249 throw Error(formatProdErrorMessage(525));

Callers 3

updateElementFunction · 0.85
createChildFunction · 0.85
reconcileChildFibersImplFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…