mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-10-24 10:49:01 -04:00
Live preview gifs should be updated on refocus (#10007)
This commit is contained in:
1 parent
824e5ec3a3
commit
c7e9fe7234
1 file changed
+4
-4
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user