mirror of https://github.com/vuejs/core.git
refactor(reactivity): simplify isDirty condition (#11933)
This commit is contained in:
parent
817dca8712
commit
346bfaf760
|
|
@ -311,8 +311,9 @@ function isDirty(sub: Subscriber): boolean {
|
||||||
for (let link = sub.deps; link; link = link.nextDep) {
|
for (let link = sub.deps; link; link = link.nextDep) {
|
||||||
if (
|
if (
|
||||||
link.dep.version !== link.version ||
|
link.dep.version !== link.version ||
|
||||||
(link.dep.computed && refreshComputed(link.dep.computed)) ||
|
(link.dep.computed &&
|
||||||
link.dep.version !== link.version
|
(refreshComputed(link.dep.computed) ||
|
||||||
|
link.dep.version !== link.version))
|
||||||
) {
|
) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue