From e43b833af373262dfdd92df760e17068e6a54375 Mon Sep 17 00:00:00 2001 From: lin onetwo Date: Thu, 14 Mar 2024 21:28:34 +0800 Subject: [PATCH] fix: health check flag is not refreshed when webview recycled --- src/pages/WikiWebView/WikiViewer.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pages/WikiWebView/WikiViewer.tsx b/src/pages/WikiWebView/WikiViewer.tsx index 5524cbd..b68b6d8 100644 --- a/src/pages/WikiWebView/WikiViewer.tsx +++ b/src/pages/WikiWebView/WikiViewer.tsx @@ -84,6 +84,7 @@ export const WikiViewer = ({ wikiWorkspace, webviewSideReceiver, quickLoad }: Wi }, [servicesOfWorkspace.wikiHookService]); useEffect(() => { + servicesOfWorkspace.wikiHookService.resetWebviewReceiverReady(); void backgroundSyncService.updateServerOnlineStatus(); }, [servicesOfWorkspace.wikiHookService, webViewKeyToReloadAfterRecycleByOS]); const { loadHtmlError, loading, streamChunksToWebViewPercentage } = useTiddlyWiki(