diff options
Diffstat (limited to 'modern/src/reactHelper.js')
-rw-r--r-- | modern/src/reactHelper.js | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |