aboutsummaryrefslogtreecommitdiff
path: root/modern/src/reactHelper.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/reactHelper.js')
-rw-r--r--modern/src/reactHelper.js2
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
}