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
fix sync changes not applied
ammarahm-ed8af6f869528f
diff --git a/apps/mobile/App.js b/apps/mobile/App.jsindex c44dadb1c..1a5c3d44c 100644--- a/apps/mobile/App.js+++ b/apps/mobile/App.js@@ -128,9 +128,7 @@ const App = () => {const syncChanges = async () => {console.log('dispatching sync changes')- dispatch({type: Actions.LOADING,loading:true});dispatch({type: Actions.ALL});- dispatch({type: Actions.LOADING,loading:false});};const startSyncer = async () => {try {diff --git a/apps/mobile/src/components/Menu/index.js b/apps/mobile/src/components/Menu/index.jsindex d324d8f0f..173a12179 100644--- a/apps/mobile/src/components/Menu/index.js+++ b/apps/mobile/src/components/Menu/index.js@@ -1,24 +1,23 @@-import React, {useEffect} from 'react';-import {FlatList, ScrollView, View} from 'react-native';-import {useSafeAreaInsets} from 'react-native-safe-area-context';-import {notesnook} from '../../../e2e/test.ids';-import {useTracked} from '../../provider';-import {Actions} from '../../provider/Actions';-import {DDS} from '../../services/DeviceDetection';+import React from 'react';+import { FlatList, View } from 'react-native';+import { useSafeAreaInsets } from 'react-native-safe-area-context';+import { notesnook } from '../../../e2e/test.ids';+import { useTracked } from '../../provider';+import { Actions } from '../../provider/Actions';import {ACCENT,COLOR_SCHEME,COLOR_SCHEME_DARK,COLOR_SCHEME_LIGHT,- setColorScheme,+ setColorScheme} from '../../utils/Colors';-import {MenuItemsList} from '../../utils/index';-import {MMKV} from '../../utils/mmkv';+import { MenuItemsList } from '../../utils/index';+import { MMKV } from '../../utils/mmkv';import Seperator from '../Seperator';-import {ColorSection} from './ColorSection';-import {MenuListItem} from './MenuListItem';-import {TagsSection} from './TagsSection';-import {UserSection} from './UserSection';+import { ColorSection } from './ColorSection';+import { MenuListItem } from './MenuListItem';+import { TagsSection } from './TagsSection';+import { UserSection } from './UserSection';export const Menu = React.memo(() => {diff --git a/apps/mobile/src/provider/Reducer.js b/apps/mobile/src/provider/Reducer.jsindex 09a6e4b8a..caa214dc5 100644--- a/apps/mobile/src/provider/Reducer.js+++ b/apps/mobile/src/provider/Reducer.js@@ -11,7 +11,7 @@ export const reducer = (state, action) => {case Actions.ALL: {return {...state,- notes: [...db.notes.group(SORT[sortSettings.sort])],+ notes: db.notes.group(SORT[sortSettings.sort]),notebooks: db.notebooks.all,trash: db.trash.all,tags: db.tags.all,diff --git a/apps/mobile/src/views/Favorites/index.js b/apps/mobile/src/views/Favorites/index.jsindex 21a9f844e..04a1ea603 100644--- a/apps/mobile/src/views/Favorites/index.js+++ b/apps/mobile/src/views/Favorites/index.js@@ -10,7 +10,9 @@ import SearchService from '../../services/SearchService';import {eScrollEvent} from '../../utils/Events';export const Favorites = ({route, navigation}) => {const [state, dispatch] = useTracked();- const {favorites} = state;+ state.favorites.indexOf();+ const favorites = state.favorites;+let pageIsLoaded = false;const onFocus = useCallback(() => {diff --git a/apps/mobile/src/views/Folders/index.js b/apps/mobile/src/views/Folders/index.jsindex fbe9c7b5c..821f596e3 100644--- a/apps/mobile/src/views/Folders/index.js+++ b/apps/mobile/src/views/Folders/index.js@@ -14,7 +14,8 @@ import {DDS} from '../../services/DeviceDetection';export const Folders = ({route, navigation}) => {const [state, dispatch] = useTracked();- const {notebooks} = state;+ state.notebooks.indexOf();+ const notebooks = state.notebooks;let pageIsLoaded = false;const onFocus = useCallback(() => {diff --git a/apps/mobile/src/views/Home/index.js b/apps/mobile/src/views/Home/index.jsindex d7c1ddb16..534c2c11e 100755--- a/apps/mobile/src/views/Home/index.js+++ b/apps/mobile/src/views/Home/index.js@@ -13,13 +13,15 @@ import {tabBarRef} from '../../utils/Refs';export const Home = ({route, navigation}) => {const [state, dispatch] = useTracked();- const {notes, loading} = state;+ const {loading} = state;+ state.notes.indexOf();+ const notes = state.noteslet pageIsLoaded = false;const onFocus = useCallback(() => {updateSearch();eSendEvent(eScrollEvent, {name: 'Notes', type: 'in'});-+if (DDS.isLargeTablet()) {dispatch({type: Actions.CONTAINER_BOTTOM_BUTTON,@@ -85,7 +87,6 @@ export const Home = ({route, navigation}) => {return (<>-<SimpleListdata={notes}scrollRef={scrollRef}@@ -95,7 +96,7 @@ export const Home = ({route, navigation}) => {loading={loading}sortMenuButton={true}headerProps={{- heading: "Home",+ heading: 'Home',}}placeholderText={`Notes you write appear here`}jumpToDialog={true}diff --git a/apps/mobile/src/views/Tags/index.js b/apps/mobile/src/views/Tags/index.jsindex 2cbe104ea..0a2b8f435 100644--- a/apps/mobile/src/views/Tags/index.js+++ b/apps/mobile/src/views/Tags/index.js@@ -11,7 +11,8 @@ import {eScrollEvent} from '../../utils/Events';export const Tags = ({route, navigation}) => {const [state, dispatch] = useTracked();- const {tags} = state;+ state.tags.indexOf();+ const tags = state.tags;let pageIsLoaded = false;const onFocus = useCallback(() => {diff --git a/apps/mobile/src/views/Trash/index.js b/apps/mobile/src/views/Trash/index.jsindex 840b91e79..7da99724d 100644--- a/apps/mobile/src/views/Trash/index.js+++ b/apps/mobile/src/views/Trash/index.js@@ -14,7 +14,8 @@ import {eScrollEvent} from '../../utils/Events';export const Trash = ({route, navigation}) => {const [state, dispatch] = useTracked();- const {trash} = state;+ state.trash.indexOf();+ const trash = state.trash;let pageIsLoaded = false;const onFocus = useCallback(() => {