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

Function cacheContext

code/controlled-uncontrolled/public/app.js:11632–11636  ·  view source on GitHub ↗
(workInProgress, unmaskedContext, maskedContext)

Source from the content-addressed store, hash-verified

11630 }
11631
11632 function cacheContext(workInProgress, unmaskedContext, maskedContext) {
11633 var instance = workInProgress.stateNode;
11634 instance.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext;
11635 instance.__reactInternalMemoizedMaskedChildContext = maskedContext;
11636 }
11637
11638 function getMaskedContext(workInProgress, unmaskedContext) {
11639 var type = workInProgress.type;

Callers 2

constructClassInstanceFunction · 0.70
getMaskedContextFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected