mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-01 16:55:21 +03:00
Add ability to restart
I restored the original line as it can be misleading.
This commit is contained in:
parent
203c063119
commit
c611a48a73
@ -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