chore: remove unnecessary casting

This commit is contained in:
Evan You 2021-06-26 21:35:25 -04:00
parent f680074468
commit fddef8bb74

View File

@ -175,8 +175,8 @@ function doWatch(
let isMultiSource = false
if (isRef(source)) {
getter = () => (source as Ref).value
forceTrigger = !!(source as Ref)._shallow
getter = () => source.value
forceTrigger = !!source._shallow
} else if (isReactive(source)) {
getter = () => source
deep = true