Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: useEffect called with no Deps

ammarahm-edca5e2631b046
diff --git a/apps/mobile/src/views/Favorites/index.js b/apps/mobile/src/views/Favorites/index.js
index eb397e200..3fbfeed45 100644
--- a/apps/mobile/src/views/Favorites/index.js
+++ b/apps/mobile/src/views/Favorites/index.js
@@ -39,7 +39,7 @@ export const Favorites = ({route, navigation}) => {
eSendEvent(eScrollEvent, {name: 'Notebooks', type: 'back'});
navigation.removeListener('focus', onFocus);
};
- });
+ },[]);
diff --git a/apps/mobile/src/views/Folders/index.js b/apps/mobile/src/views/Folders/index.js
index 1f6d45a2f..b39dcd18f 100644
--- a/apps/mobile/src/views/Folders/index.js
+++ b/apps/mobile/src/views/Folders/index.js
@@ -42,7 +42,7 @@ export const Folders = ({route, navigation}) => {
navigation.removeListener('focus', onFocus);
eSendEvent(eScrollEvent, {name: 'Notebooks', type: 'back'});
};
- });
+ },[]);
useEffect(() => {
if (navigation.isFocused()) {