MCPcopy Index your code
hub / github.com/krasimir/react-in-patterns / cacheContext

Function cacheContext

code/new-context-api/public/app.js:11669–11673  ·  view source on GitHub ↗
(workInProgress, unmaskedContext, maskedContext)

Source from the content-addressed store, hash-verified

11667 }
11668
11669 function cacheContext(workInProgress, unmaskedContext, maskedContext) {
11670 var instance = workInProgress.stateNode;
11671 instance.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext;
11672 instance.__reactInternalMemoizedMaskedChildContext = maskedContext;
11673 }
11674
11675 function getMaskedContext(workInProgress, unmaskedContext) {
11676 var type = workInProgress.type;

Callers 2

constructClassInstanceFunction · 0.70
getMaskedContextFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected