MCPcopy Index your code
hub / github.com/caseywebdev/react-list / resolveSingletonInstance

Function resolveSingletonInstance

docs/index.js:17033–17051  ·  view source on GitHub ↗
(type, props, rootContainerInstance)

Source from the content-addressed store, hash-verified

17031 return null;
17032}
17033function resolveSingletonInstance(type, props, rootContainerInstance) {
17034 props = getOwnerDocumentFromRootContainer(rootContainerInstance);
17035 switch (type) {
17036 case "html":
17037 type = props.documentElement;
17038 if (!type) throw Error(formatProdErrorMessage(452));
17039 return type;
17040 case "head":
17041 type = props.head;
17042 if (!type) throw Error(formatProdErrorMessage(453));
17043 return type;
17044 case "body":
17045 type = props.body;
17046 if (!type) throw Error(formatProdErrorMessage(454));
17047 return type;
17048 default:
17049 throw Error(formatProdErrorMessage(451));
17050 }
17051}
17052var preloadPropsMap = new Map(),
17053 preconnectsSet = new Set();
17054function getHoistableRoot(container) {

Callers 2

beginWorkFunction · 0.85
completeWorkFunction · 0.85

Calls 3

formatProdErrorMessageFunction · 0.85
validateDOMNestingFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…