Skip to content

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.

[fix] remove dependencies from useEffect (componentDidMount) (#2930)

Igor Dykhta803b2f5408da
diff --git a/examples/demo-app/src/app.tsx b/examples/demo-app/src/app.tsx
index f19f98f46..c90914e56 100644
--- a/examples/demo-app/src/app.tsx
+++ b/examples/demo-app/src/app.tsx
@@ -163,8 +163,9 @@ const App = props => {
_loadSampleData();
// Notifications
- // _loadMockNotifications();
- }, [dispatch, id, provider, query]);
+
+ // no dependencies, as this was part of componentDidMount
+ }, []);
const _setStartScreenCapture = useCallback(
flag => {