mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 04:00:59 +01:00
mobile: reconnect messaging when app reloads
This commit is contained in:
@@ -121,8 +121,12 @@ const Editor = React.memo(
|
||||
const onError = useCallback(() => {
|
||||
editor.setLoading(true);
|
||||
console.log("loading editor");
|
||||
if (useGeckoView) {
|
||||
//@ts-ignore
|
||||
editor.ref?.connectMessagingPort();
|
||||
}
|
||||
setTimeout(() => editor.setLoading(false), 10);
|
||||
}, [editor]);
|
||||
}, [editor, useGeckoView]);
|
||||
|
||||
useEffect(() => {
|
||||
eSubscribeEvent("webview_reset", onError);
|
||||
|
||||
Reference in New Issue
Block a user