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

Function teardown

packages/runtime-core/src/hydrationStrategies.ts:98–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96 }
97 }
98 const teardown = () => {
99 forEach(el => {
100 for (const i of interactions) {
101 el.removeEventListener(i, doHydrate)
102 }
103 })
104 }
105 forEach(el => {
106 for (const i of interactions) {
107 el.addEventListener(i, doHydrate, { once: true })

Callers 1

doHydrateFunction · 0.85

Calls 1

forEachFunction · 0.50

Tested by

no test coverage detected