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

Function getContextForSubtree

code/new-context-api/public/app.js:13415–13423  ·  view source on GitHub ↗
(parentComponent)

Source from the content-addressed store, hash-verified

13413
13414
13415 function getContextForSubtree(parentComponent) {
13416 if (!parentComponent) {
13417 return emptyObject;
13418 }
13419
13420 var fiber = get(parentComponent);
13421 var parentContext = findCurrentUnmaskedContext(fiber);
13422 return isContextProvider(fiber) ? processChildContext(fiber, parentContext) : parentContext;
13423 }
13424
13425 function scheduleRootUpdate(current, element, currentTime, expirationTime, callback) {
13426 {

Callers 1

Calls 4

getFunction · 0.70
isContextProviderFunction · 0.70
processChildContextFunction · 0.70

Tested by

no test coverage detected