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
mobile: fix note loading is slow in editor after login/signup
Ammar Ahmed73cdbf64c78e
diff --git a/apps/mobile/app/components/auth/common.ts b/apps/mobile/app/components/auth/common.tsindex 0408691fb..b2c9ee2df 100644--- a/apps/mobile/app/components/auth/common.ts+++ b/apps/mobile/app/components/auth/common.ts@@ -39,7 +39,7 @@ export function hideAuth(context?: AuthParams["context"]) {initialAuthMode.current === AuthMode.welcomeLogin ||context === "intro") {- Navigation.replace("FluidPanelsView", {});+ Navigation.navigate("FluidPanelsView", {});} else {Navigation.goBack();}diff --git a/apps/mobile/app/components/paywall/index.tsx b/apps/mobile/app/components/paywall/index.tsxindex c4bea39b2..ee228cb81 100644--- a/apps/mobile/app/components/paywall/index.tsx+++ b/apps/mobile/app/components/paywall/index.tsx@@ -144,7 +144,7 @@ const PayWall = (props: NavigationProps<"PayWall">) => {(sub: User["subscription"]) => {if (sub.plan === SubscriptionPlan.FREE) return;if (routeParams.context === "signup") {- Navigation.replace("FluidPanelsView", {});+ Navigation.navigate("FluidPanelsView", {});} else {Navigation.goBack();}@@ -184,7 +184,7 @@ const PayWall = (props: NavigationProps<"PayWall">) => {name="close"color={colors.primary.icon}onPress={() => {- Navigation.replace("FluidPanelsView", {});+ Navigation.navigate("FluidPanelsView", {});}}/></View>@@ -197,7 +197,7 @@ const PayWall = (props: NavigationProps<"PayWall">) => {return;}if (routeParams.context === "signup") {- Navigation.replace("FluidPanelsView", {});+ Navigation.navigate("FluidPanelsView", {});} else {Navigation.goBack();}@@ -655,7 +655,7 @@ After trying all the privacy security oriented note taking apps, for the price atype="accent"onPress={() => {if (routeParams.context === "signup") {- Navigation.replace("FluidPanelsView", {});+ Navigation.navigate("FluidPanelsView", {});} else {Navigation.goBack();}diff --git a/apps/mobile/app/screens/editor/tiptap/use-editor.ts b/apps/mobile/app/screens/editor/tiptap/use-editor.tsindex aa351882a..58d69c46d 100644--- a/apps/mobile/app/screens/editor/tiptap/use-editor.ts+++ b/apps/mobile/app/screens/editor/tiptap/use-editor.ts@@ -1034,13 +1034,6 @@ export const useEditor = (state.current.isRestoringState = false;}, []);- useEffect(() => {- eSubscribeEvent(eOnLoadNote + editorId, loadNote);- return () => {- eUnSubscribeEvent(eOnLoadNote + editorId, loadNote);- };- }, [editorId, loadNote, restoreEditorState, isDefaultEditor]);-const onContentChanged = (noteId?: string) => {if (noteId) {lastContentChangeTime.current[noteId] = Date.now();