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

Function getContextForSubtree

code/event-handlers/public/app.js:13384–13392  ·  view source on GitHub ↗
(parentComponent)

Source from the content-addressed store, hash-verified

13382
13383
13384 function getContextForSubtree(parentComponent) {
13385 if (!parentComponent) {
13386 return emptyObject;
13387 }
13388
13389 var fiber = get(parentComponent);
13390 var parentContext = findCurrentUnmaskedContext(fiber);
13391 return isContextProvider(fiber) ? processChildContext(fiber, parentContext) : parentContext;
13392 }
13393
13394 function scheduleRootUpdate(current, element, currentTime, expirationTime, callback) {
13395 {

Callers 1

Calls 4

getFunction · 0.70
isContextProviderFunction · 0.70
processChildContextFunction · 0.70

Tested by

no test coverage detected