Skip to content

Commit

Permalink
fix: health check flag is not refreshed when webview recycled
Browse files Browse the repository at this point in the history
  • Loading branch information
linonetwo committed Mar 14, 2024
1 parent 4cd42da commit e43b833
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pages/WikiWebView/WikiViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit e43b833

Please sign in to comment.