MCPcopy
hub / github.com/vuejs/core / hydrateSubTree

Function hydrateSubTree

packages/runtime-core/src/renderer.ts:1351–1372  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1349 if (el && hydrateNode) {
1350 // vnode has adopted host node - perform hydration instead of mount.
1351 const hydrateSubTree = () => {
1352 if (__DEV__) {
1353 startMeasure(instance, `render`)
1354 }
1355 instance.subTree = renderComponentRoot(instance)
1356 if (__DEV__) {
1357 endMeasure(instance, `render`)
1358 }
1359 if (__DEV__) {
1360 startMeasure(instance, `hydrate`)
1361 }
1362 hydrateNode!(
1363 el as Node,
1364 instance.subTree,
1365 instance,
1366 parentSuspense,
1367 null,
1368 )
1369 if (__DEV__) {
1370 endMeasure(instance, `hydrate`)
1371 }
1372 }
1373
1374 if (
1375 isAsyncWrapperVNode &&

Callers 1

componentUpdateFnFunction · 0.85

Calls 3

startMeasureFunction · 0.90
renderComponentRootFunction · 0.90
endMeasureFunction · 0.90

Tested by

no test coverage detected