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

Function cacheContext

code/higher-order-components/public/app.js:12302–12306  ·  view source on GitHub ↗
(workInProgress, unmaskedContext, maskedContext)

Source from the content-addressed store, hash-verified

12300 }
12301
12302 function cacheContext(workInProgress, unmaskedContext, maskedContext) {
12303 var instance = workInProgress.stateNode;
12304 instance.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext;
12305 instance.__reactInternalMemoizedMaskedChildContext = maskedContext;
12306 }
12307
12308 function getMaskedContext(workInProgress, unmaskedContext) {
12309 var type = workInProgress.type;

Callers 2

constructClassInstanceFunction · 0.70
getMaskedContextFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected