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

Function cacheContext

code/one-direction-data-flow/public/app.js:12181–12185  ·  view source on GitHub ↗
(workInProgress, unmaskedContext, maskedContext)

Source from the content-addressed store, hash-verified

12179 }
12180
12181 function cacheContext(workInProgress, unmaskedContext, maskedContext) {
12182 var instance = workInProgress.stateNode;
12183 instance.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext;
12184 instance.__reactInternalMemoizedMaskedChildContext = maskedContext;
12185 }
12186
12187 function getMaskedContext(workInProgress, unmaskedContext) {
12188 var type = workInProgress.type;

Callers 2

constructClassInstanceFunction · 0.70
getMaskedContextFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected