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

Method value

packages/reactivity/src/ref.ts:129–140  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

127 }
128
129 get value() {
130 if (__DEV__) {
131 this.dep.track({
132 target: this,
133 type: TrackOpTypes.GET,
134 key: 'value',
135 })
136 } else {
137 this.dep.track()
138 }
139 return this._value
140 }
141
142 set value(newValue) {
143 const oldValue = this._rawValue

Callers

nothing calls this directly

Calls 7

isShallowFunction · 0.90
isReadonlyFunction · 0.90
toRawFunction · 0.90
hasChangedFunction · 0.90
toReactiveFunction · 0.90
trackMethod · 0.80
triggerMethod · 0.45

Tested by

no test coverage detected