mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix dependency
This commit is contained in:
@@ -127,7 +127,7 @@ const All = () => {
|
||||
if (feed) {
|
||||
setFeedCacheState('all', true);
|
||||
}
|
||||
}, [feed.length, setFeedCacheState]);
|
||||
}, [feed, setFeedCacheState]);
|
||||
|
||||
|
||||
const handleThumbnailClick = (index, isMobile=false) => {
|
||||
|
||||
@@ -146,7 +146,7 @@ const Board = () => {
|
||||
if (feed) {
|
||||
setFeedCacheState(selectedAddress, true);
|
||||
}
|
||||
}, [selectedAddress, setFeedCacheState, feed.length]);
|
||||
}, [selectedAddress, setFeedCacheState, feed]);
|
||||
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
@@ -126,7 +126,7 @@ const Subscriptions = () => {
|
||||
if (feed) {
|
||||
setFeedCacheState('subscriptions', true);
|
||||
}
|
||||
}, [feed.length, setFeedCacheState]);
|
||||
}, [feed, setFeedCacheState]);
|
||||
|
||||
const handleThumbnailClick = (index, isMobile=false) => {
|
||||
if (isMobile) {
|
||||
|
||||
Reference in New Issue
Block a user