From c7e9fe7234add527b4e36166d677ef9c753cbfaf Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Sat, 24 Feb 2024 06:50:33 -0700 Subject: [PATCH] Live preview gifs should be updated on refocus (#10007) --- web/src/pages/Live.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/src/pages/Live.tsx b/web/src/pages/Live.tsx index 3dd48114f..5a968e740 100644 --- a/web/src/pages/Live.tsx +++ b/web/src/pages/Live.tsx @@ -14,10 +14,10 @@ function Live() { // recent events const { payload: eventUpdate } = useFrigateEvents(); - const { data: allEvents, mutate: updateEvents } = useSWR( - ["events", { limit: 10 }], - { revalidateOnFocus: false } - ); + const { data: allEvents, mutate: updateEvents } = useSWR([ + "events", + { limit: 10 }, + ]); useEffect(() => { if (!eventUpdate) {