From 2088698cc31b075bc74e637752b75c1864cdac71 Mon Sep 17 00:00:00 2001 From: love-sonkar Date: Sun, 6 Oct 2024 21:00:26 +0530 Subject: [PATCH] fixes #220 added empty depedency in useEffect --- src/components/Library/Library.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Library/Library.jsx b/src/components/Library/Library.jsx index a290803..eda5810 100644 --- a/src/components/Library/Library.jsx +++ b/src/components/Library/Library.jsx @@ -419,7 +419,7 @@ export default function Library({ filter, setFilter }) { //remove the empty dependency array useEffect(() => { fetchBooksFromDB(); - }); + }, []); // open hidden content when ellipsis icon is clicked const handleShowMore = (index) => {