From 63c7d946e971885854016c2cf5f9e4cde9441993 Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Mon, 17 Apr 2023 03:58:56 +0300 Subject: [PATCH] removed eslint exception --- src/features/machines/components/common/WakeComponent.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/features/machines/components/common/WakeComponent.js b/src/features/machines/components/common/WakeComponent.js index 98bbd5a..cd144aa 100644 --- a/src/features/machines/components/common/WakeComponent.js +++ b/src/features/machines/components/common/WakeComponent.js @@ -82,8 +82,7 @@ const WakeComponent = ({ machine, addLog, disabled }) => { onError: () => {} } ); - }, [machine, log, pingInterval]); // eslint-disable-line react-hooks/exhaustive-deps - // if "api" is added in pingInLoop dependencies, the useEffect is triggered in loop + }, [machine, log, pingInterval]); useEffect(pingInLoop, [trigger, pingInLoop]);