chore: remove unnecessary casting
This commit is contained in:
parent
f680074468
commit
fddef8bb74
@ -175,8 +175,8 @@ function doWatch(
|
|||||||
let isMultiSource = false
|
let isMultiSource = false
|
||||||
|
|
||||||
if (isRef(source)) {
|
if (isRef(source)) {
|
||||||
getter = () => (source as Ref).value
|
getter = () => source.value
|
||||||
forceTrigger = !!(source as Ref)._shallow
|
forceTrigger = !!source._shallow
|
||||||
} else if (isReactive(source)) {
|
} else if (isReactive(source)) {
|
||||||
getter = () => source
|
getter = () => source
|
||||||
deep = true
|
deep = true
|
||||||
|
Loading…
Reference in New Issue
Block a user