Refactor: Add dispatch dependency to useEffect in Layout component

This commit is contained in:
ALi Josheghani
2024-09-14 22:02:40 +03:30
parent de99e296b8
commit 6282e7a9a7

View File

@@ -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 (
<>