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: do not reinit database in dev mode
thecodrr2615fb6451d8
diff --git a/apps/web/src/hooks/use-database.js b/apps/web/src/hooks/use-database.jsindex 1267b8a3e..457f08723 100644--- a/apps/web/src/hooks/use-database.js+++ b/apps/web/src/hooks/use-database.js@@ -18,7 +18,8 @@ export default function useDatabase(persistence) {(async () => {await import("../app.css");- await initializeDatabase(persistence);+ if (process.env.NODE_ENV !== "development")+ await initializeDatabase(persistence);setIsAppLoaded(true);memory.isAppLoaded = true;})();