Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/vuejs/core
/ getter
Function
getter
packages/runtime-core/__tests__/apiWatch.spec.ts:395–395 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
393
const
Comp = defineComponent({
394
created() {
395
const
getter = () => this.count
396
captureValue(getter())
// sets dummy to 1
397
const
stop = this.$watch(getter, watchCallback)
398
stop()
Callers
4
created
Function · 0.70
useCssVars
Function · 0.50
setVars
Function · 0.50
createWatcher
Function · 0.50
Calls
no outgoing calls
Tested by
no test coverage detected