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

Method value

packages/reactivity/src/computed.ts:131–145  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

129 }
130
131 get value(): T {
132 const link = __DEV__
133 ? this.dep.track({
134 target: this,
135 type: TrackOpTypes.GET,
136 key: 'value',
137 })
138 : this.dep.track()
139 refreshComputed(this)
140 // sync version after evaluation
141 if (link) {
142 link.version = this.dep.version
143 }
144 return this._value
145 }
146
147 set value(newValue) {
148 if (this.setter) {

Callers

nothing calls this directly

Calls 3

refreshComputedFunction · 0.90
warnFunction · 0.90
trackMethod · 0.80

Tested by

no test coverage detected