From fdc6698825c9ea045886bfdf3275e032ac6fcea2 Mon Sep 17 00:00:00 2001 From: Mike Okoth <65109328+myk4040okothogodo@users.noreply.github.com> Date: Mon, 27 Jun 2022 00:08:47 +0300 Subject: [PATCH] Update App.js eact Hook useEffect has missing dependencies: 'setCurrentColor' and 'setCurrentMode'. Either include them or remove the dependency array react-hooks/exhaustive-deps --- src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index fc9612c5..1a099b28 100644 --- a/src/App.js +++ b/src/App.js @@ -19,7 +19,7 @@ const App = () => { setCurrentColor(currentThemeColor); setCurrentMode(currentThemeMode); } - }, []); + }, [setCurrentMode, setCurrentColor]); return (