From 2cf0a88f4ed6adb55b8e09e4b815b8a59975d88d Mon Sep 17 00:00:00 2001 From: Daishi Kato Date: Sat, 11 Jan 2025 08:59:39 +0900 Subject: [PATCH] Update src/vanilla/store.ts Co-authored-by: David Maskasky --- src/vanilla/store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vanilla/store.ts b/src/vanilla/store.ts index 653e738a15..0ff73b6a82 100644 --- a/src/vanilla/store.ts +++ b/src/vanilla/store.ts @@ -468,7 +468,7 @@ const buildStore = (...storeArgs: StoreArgs): Store => { visiting.add(a) // Push unvisited dependents onto the stack for (const [d, s] of getMountedOrPendingDependents(aState)) { - if (a !== d && !visiting.has(d)) { + if (!visiting.has(d)) { stack.push([d, s]) } }