From 96fffe6ec30ce5830a7fb4e3c99c3ef44be86652 Mon Sep 17 00:00:00 2001 From: LiuSeen <91084928+liuseen-l@users.noreply.github.com> Date: Mon, 8 Jan 2024 14:19:07 +0800 Subject: [PATCH] chore(comments): dep changed from set to map (#10019) [ci skip] --- packages/reactivity/src/reactiveEffect.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/reactivity/src/reactiveEffect.ts b/packages/reactivity/src/reactiveEffect.ts index 09985e1ea..6bf0e7511 100644 --- a/packages/reactivity/src/reactiveEffect.ts +++ b/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 const targetMap = new WeakMap()