mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-01 16:55:21 +03:00
Add ability to restart
This commit is contained in:
parent
d076e76d39
commit
36d6a5a51b
@ -75,7 +75,7 @@ export function MqttProvider({
|
||||
export function useMqtt(watchTopic, publishTopic, defaultValue = null) {
|
||||
const { state, ws } = useContext(Mqtt);
|
||||
|
||||
const value = state[watchTopic] || { payload: null };
|
||||
const value = state[watchTopic] || { payload: defaultValue };
|
||||
|
||||
const send = useCallback(
|
||||
(payload) => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user