MCPcopy Index your code
hub / github.com/plotly/dash / getContextForSubtree

Function getContextForSubtree

dash/deps/react-dom@18.2.0.js:28723–28740  ·  view source on GitHub ↗
(parentComponent)

Source from the content-addressed store, hash-verified

28721 }
28722
28723 function getContextForSubtree(parentComponent) {
28724 if (!parentComponent) {
28725 return emptyContextObject;
28726 }
28727
28728 var fiber = get(parentComponent);
28729 var parentContext = findCurrentUnmaskedContext(fiber);
28730
28731 if (fiber.tag === ClassComponent) {
28732 var Component = fiber.type;
28733
28734 if (isContextProvider(Component)) {
28735 return processChildContext(fiber, Component, parentContext);
28736 }
28737 }
28738
28739 return parentContext;
28740 }
28741
28742 function findHostInstanceWithWarning(component, methodName) {
28743 {

Callers 2

createHydrationContainerFunction · 0.70
updateContainerFunction · 0.70

Calls 4

getFunction · 0.70
isContextProviderFunction · 0.70
processChildContextFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…