(consumer, context)
| 10726 | return readContextForConsumer(consumer, context); |
| 10727 | } |
| 10728 | function 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 | } |
| 10739 | var hasForceUpdate = !1; |
| 10740 | function initializeUpdateQueue(fiber) { |
| 10741 | fiber.updateQueue = { |
no test coverage detected
searching dependent graphs…