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

Function performHydrate

packages/runtime-core/src/apiAsyncComponent.ts:128–140  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

126 let patched = false
127 ;(instance.bu || (instance.bu = [])).push(() => (patched = true))
128 const performHydrate = () => {
129 // skip hydration if the component has been patched
130 if (patched) {
131 if (__DEV__) {
132 warn(
133 `Skipping lazy hydration for component '${getComponentName(resolvedComp!) || resolvedComp!.__file}': ` +
134 `it was updated before lazy hydration performed.`,
135 )
136 }
137 return
138 }
139 hydrate()
140 }
141 const doHydrate = hydrateStrategy
142 ? () => {
143 const teardown = hydrateStrategy(performHydrate, cb =>

Callers

nothing calls this directly

Calls 3

warnFunction · 0.90
getComponentNameFunction · 0.90
hydrateFunction · 0.85

Tested by

no test coverage detected