(vnode, container)
| 117 | } = rendererInternals |
| 118 | |
| 119 | const hydrate: RootHydrateFunction = (vnode, container) => { |
| 120 | if (!container.hasChildNodes()) { |
| 121 | ;(__DEV__ || __FEATURE_PROD_HYDRATION_MISMATCH_DETAILS__) && |
| 122 | warn( |
| 123 | `Attempting to hydrate existing markup but container is empty. ` + |
| 124 | `Performing full mount instead.`, |
| 125 | ) |
| 126 | patch(null, vnode, container) |
| 127 | flushPostFlushCbs() |
| 128 | container._vnode = vnode |
| 129 | return |
| 130 | } |
| 131 | |
| 132 | hydrateNode(container.firstChild!, vnode, null, null, null) |
| 133 | flushPostFlushCbs() |
| 134 | container._vnode = vnode |
| 135 | } |
| 136 | |
| 137 | const hydrateNode = ( |
| 138 | node: Node, |
no test coverage detected