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

Function watchHandle

packages/reactivity/src/watch.ts:214–219  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

212
213 const scope = getCurrentScope()
214 const watchHandle: WatchHandle = () => {
215 effect.stop()
216 if (scope && scope.active) {
217 remove(scope.effects, effect)
218 }
219 }
220
221 if (once && cb) {
222 const _cb = cb

Callers 2

watchFunction · 0.85
doWatchFunction · 0.85

Calls 2

removeFunction · 0.90
stopMethod · 0.45

Tested by

no test coverage detected