MCPcopy Create free account
hub / github.com/reactjs/react-rails / getChildHostContext

Function getChildHostContext

lib/assets/react-source/development/react.js:11142–11152  ·  view source on GitHub ↗
(parentHostContext, type, rootContainerInstance)

Source from the content-addressed store, hash-verified

11140 }
11141 }
11142 function getChildHostContext(parentHostContext, type, rootContainerInstance) {
11143 {
11144 var parentHostContextDev = parentHostContext;
11145 var namespace = getChildNamespace(parentHostContextDev.namespace, type);
11146 var ancestorInfo = updatedAncestorInfo(parentHostContextDev.ancestorInfo, type);
11147 return {
11148 namespace: namespace,
11149 ancestorInfo: ancestorInfo
11150 };
11151 }
11152 }
11153 function getPublicInstance(instance) {
11154 return instance;
11155 }

Callers 1

pushHostContextFunction · 0.85

Calls 2

updatedAncestorInfoFunction · 0.85
getChildNamespaceFunction · 0.70

Tested by

no test coverage detected