diff --git a/packages/reactivity/src/ref.ts b/packages/reactivity/src/ref.ts index 92a4ba7f1de..eb77900319f 100644 --- a/packages/reactivity/src/ref.ts +++ b/packages/reactivity/src/ref.ts @@ -168,6 +168,7 @@ class RefImpl implements ReactiveNode { if (hasChanged(newValue, oldValue)) { this.flags |= _ReactiveFlags.Dirty this._rawValue = newValue + this._oldValue = oldValue this._value = !useDirectValue && this._wrap ? this._wrap(newValue) : newValue const subs = this.subs