revert: "wip: handle value -> value assignment in reactive object"
This reverts commit 61ab483af1
.
This commit is contained in:
parent
5aa42f137f
commit
2fc0d599db
@ -43,7 +43,7 @@ function set(
|
|||||||
const hadKey = hasOwnProperty.call(target, key)
|
const hadKey = hasOwnProperty.call(target, key)
|
||||||
const oldValue = target[key]
|
const oldValue = target[key]
|
||||||
if (isValue(oldValue)) {
|
if (isValue(oldValue)) {
|
||||||
oldValue.value = isValue(value) ? value.value : value
|
oldValue.value = value
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
const result = Reflect.set(target, key, value, receiver)
|
const result = Reflect.set(target, key, value, receiver)
|
||||||
|
Loading…
Reference in New Issue
Block a user