Refactor: Add dispatch dependency to useEffect in Layout component
This commit is contained in:
@@ -23,7 +23,7 @@ const Layout = () => {
|
|||||||
console.error("Element with ID 'configs' not found");
|
console.error("Element with ID 'configs' not found");
|
||||||
}
|
}
|
||||||
}, 100); // Scroll to 100% of the page height
|
}, 100); // Scroll to 100% of the page height
|
||||||
}, [configs]);
|
}, [configs,dispatch]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|||||||
Reference in New Issue
Block a user