Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
watch
Function · 0.85
doWatch
Function · 0.85
Calls
2
remove
Function · 0.90
stop
Method · 0.45
Tested by
no test coverage detected