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

Function captureValue

packages/runtime-core/__tests__/apiWatch.spec.ts:387–389  ·  view source on GitHub ↗
(value: number)

Source from the content-addressed store, hash-verified

385 let dummy = 0
386 const count = ref<number>(1)
387 const captureValue = (value: number) => {
388 dummy = value
389 }
390 const watchCallback = vi.fn(newValue => {
391 captureValue(newValue)
392 })

Callers 2

apiWatch.spec.tsFile · 0.85
createdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected