mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
Fix reload spamming (#10139)
This commit is contained in:
parent
d416ae86d7
commit
b6ef1e4330
@ -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), []);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user