MCPcopy Index your code
hub / github.com/microsoft/SandDance / pushContextProvider

Function pushContextProvider

docs/external/js/react-dom.development.js:10964–10978  ·  view source on GitHub ↗
(workInProgress)

Source from the content-addressed store, hash-verified

10962 }
10963
10964 function pushContextProvider(workInProgress) {
10965 {
10966 var instance = workInProgress.stateNode; // We push the context as early as possible to ensure stack integrity.
10967 // If the instance does not exist yet, we will push null at first,
10968 // and replace it on the stack later when invalidating the context.
10969
10970 var memoizedMergedChildContext = instance && instance.__reactInternalMemoizedMergedChildContext || emptyContextObject; // Remember the parent context so we can merge with it later.
10971 // Inherit the parent's did-perform-work value to avoid inadvertently blocking updates.
10972
10973 previousContext = contextStackCursor.current;
10974 push(contextStackCursor, memoizedMergedChildContext, workInProgress);
10975 push(didPerformWorkStackCursor, didPerformWorkStackCursor.current, workInProgress);
10976 return true;
10977 }
10978 }
10979
10980 function invalidateContextProvider(workInProgress, type, didChange) {
10981 {

Callers 4

updateClassComponentFunction · 0.85
beginWorkFunction · 0.85

Calls 1

pushFunction · 0.70

Tested by

no test coverage detected