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

Function created

packages/runtime-core/__tests__/apiWatch.spec.ts:394–400  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

392 })
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()
399 this.count = 2 // shouldn't trigger side effect
400 },
401 render() {
402 return h('div', this.count)
403 },

Callers

nothing calls this directly

Calls 4

onScopeDisposeFunction · 0.90
captureValueFunction · 0.85
stopFunction · 0.85
getterFunction · 0.70

Tested by

no test coverage detected