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

Function cacheContext

code/third-party/public/app.js:11541–11545  ·  view source on GitHub ↗
(workInProgress, unmaskedContext, maskedContext)

Source from the content-addressed store, hash-verified

11539 }
11540
11541 function cacheContext(workInProgress, unmaskedContext, maskedContext) {
11542 var instance = workInProgress.stateNode;
11543 instance.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext;
11544 instance.__reactInternalMemoizedMaskedChildContext = maskedContext;
11545 }
11546
11547 function getMaskedContext(workInProgress, unmaskedContext) {
11548 var type = workInProgress.type;

Callers 2

constructClassInstanceFunction · 0.70
getMaskedContextFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected