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

Function handleExit

packages/reactivity/__tests__/effectScope.spec.ts:406–414  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

404 }
405
406 const handleExit = () => {
407 const status = rs.value
408 status.stage = 0
409 const watchScope = status.scope
410 status.scope = null
411 if (watchScope) {
412 watchScope.stop()
413 }
414 }
415
416 expect(rs.value.stage).toBe(0)
417 expect(renderCount).toBe(1)

Callers 1

Calls 1

stopMethod · 0.45

Tested by

no test coverage detected