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

Function getContextForSubtree

code/third-party/public/app.js:13287–13295  ·  view source on GitHub ↗
(parentComponent)

Source from the content-addressed store, hash-verified

13285
13286
13287 function getContextForSubtree(parentComponent) {
13288 if (!parentComponent) {
13289 return emptyObject;
13290 }
13291
13292 var fiber = get(parentComponent);
13293 var parentContext = findCurrentUnmaskedContext(fiber);
13294 return isContextProvider(fiber) ? processChildContext(fiber, parentContext) : parentContext;
13295 }
13296
13297 function scheduleRootUpdate(current, element, currentTime, expirationTime, callback) {
13298 {

Callers 1

Calls 4

getFunction · 0.70
isContextProviderFunction · 0.70
processChildContextFunction · 0.70

Tested by

no test coverage detected