aboutsummaryrefslogtreecommitdiff
path: root/modern/src/reactHelper.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-11-01 20:57:02 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2020-11-01 20:57:02 -0800
commitcea47047f296b25794ebb06f679b590c0b42448e (patch)
treeda6d49cbb7da9db5f68ef37c931d0d4085286c93 /modern/src/reactHelper.js
parentfb330f777ceb0e531699ea0842c0199622114288 (diff)
downloadtrackermap-web-cea47047f296b25794ebb06f679b590c0b42448e.tar.gz
trackermap-web-cea47047f296b25794ebb06f679b590c0b42448e.tar.bz2
trackermap-web-cea47047f296b25794ebb06f679b590c0b42448e.zip
Enable mapbox maps
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 cd161d46..b0eb0169 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
+};