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

Function getContextForSubtree

code/communication/public/app.js:14089–14097  ·  view source on GitHub ↗
(parentComponent)

Source from the content-addressed store, hash-verified

14087
14088
14089 function getContextForSubtree(parentComponent) {
14090 if (!parentComponent) {
14091 return emptyObject;
14092 }
14093
14094 var fiber = get(parentComponent);
14095 var parentContext = findCurrentUnmaskedContext(fiber);
14096 return isContextProvider(fiber) ? processChildContext(fiber, parentContext) : parentContext;
14097 }
14098
14099 function scheduleRootUpdate(current, element, currentTime, expirationTime, callback) {
14100 {

Callers 1

Calls 4

getFunction · 0.70
isContextProviderFunction · 0.70
processChildContextFunction · 0.70

Tested by

no test coverage detected