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

Function doHydrate

packages/runtime-core/src/hydrationStrategies.ts:89–97  ·  view source on GitHub ↗
(e: Event)

Source from the content-addressed store, hash-verified

87 if (isString(interactions)) interactions = [interactions]
88 let hasHydrated = false
89 const doHydrate = (e: Event) => {
90 if (!hasHydrated) {
91 hasHydrated = true
92 teardown()
93 hydrate()
94 // replay event
95 e.target!.dispatchEvent(new (e.constructor as any)(e.type, e))
96 }
97 }
98 const teardown = () => {
99 forEach(el => {
100 for (const i of interactions) {

Callers 1

__asyncHydrateFunction · 0.85

Calls 2

teardownFunction · 0.85
hydrateFunction · 0.85

Tested by

no test coverage detected