mobile: fix editor when app enter foreground from share ext

This commit is contained in:
ammarahm-ed
2023-08-03 17:07:10 +05:00
committed by Ammar Ahmed
parent e85cc6ac56
commit 36662d58da

View File

@@ -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(() => {