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) {
|
if (feed) {
|
||||||
setFeedCacheState('all', true);
|
setFeedCacheState('all', true);
|
||||||
}
|
}
|
||||||
}, [feed.length, setFeedCacheState]);
|
}, [feed, setFeedCacheState]);
|
||||||
|
|
||||||
|
|
||||||
const handleThumbnailClick = (index, isMobile=false) => {
|
const handleThumbnailClick = (index, isMobile=false) => {
|
||||||
|
|||||||
@@ -146,7 +146,7 @@ const Board = () => {
|
|||||||
if (feed) {
|
if (feed) {
|
||||||
setFeedCacheState(selectedAddress, true);
|
setFeedCacheState(selectedAddress, true);
|
||||||
}
|
}
|
||||||
}, [selectedAddress, setFeedCacheState, feed.length]);
|
}, [selectedAddress, setFeedCacheState, feed]);
|
||||||
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ const Subscriptions = () => {
|
|||||||
if (feed) {
|
if (feed) {
|
||||||
setFeedCacheState('subscriptions', true);
|
setFeedCacheState('subscriptions', true);
|
||||||
}
|
}
|
||||||
}, [feed.length, setFeedCacheState]);
|
}, [feed, setFeedCacheState]);
|
||||||
|
|
||||||
const handleThumbnailClick = (index, isMobile=false) => {
|
const handleThumbnailClick = (index, isMobile=false) => {
|
||||||
if (isMobile) {
|
if (isMobile) {
|
||||||
|
|||||||
Reference in New Issue
Block a user