MCPcopy Create free account
hub / github.com/caseywebdev/react-list / getChildHostContextProd

Function getChildHostContextProd

docs/index.js:16825–16838  ·  view source on GitHub ↗
(parentNamespace, type)

Source from the content-addressed store, hash-verified

16823 }
16824}
16825function getChildHostContextProd(parentNamespace, type) {
16826 if (0 === parentNamespace)
16827 switch (type) {
16828 case "svg":
16829 return 1;
16830 case "math":
16831 return 2;
16832 default:
16833 return 0;
16834 }
16835 return 1 === parentNamespace && "foreignObject" === type
16836 ? 0
16837 : parentNamespace;
16838}
16839function shouldSetTextContent(type, props) {
16840 return (
16841 "textarea" === type ||

Callers 2

pushHostContainerFunction · 0.85
pushHostContextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…