mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-06-21 03:41:55 +03:00
stop polling debug_replay/status after live_ready
This commit is contained in:
parent
cff4eacb74
commit
594ab117cf
@ -121,7 +121,7 @@ export default function Replay() {
|
||||
mutate: refreshStatus,
|
||||
isLoading,
|
||||
} = useSWR<DebugReplayStatus>("debug_replay/status", {
|
||||
refreshInterval: 1000,
|
||||
refreshInterval: (latestData) => (latestData?.live_ready ? 0 : 1000),
|
||||
});
|
||||
const { payload: replayJob } =
|
||||
useJobStatus<DebugReplayJobResults>("debug_replay");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user