Skip to content

Commit a23fb51

Browse files
committed
[fix] remove dependencies from useEffect (componentDidMount)
Signed-off-by: Ihor Dykhta <[email protected]>
1 parent ce23c76 commit a23fb51

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/demo-app/src/app.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,9 @@ const App = props => {
163163
_loadSampleData();
164164

165165
// Notifications
166-
// _loadMockNotifications();
167-
}, [dispatch, id, provider, query]);
166+
167+
// no dependencies, as this was part of componentDidMount
168+
}, []);
168169

169170
const _setStartScreenCapture = useCallback(
170171
flag => {

0 commit comments

Comments
 (0)