mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
perf(home): add key to map, remove dep causing a loop
This commit is contained in:
@@ -20,7 +20,7 @@ const PopularThreads = ({ commentCid }) => {
|
||||
const commentMediaInfo = getCommentMediaInfo(comment);
|
||||
|
||||
return (
|
||||
<div className='board'>
|
||||
<div className='board' key={`${commentCid}`}>
|
||||
<div className='board-title' key='board-title'>
|
||||
<span>{subplebbit.title || subplebbit.address}</span>
|
||||
</div>
|
||||
@@ -111,7 +111,7 @@ const Home = () => {
|
||||
const uniqueCids = Array.from(new Set([...prevOrderedCids, ...newSfwListCids]));
|
||||
return uniqueCids.slice(0, 8);
|
||||
});
|
||||
}, [sfwSubs.subplebbits, sfwListCids]);
|
||||
}, [sfwSubs.subplebbits]);
|
||||
|
||||
const account = useAccount();
|
||||
const navigate = useNavigate();
|
||||
|
||||
Reference in New Issue
Block a user