MCPcopy
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

createdFunction · 0.70
useCssVarsFunction · 0.50
setVarsFunction · 0.50
createWatcherFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected