Fix reload spamming (#10139)

This commit is contained in:
Nicolas Mowen 2024-02-28 13:25:02 -07:00 committed by GitHub
parent d416ae86d7
commit b6ef1e4330
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -93,9 +93,7 @@ export default function Events() {
[reviewPages] [reviewPages]
); );
const onLoadNextPage = useCallback(() => { const onLoadNextPage = useCallback(() => setSize(size + 1), [size, setSize]);
setSize(size + 1);
}, [size]);
const reloadData = useCallback(() => setBeforeTs(Date.now() / 1000), []); const reloadData = useCallback(() => setBeforeTs(Date.now() / 1000), []);