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

Function readContextForConsumer

docs/index.js:10728–10738  ·  view source on GitHub ↗
(consumer, context)

Source from the content-addressed store, hash-verified

10726 return readContextForConsumer(consumer, context);
10727}
10728function readContextForConsumer(consumer, context) {
10729 var value = context._currentValue;
10730 context = { context: context, memoizedValue: value, next: null };
10731 if (null === lastContextDependency) {
10732 if (null === consumer) throw Error(formatProdErrorMessage(308));
10733 lastContextDependency = context;
10734 consumer.dependencies = { lanes: 0, firstContext: context };
10735 consumer.flags |= 524288;
10736 } else lastContextDependency = lastContextDependency.next = context;
10737 return value;
10738}
10739var hasForceUpdate = !1;
10740function initializeUpdateQueue(fiber) {
10741 fiber.updateQueue = {

Callers 2

readContextFunction · 0.85

Calls 1

formatProdErrorMessageFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…