MCPcopy Index your code
hub / github.com/krasimir/react-in-patterns / getContextForSubtree

Function getContextForSubtree

code/composition/public/app.js:14192–14200  ·  view source on GitHub ↗
(parentComponent)

Source from the content-addressed store, hash-verified

14190
14191
14192 function getContextForSubtree(parentComponent) {
14193 if (!parentComponent) {
14194 return emptyObject;
14195 }
14196
14197 var fiber = get(parentComponent);
14198 var parentContext = findCurrentUnmaskedContext(fiber);
14199 return isContextProvider(fiber) ? processChildContext(fiber, parentContext) : parentContext;
14200 }
14201
14202 function scheduleRootUpdate(current, element, currentTime, expirationTime, callback) {
14203 {

Callers 1

Calls 4

getFunction · 0.70
isContextProviderFunction · 0.70
processChildContextFunction · 0.70

Tested by

no test coverage detected