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.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/modern/src/reactHelper.js b/modern/src/reactHelper.js
index cd161d4..b0eb016 100644
--- a/modern/src/reactHelper.js
+++ b/modern/src/reactHelper.js
@@ -7,10 +7,10 @@ export const usePrevious = value => {
ref.current = value;
});
return ref.current;
-}
+};
export const useEffectAsync = (effect, deps) => {
useEffect(() => {
effect();
- }, [effect, ...deps]); // eslint-disable-line react-hooks/exhaustive-deps
-}
+ }, deps); // eslint-disable-line react-hooks/exhaustive-deps
+};