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

Function getContextForSubtree

code/styling/public/app.js:14054–14062  ·  view source on GitHub ↗
(parentComponent)

Source from the content-addressed store, hash-verified

14052
14053
14054 function getContextForSubtree(parentComponent) {
14055 if (!parentComponent) {
14056 return emptyObject;
14057 }
14058
14059 var fiber = get(parentComponent);
14060 var parentContext = findCurrentUnmaskedContext(fiber);
14061 return isContextProvider(fiber) ? processChildContext(fiber, parentContext) : parentContext;
14062 }
14063
14064 function scheduleRootUpdate(current, element, currentTime, expirationTime, callback) {
14065 {

Callers 1

Calls 4

getFunction · 0.70
isContextProviderFunction · 0.70
processChildContextFunction · 0.70

Tested by

no test coverage detected