A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
fix: set checking for update status timeout
thecodrr00055254a1d0
diff --git a/apps/web/src/hooks/use-auto-updater.js b/apps/web/src/hooks/use-auto-updater.jsindex 47d249790..33af349e4 100644--- a/apps/web/src/hooks/use-auto-updater.js+++ b/apps/web/src/hooks/use-auto-updater.js@@ -4,12 +4,18 @@ import { EVENTS } from "@notesnook/desktop/events";import { isDesktop } from "../utils/platform";import checkForUpdate from "../commands/check-for-update";+var checkingForUpdateTimeout = 0;export default function useAutoUpdater() {const [status, setStatus] = useState();useEffect(() => {function checkingForUpdate() {setStatus({ type: "checking" });++ clearTimeout(checkingForUpdateTimeout);+ checkingForUpdateTimeout = setTimeout(() => {+ setStatus({ type: "updated" });+ }, 10000);}function updateAvailable(info) {