mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-12-23 19:11:14 +01:00
Only revalidate if event update is valid (#14302)
This commit is contained in:
parent
40bb4765d4
commit
acccc6fd93
@ -184,7 +184,9 @@ export default function Explore() {
|
||||
const eventUpdate = useEventUpdate();
|
||||
|
||||
useEffect(() => {
|
||||
mutate();
|
||||
if (eventUpdate) {
|
||||
mutate();
|
||||
}
|
||||
// mutate / revalidate when event description updates come in
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [eventUpdate]);
|
||||
|
Loading…
Reference in New Issue
Block a user