From 7b754d0859acae8e6bce87bdba0daebf6f4b22a7 Mon Sep 17 00:00:00 2001 From: fatemeh paghar Date: Fri, 20 Oct 2023 18:16:05 +0330 Subject: [PATCH] refactor(use-watch-localstorage-value.ts): remove unneccesary dependency array --- src/helpers/use-watch-localstorage-value.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/use-watch-localstorage-value.ts b/src/helpers/use-watch-localstorage-value.ts index 7b030547c8..2a244ffb47 100644 --- a/src/helpers/use-watch-localstorage-value.ts +++ b/src/helpers/use-watch-localstorage-value.ts @@ -19,5 +19,5 @@ export const useWatchLocalStorageValue = ({ useEffect(() => { window.addEventListener('storage', handleStorageChange); return () => window.removeEventListener('storage', handleStorageChange); - }, []); + }); };