mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-08 04:51:14 +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,
|
mutate: refreshStatus,
|
||||||
isLoading,
|
isLoading,
|
||||||
} = useSWR<DebugReplayStatus>("debug_replay/status", {
|
} = useSWR<DebugReplayStatus>("debug_replay/status", {
|
||||||
refreshInterval: 1000,
|
refreshInterval: (latestData) => (latestData?.live_ready ? 0 : 1000),
|
||||||
});
|
});
|
||||||
const { payload: replayJob } =
|
const { payload: replayJob } =
|
||||||
useJobStatus<DebugReplayJobResults>("debug_replay");
|
useJobStatus<DebugReplayJobResults>("debug_replay");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user