fix(watch): fix watching multiple sources containing shallowRef (#5381)

fix #5371
This commit is contained in:
edison
2022-05-13 08:20:04 +08:00
committed by GitHub
parent 04fff05f00
commit 220f255fe9
2 changed files with 16 additions and 1 deletions

View File

@@ -212,7 +212,7 @@ function doWatch(
deep = true
} else if (isArray(source)) {
isMultiSource = true
forceTrigger = source.some(isReactive)
forceTrigger = source.some(s => isReactive(s) || isShallow(s))
getter = () =>
source.map(s => {
if (isRef(s)) {