Skip to content

Commit 3cb27d1

Browse files
authored
fix(reactivity): remove link check to align with 3.5 (#13654)
close #13620
1 parent ad21b1b commit 3cb27d1

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

packages/reactivity/src/system.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,8 @@ export function link(dep: ReactiveNode, sub: ReactiveNode): void {
7777
return
7878
}
7979
}
80+
// TODO: maybe can find a good way to check duplicate link
8081
const prevSub = dep.subsTail
81-
if (
82-
prevSub !== undefined &&
83-
prevSub.sub === sub &&
84-
(!recursedCheck || isValidLink(prevSub, sub))
85-
) {
86-
return
87-
}
8882
const newLink =
8983
(sub.depsTail =
9084
dep.subsTail =

0 commit comments

Comments
 (0)