MCPcopy Create free account
hub / github.com/microsoft/SandDance / getChildHostContext

Function getChildHostContext

docs/external/js/react-dom.development.js:7570–7580  ·  view source on GitHub ↗
(parentHostContext, type, rootContainerInstance)

Source from the content-addressed store, hash-verified

7568 }
7569 }
7570 function getChildHostContext(parentHostContext, type, rootContainerInstance) {
7571 {
7572 var parentHostContextDev = parentHostContext;
7573 var namespace = getChildNamespace(parentHostContextDev.namespace, type);
7574 var ancestorInfo = updatedAncestorInfo(parentHostContextDev.ancestorInfo, type);
7575 return {
7576 namespace: namespace,
7577 ancestorInfo: ancestorInfo
7578 };
7579 }
7580 }
7581 function getPublicInstance(instance) {
7582 return instance;
7583 }

Callers 1

pushHostContextFunction · 0.85

Calls 2

getChildNamespaceFunction · 0.85
updatedAncestorInfoFunction · 0.85

Tested by

no test coverage detected