mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-25 10:20:32 -06:00
Fix reload spamming (#10139)
This commit is contained in:
parent
d416ae86d7
commit
b6ef1e4330
@ -93,9 +93,7 @@ export default function Events() {
|
||||
[reviewPages]
|
||||
);
|
||||
|
||||
const onLoadNextPage = useCallback(() => {
|
||||
setSize(size + 1);
|
||||
}, [size]);
|
||||
const onLoadNextPage = useCallback(() => setSize(size + 1), [size, setSize]);
|
||||
|
||||
const reloadData = useCallback(() => setBeforeTs(Date.now() / 1000), []);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user