Add ability to restart

disable warning
This commit is contained in:
ElMoribond 2021-06-24 08:57:21 +02:00 committed by Blake Blackshear
parent f9add57ed4
commit fd61ca20b0

View File

@ -87,7 +87,7 @@ export function useMqtt(watchTopic, publishTopic, defaultValue = null) {
}) })
); );
}, },
[ws, watchTopic, publishTopic] [ws, watchTopic, publishTopic] // eslint-disable-line react-hooks/exhaustive-deps
); );
return { value, send, connected: state.__connected }; return { value, send, connected: state.__connected };