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

Function cacheContext

code/styling/public/app.js:12308–12312  ·  view source on GitHub ↗
(workInProgress, unmaskedContext, maskedContext)

Source from the content-addressed store, hash-verified

12306 }
12307
12308 function cacheContext(workInProgress, unmaskedContext, maskedContext) {
12309 var instance = workInProgress.stateNode;
12310 instance.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext;
12311 instance.__reactInternalMemoizedMaskedChildContext = maskedContext;
12312 }
12313
12314 function getMaskedContext(workInProgress, unmaskedContext) {
12315 var type = workInProgress.type;

Callers 2

constructClassInstanceFunction · 0.70
getMaskedContextFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected