MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / cacheContext

Function cacheContext

code/dependency-injection/public/app.js:12401–12405  ·  view source on GitHub ↗
(workInProgress, unmaskedContext, maskedContext)

Source from the content-addressed store, hash-verified

12399 }
12400
12401 function cacheContext(workInProgress, unmaskedContext, maskedContext) {
12402 var instance = workInProgress.stateNode;
12403 instance.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext;
12404 instance.__reactInternalMemoizedMaskedChildContext = maskedContext;
12405 }
12406
12407 function getMaskedContext(workInProgress, unmaskedContext) {
12408 var type = workInProgress.type;

Callers 2

constructClassInstanceFunction · 0.70
getMaskedContextFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected