(type, props, rootContainerInstance)
| 17031 | return null; |
| 17032 | } |
| 17033 | function 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 | } |
| 17052 | var preloadPropsMap = new Map(), |
| 17053 | preconnectsSet = new Set(); |
| 17054 | function getHoistableRoot(container) { |
no test coverage detected
searching dependent graphs…