fix dependency

This commit is contained in:
plebeius.eth
2023-07-15 11:28:22 +02:00
parent c11f0503f3
commit 64a90e2dab
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -127,7 +127,7 @@ const All = () => {
if (feed) {
setFeedCacheState('all', true);
}
}, [feed.length, setFeedCacheState]);
}, [feed, setFeedCacheState]);
const handleThumbnailClick = (index, isMobile=false) => {
+1 -1
View File
@@ -146,7 +146,7 @@ const Board = () => {
if (feed) {
setFeedCacheState(selectedAddress, true);
}
}, [selectedAddress, setFeedCacheState, feed.length]);
}, [selectedAddress, setFeedCacheState, feed]);
useEffect(() => {
+1 -1
View File
@@ -126,7 +126,7 @@ const Subscriptions = () => {
if (feed) {
setFeedCacheState('subscriptions', true);
}
}, [feed.length, setFeedCacheState]);
}, [feed, setFeedCacheState]);
const handleThumbnailClick = (index, isMobile=false) => {
if (isMobile) {