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

Function checkIfContextChanged

docs/index.js:10698–10714  ·  view source on GitHub ↗
(currentDependencies)

Source from the content-addressed store, hash-verified

10696 workInProgress.flags |= 262144;
10697}
10698function checkIfContextChanged(currentDependencies) {
10699 for (
10700 currentDependencies = currentDependencies.firstContext;
10701 null !== currentDependencies;
10702
10703 ) {
10704 if (
10705 !objectIs(
10706 currentDependencies.context._currentValue,
10707 currentDependencies.memoizedValue
10708 )
10709 )
10710 return !0;
10711 currentDependencies = currentDependencies.next;
10712 }
10713 return !1;
10714}
10715function prepareToReadContext(workInProgress) {
10716 currentlyRenderingFiber = workInProgress;
10717 lastContextDependency = null;

Callers 3

finishRenderingHooksFunction · 0.85
updateClassComponentFunction · 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…