Browse Source

fix(reactivity): remove link check to align with 3.5 (#13654)

close #13620
Doctor Wu 9 months ago
parent
commit
3cb27d156f
1 changed files with 1 additions and 7 deletions
  1. 1 7
      packages/reactivity/src/system.ts

+ 1 - 7
packages/reactivity/src/system.ts

@@ -77,14 +77,8 @@ export function link(dep: ReactiveNode, sub: ReactiveNode): void {
       return
     }
   }
+  // TODO: maybe can find a good way to check duplicate link
   const prevSub = dep.subsTail
-  if (
-    prevSub !== undefined &&
-    prevSub.sub === sub &&
-    (!recursedCheck || isValidLink(prevSub, sub))
-  ) {
-    return
-  }
   const newLink =
     (sub.depsTail =
     dep.subsTail =