A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
refactor
ammarahm-edb6cf5491d342
diff --git a/apps/mobile/src/components/SimpleList/NoteItemWrapper.js b/apps/mobile/src/components/SimpleList/NoteItemWrapper.jsindex 4ccce34fb..699bf08c3 100644--- a/apps/mobile/src/components/SimpleList/NoteItemWrapper.js+++ b/apps/mobile/src/components/SimpleList/NoteItemWrapper.js@@ -27,17 +27,12 @@ export const NoteItemWrapper = ({item, index, isTrash = false}) => {}, [item]);const onNoteChange = (data) => {+if (!data || data.id !== note.id || data.closed) {return;}let newNote = db.notes.note(data.id).data;- if (- !data.noEdit &&- newNote.title === note.title &&- newNote.headline === note.headline- ) {- return;- }+ console.log('updating note',newNote.notebooks)setNote(newNote);};@@ -46,7 +41,7 @@ export const NoteItemWrapper = ({item, index, isTrash = false}) => {return () => {eUnSubscribeEvent(eOnNoteEdited, onNoteChange);};- }, [note]);+ }, []);const style = useMemo(() => {return {width: selectionMode ? '90%' : '100%', marginHorizontal: 0};