From a20e4b3348285607631630e6dda415a9e29e967d Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 1 Nov 2020 20:31:10 -0800 Subject: Fix react warnings --- modern/src/reactHelper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modern/src/reactHelper.js') diff --git a/modern/src/reactHelper.js b/modern/src/reactHelper.js index 9286c577..cd161d46 100644 --- a/modern/src/reactHelper.js +++ b/modern/src/reactHelper.js @@ -12,5 +12,5 @@ export const usePrevious = value => { export const useEffectAsync = (effect, deps) => { useEffect(() => { effect(); - }, deps); + }, [effect, ...deps]); // eslint-disable-line react-hooks/exhaustive-deps } -- cgit v1.2.3