From 61ab483af1ce744ae4cb617d3afea7ff21e4a49c Mon Sep 17 00:00:00 2001 From: Evan You Date: Tue, 13 Aug 2019 11:13:26 -0400 Subject: [PATCH] wip: handle value -> value assignment in reactive object --- packages/reactivity/src/baseHandlers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/reactivity/src/baseHandlers.ts b/packages/reactivity/src/baseHandlers.ts index cdb9f7b1..a5cbe15a 100644 --- a/packages/reactivity/src/baseHandlers.ts +++ b/packages/reactivity/src/baseHandlers.ts @@ -43,7 +43,7 @@ function set( const hadKey = hasOwnProperty.call(target, key) const oldValue = target[key] if (isValue(oldValue)) { - oldValue.value = value + oldValue.value = isValue(value) ? value.value : value return true } const result = Reflect.set(target, key, value, receiver)