aboutsummaryrefslogtreecommitdiff
path: root/modern/src/reactHelper.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-11-01 20:31:10 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2020-11-01 20:31:10 -0800
commita20e4b3348285607631630e6dda415a9e29e967d (patch)
treed8c36f75f9372b9c4a592cf5d742ff41e0856e3f /modern/src/reactHelper.js
parentbee6677be113e4215d07abd54db32dd4fc37b3b0 (diff)
downloadtrackermap-web-a20e4b3348285607631630e6dda415a9e29e967d.tar.gz
trackermap-web-a20e4b3348285607631630e6dda415a9e29e967d.tar.bz2
trackermap-web-a20e4b3348285607631630e6dda415a9e29e967d.zip
Fix react warnings
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
}