فهرست منبع

chore(comments): dep changed from set to map (#10019) [ci skip]

LiuSeen 2 سال پیش
والد
کامیت
96fffe6ec3
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      packages/reactivity/src/reactiveEffect.ts

+ 1 - 1
packages/reactivity/src/reactiveEffect.ts

@@ -13,7 +13,7 @@ import {
 // The main WeakMap that stores {target -> key -> dep} connections.
 // Conceptually, it's easier to think of a dependency as a Dep class
 // which maintains a Set of subscribers, but we simply store them as
-// raw Sets to reduce memory overhead.
+// raw Maps to reduce memory overhead.
 type KeyToDepMap = Map<any, Dep>
 const targetMap = new WeakMap<object, KeyToDepMap>()