mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-22 08:57:20 -06: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
|
||||
const { payload: eventUpdate } = useFrigateEvents();
|
||||
const { data: allEvents, mutate: updateEvents } = useSWR<FrigateEvent[]>(
|
||||
["events", { limit: 10 }],
|
||||
{ revalidateOnFocus: false }
|
||||
);
|
||||
const { data: allEvents, mutate: updateEvents } = useSWR<FrigateEvent[]>([
|
||||
"events",
|
||||
{ limit: 10 },
|
||||
]);
|
||||
|
||||
useEffect(() => {
|
||||
if (!eventUpdate) {
|
||||
|
Loading…
Reference in New Issue
Block a user