Skip to content

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

mobile: fix editor when app enter foreground from share ext

ammarahm-ed36662d58da33
diff --git a/apps/mobile/app/screens/editor/index.tsx b/apps/mobile/app/screens/editor/index.tsx
index de627336b..a4d2547aa 100755
--- a/apps/mobile/app/screens/editor/index.tsx
+++ b/apps/mobile/app/screens/editor/index.tsx
@@ -127,8 +127,8 @@ const Editor = React.memo(
const onError = useCallback(() => {
renderKey.current =
renderKey.current === `editor-0` ? `editor-1` : `editor-0`;
- // editor.state.current.ready = false;
- //editor.setLoading(true);
+ editor.state.current.ready = false;
+ editor.setLoading(true);
}, [editor]);
useEffect(() => {