mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
Live preview gifs should be updated on refocus (#10007)
This commit is contained in:
parent
824e5ec3a3
commit
c7e9fe7234
@ -14,10 +14,10 @@ function Live() {
|
|||||||
|
|
||||||
// recent events
|
// recent events
|
||||||
const { payload: eventUpdate } = useFrigateEvents();
|
const { payload: eventUpdate } = useFrigateEvents();
|
||||||
const { data: allEvents, mutate: updateEvents } = useSWR<FrigateEvent[]>(
|
const { data: allEvents, mutate: updateEvents } = useSWR<FrigateEvent[]>([
|
||||||
["events", { limit: 10 }],
|
"events",
|
||||||
{ revalidateOnFocus: false }
|
{ limit: 10 },
|
||||||
);
|
]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!eventUpdate) {
|
if (!eventUpdate) {
|
||||||
|
Loading…
Reference in New Issue
Block a user