MCPcopy Create free account
hub / github.com/caseywebdev/react-list / unwrapThenable

Function unwrapThenable

docs/index.js:6237–6242  ·  view source on GitHub ↗
(thenable)

Source from the content-addressed store, hash-verified

6235var thenableState$1 = null,
6236 thenableIndexCounter$1 = 0;
6237function unwrapThenable(thenable) {
6238 var index = thenableIndexCounter$1;
6239 thenableIndexCounter$1 += 1;
6240 null === thenableState$1 && (thenableState$1 = []);
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;

Callers 4

createChildFunction · 0.85
updateSlotFunction · 0.85
updateFromMapFunction · 0.85
reconcileChildFibersImplFunction · 0.85

Calls 2

trackUsedThenableFunction · 0.85
createThenableStateFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…