mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-05-30 01:16:42 +02: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();
|
const eventUpdate = useEventUpdate();
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
mutate();
|
if (eventUpdate) {
|
||||||
|
mutate();
|
||||||
|
}
|
||||||
// mutate / revalidate when event description updates come in
|
// mutate / revalidate when event description updates come in
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, [eventUpdate]);
|
}, [eventUpdate]);
|
||||||
|
Loading…
Reference in New Issue
Block a user