Skip to content

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

cleanup

ammarahm-ed8357e74c0340
diff --git a/apps/mobile/src/views/Folders/index.js b/apps/mobile/src/views/Folders/index.js
index 821f596e3..3c80a4ccc 100644
--- a/apps/mobile/src/views/Folders/index.js
+++ b/apps/mobile/src/views/Folders/index.js
@@ -55,6 +55,7 @@ export const Folders = ({route, navigation}) => {
}, []);
useEffect(() => {
+ console.log('rerendering notebooks yeah')
if (navigation.isFocused()) {
updateSearch();
}
diff --git a/apps/mobile/src/views/Home/index.js b/apps/mobile/src/views/Home/index.js
index 8a4367d02..78d504dda 100755
--- a/apps/mobile/src/views/Home/index.js
+++ b/apps/mobile/src/views/Home/index.js
@@ -66,7 +66,7 @@ export const Home = ({route, navigation}) => {
if (navigation.isFocused()) {
updateSearch();
}
- }, [notes, route.params]);
+ }, [notes]);
const updateSearch = () => {
SearchService.update({