Parcourir la source

Add ability to restart

disable warning
ElMoribond il y a 3 ans
Parent
commit
fd61ca20b0
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      web/src/api/mqtt.jsx

+ 1 - 1
web/src/api/mqtt.jsx

@@ -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 };