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

Method stop

packages/reactivity/src/effect.ts:194–204  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

192 }
193
194 stop(): void {
195 if (this.flags & EffectFlags.ACTIVE) {
196 for (let link = this.deps; link; link = link.nextDep) {
197 removeSub(link)
198 }
199 this.deps = this.depsTail = undefined
200 cleanupEffect(this)
201 this.onStop && this.onStop()
202 this.flags &= ~EffectFlags.ACTIVE
203 }
204 }
205
206 trigger(): void {
207 if (this.flags & EffectFlags.PAUSED) {

Callers 12

effectFunction · 0.95
benchEffectCreateAndStopFunction · 0.45
stopFunction · 0.45
watchHandleFunction · 0.45
handleExitFunction · 0.45
watch.spec.tsFile · 0.45
computed.spec.tsFile · 0.45
reactive.spec.tsFile · 0.45
effect.spec.tsFile · 0.45
unmountComponentFunction · 0.45
installCompatMountFunction · 0.45

Calls 2

removeSubFunction · 0.85
cleanupEffectFunction · 0.85

Tested by 1

handleExitFunction · 0.36