mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
Add ability to restart
I restored the original line as it can be misleading.
This commit is contained in:
parent
e1b341788d
commit
f9add57ed4
@ -75,7 +75,7 @@ export function MqttProvider({
|
|||||||
export function useMqtt(watchTopic, publishTopic, defaultValue = null) {
|
export function useMqtt(watchTopic, publishTopic, defaultValue = null) {
|
||||||
const { state, ws } = useContext(Mqtt);
|
const { state, ws } = useContext(Mqtt);
|
||||||
|
|
||||||
const value = state[watchTopic] || { payload: defaultValue };
|
const value = state[watchTopic] || { payload: null };
|
||||||
|
|
||||||
const send = useCallback(
|
const send = useCallback(
|
||||||
(payload) => {
|
(payload) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user