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

Function getContextForSubtree

code/dependency-injection/public/app.js:14147–14155  ·  view source on GitHub ↗
(parentComponent)

Source from the content-addressed store, hash-verified

14145
14146
14147 function getContextForSubtree(parentComponent) {
14148 if (!parentComponent) {
14149 return emptyObject;
14150 }
14151
14152 var fiber = get(parentComponent);
14153 var parentContext = findCurrentUnmaskedContext(fiber);
14154 return isContextProvider(fiber) ? processChildContext(fiber, parentContext) : parentContext;
14155 }
14156
14157 function scheduleRootUpdate(current, element, currentTime, expirationTime, callback) {
14158 {

Callers 1

Calls 4

getFunction · 0.70
isContextProviderFunction · 0.70
processChildContextFunction · 0.70

Tested by

no test coverage detected