Skip to content

Commit 892d0fa

Browse files
committed
fix(reactivity): prevent endless recursion in computed getters
1 parent 6402b98 commit 892d0fa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/reactivity/src/dep.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,9 @@ export class Dep {
146146
}
147147
}
148148
for (let link = this.subs; link; link = link.prevSub) {
149-
link.sub.notify()
149+
if (link.sub !== this.computed) {
150+
link.sub.notify()
151+
}
150152
}
151153
} finally {
152154
endBatch()

0 commit comments

Comments
 (0)