(factory: CustomRefFactory<T, S>)
| 304 | public _value: T = undefined! |
| 305 | |
| 306 | constructor(factory: CustomRefFactory<T, S>) { |
| 307 | const dep = (this.dep = new Dep()) |
| 308 | const { get, set } = factory(dep.track.bind(dep), dep.trigger.bind(dep)) |
| 309 | this._get = get |
| 310 | this._set = set |
| 311 | } |
| 312 | |
| 313 | get value(): T { |
| 314 | return (this._value = this._get()) |