From 01c83cdd99a97615737acb5543124a61614ea86a Mon Sep 17 00:00:00 2001 From: Afshin Mehrabani Date: Sun, 14 Jan 2024 15:03:20 +0000 Subject: [PATCH] Remove deps list from useSelector hook --- src/hooks/useSelector.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useSelector.ts b/src/hooks/useSelector.ts index 74ade663..ed3d7b29 100644 --- a/src/hooks/useSelector.ts +++ b/src/hooks/useSelector.ts @@ -15,7 +15,7 @@ export default function useSelector(selector: (state) => T) { }); return unsubscribe; - }, [store, current]); + }, []); return current; }