diff --git a/packages/reactivity/src/ref.ts b/packages/reactivity/src/ref.ts index cf217c3db39..25473b4cc8c 100644 --- a/packages/reactivity/src/ref.ts +++ b/packages/reactivity/src/ref.ts @@ -56,12 +56,7 @@ function createRef(rawValue: unknown, shallow = false) { if (hasChanged(toRaw(newVal), rawValue)) { rawValue = newVal value = shallow ? newVal : convert(newVal) - trigger( - r, - TriggerOpTypes.SET, - 'value', - __DEV__ ? { newValue: newVal } : void 0 - ) + trigger(r, TriggerOpTypes.SET, 'value', newVal) } } } @@ -69,12 +64,7 @@ function createRef(rawValue: unknown, shallow = false) { } export function triggerRef(ref: Ref) { - trigger( - ref, - TriggerOpTypes.SET, - 'value', - __DEV__ ? { newValue: ref.value } : void 0 - ) + trigger(ref, TriggerOpTypes.SET, 'value', __DEV__ ? ref.value : void 0) } export function unref(ref: T): T extends Ref ? V : T {