From 6282e7a9a75ee56896af973385676f649997d074 Mon Sep 17 00:00:00 2001 From: ALi Josheghani Date: Sat, 14 Sep 2024 22:02:40 +0330 Subject: [PATCH] Refactor: Add dispatch dependency to useEffect in Layout component --- src/layout/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layout/index.tsx b/src/layout/index.tsx index 0060108..41b687a 100644 --- a/src/layout/index.tsx +++ b/src/layout/index.tsx @@ -23,7 +23,7 @@ const Layout = () => { console.error("Element with ID 'configs' not found"); } }, 100); // Scroll to 100% of the page height - }, [configs]); + }, [configs,dispatch]); return ( <>