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
feat: handle automatic syncing
thecodrr7148e993d74a
diff --git a/apps/web/src/stores/user-store.js b/apps/web/src/stores/user-store.jsindex 71594335d..c8f815295 100644--- a/apps/web/src/stores/user-store.js+++ b/apps/web/src/stores/user-store.js@@ -19,6 +19,10 @@ class UserStore extends BaseStore {state.user = user;state.isLoggedIn = true;});+ db.ev.subscribe("sync", () => {+ this.sync();+ console.log("Hello");+ });this.sync();return true;});diff --git a/apps/web/yarn.lock b/apps/web/yarn.lockindex 1d91d5333..e7a19e4af 100644--- a/apps/web/yarn.lock+++ b/apps/web/yarn.lock@@ -7295,7 +7295,7 @@ normalize-url@^3.0.0, normalize-url@^3.0.1:"notes-core@git+ssh://[email protected]:streetwriters/notesnook-core.git":version "1.5.0"- resolved "git+ssh://[email protected]:streetwriters/notesnook-core.git#05e77e12655181eed0d3a87cf7f72ad447c5b5f2"+ resolved "git+ssh://[email protected]:streetwriters/notesnook-core.git#ceebd0080c86906c47f8f5c567e939d8d88a015d"dependencies:fast-sort "^2.0.1"fuzzysearch "^1.0.3"