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: avoid rendering splash screen 2 times
thecodrrb141dca9dab3
diff --git a/apps/web/src/index.js b/apps/web/src/index.jsindex 4ae0d14ee..9a4d96f23 100644--- a/apps/web/src/index.js+++ b/apps/web/src/index.js@@ -29,21 +29,15 @@ const App = React.lazy(() => import("./App"));import("react-dom").then(({ render }) => {render(- <Splash- onLoadingFinished={() => {- render(- <Suspense fallback={<Splash />}>- <App />- </Suspense>,- document.getElementById("root"),- () => {- import("react-modal").then(({ default: Modal }) => {- Modal.setAppElement("#root");- });- }- );- }}- />,+ <Suspense fallback={<Splash />}>+ <App />+ </Suspense>,+ document.getElementById("root"),+ () => {+ import("react-modal").then(({ default: Modal }) => {+ Modal.setAppElement("#root");+ });+ },document.getElementById("root"));});diff --git a/apps/web/src/views/splash.js b/apps/web/src/views/splash.jsindex f3677ae95..6358952a7 100644--- a/apps/web/src/views/splash.js+++ b/apps/web/src/views/splash.js@@ -15,7 +15,7 @@ function Splash(props) {console.error(e);alert("Error: " + `Error initializing database: ${e.message}`);} finally {- props.onLoadingFinished();+ if (props.onLoadingFinished) props.onLoadingFinished();}})();}, []);diff --git a/apps/web/yarn.lock b/apps/web/yarn.lockindex 77a42c27c..24b95262a 100644--- a/apps/web/yarn.lock+++ b/apps/web/yarn.lock@@ -5327,7 +5327,7 @@ extend-shallow@^3.0.0, extend-shallow@^3.0.2:assign-symbols "^1.0.0"is-extendable "^1.0.1"-extend@^3.0.2, extend@~3.0.2:+extend@~3.0.2:version "3.0.2"resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa"integrity sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==@@ -5372,11 +5372,6 @@ fast-deep-equal@^3.1.1:resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525"integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==- version "1.1.2"- resolved "https://registry.yarnpkg.com/fast-diff/-/fast-diff-1.1.2.tgz#4b62c42b8e03de3f848460b639079920695d0154"- integrity sha512-KaJUt+M9t1qaIteSvjc6P3RbMdXsNhK61GRftR6SNxqmhthcd9MGIi4T+o0jD8LUSpSnSKXE20nLtJ3fOHxQig==-version "1.2.0"resolved "https://registry.yarnpkg.com/fast-diff/-/fast-diff-1.2.0.tgz#73ee11982d86caaf7959828d519cfe927fac5f03"@@ -7796,11 +7791,6 @@ lodash.memoize@^4.1.2:resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe"integrity sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4=-lodash.merge@^4.5.0:- version "4.6.2"- resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a"- integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==-lodash.sortby@^4.7.0:version "4.7.0"resolved "https://registry.yarnpkg.com/lodash.sortby/-/lodash.sortby-4.7.0.tgz#edd14c824e2cc9c1e0b0a1b42bb5210516a42438"@@ -8382,23 +8372,6 @@ normalize-url@^3.0.0:resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-3.3.0.tgz#b2e1c4dc4f7c6d57743df733a4f5978d18650559"integrity sha512-U+JJi7duF1o+u2pynbp2zXDW2/PADgC30f0GsHZtRh+HOcXHnw137TrNlyxxRvWW5fjKd3bcLHPxofWuCjaeZg==-normalize-url@^4.5.0:- version "4.5.0"- resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-4.5.0.tgz#453354087e6ca96957bd8f5baf753f5982142129"- integrity sha512-2s47yzUxdexf1OhyRi4Em83iQk0aPvwTddtFz4hnSSw9dCEsLEGf6SwIO8ss/19S9iBb5sJaOuTvTGDeZI00BQ==--notes-core@../notes-core:- version "6.4.0"- dependencies:- fast-sort "^2.0.1"- fuzzysearch "^1.0.3"- lean-he "^2.1.2"- no-internet "^1.5.2"- qclone "^1.0.4"- quill-delta-to-html "^0.12.0"- spark-md5 "^3.0.1"- turndown "^7.0.0"-"notes-core@git+ssh://[email protected]:streetwriters/notesnook-core.git":version "6.4.0"resolved "git+ssh://[email protected]:streetwriters/notesnook-core.git#d655fae4986861c0ddea559613a448554c046970"@@ -8796,11 +8769,6 @@ param-case@^3.0.3:dot-case "^3.0.4"tslib "^2.0.3"- version "2.0.0-dev.2"- resolved "https://registry.yarnpkg.com/parchment/-/parchment-2.0.0-dev.2.tgz#9d6fe57b3721317bd1c481ea38ffa9b287d496b8"- integrity sha512-4fgRny4pPISoML08Zp7poi52Dff3E2G1ORTi2D/acJ/RiROdDAMDB6VcQNfBcmehrX5Wixp6dxh6JjLyE5yUNQ==-parchment@^1.1.2:version "1.1.4"resolved "https://registry.yarnpkg.com/parchment/-/parchment-1.1.4.tgz#aeded7ab938fe921d4c34bc339ce1168bc2ffde5"@@ -10023,7 +9991,7 @@ quill-delta-to-html@^0.12.0:dependencies:lodash.isequal "^4.5.0"[email protected], quill-delta@^4.0.1:+quill-delta@^4.0.1:version "4.2.2"resolved "https://registry.yarnpkg.com/quill-delta/-/quill-delta-4.2.2.tgz#015397d046e0a3bed087cd8a51f98c11a1b8f351"integrity sha512-qjbn82b/yJzOjstBgkhtBjN2TNK+ZHP/BgUQO+j6bRhWQQdmj2lH6hXG7+nwwLF41Xgn//7/83lxs9n2BkTtTg==@@ -10032,34 +10000,6 @@ [email protected], quill-delta@^4.0.1:lodash.clonedeep "^4.5.0"lodash.isequal "^4.5.0"-quill-delta@^3.6.2:- version "3.6.3"- resolved "https://registry.yarnpkg.com/quill-delta/-/quill-delta-3.6.3.tgz#b19fd2b89412301c60e1ff213d8d860eac0f1032"- integrity sha512-wdIGBlcX13tCHOXGMVnnTVFtGRLoP0imqxM696fIPwIf5ODIYUHIvHbZcyvGlZFiFhK5XzDC2lpjbxRhnM05Tg==- dependencies:- deep-equal "^1.0.1"- extend "^3.0.2"- fast-diff "1.1.2"--quill-magic-url@^3.0.0:- version "3.0.0"- resolved "https://registry.yarnpkg.com/quill-magic-url/-/quill-magic-url-3.0.0.tgz#26bcea0a412beafcca6d5bfca86ff1f23b9fa36b"- integrity sha512-TxEbH7tQL6T/YgONN3N5+3Nxq3sCixnC87EZ9lFZRucvr1LO5nuxfDPJzGDV4fVTgXCXqy5NMBxft7TUFiMq4g==- dependencies:- normalize-url "^4.5.0"- quill-delta "^3.6.2"--"quill@https://github.com/thecodrr/quill.git#develop":- version "2.0.0-dev.4"- resolved "https://github.com/thecodrr/quill.git#e225f237c995c6eb167879efc204d7520ad68d27"- dependencies:- eventemitter3 "^4.0.0"- lodash.clonedeep "^4.5.0"- lodash.isequal "^4.5.0"- lodash.merge "^4.5.0"- parchment "2.0.0-dev.2"- quill-delta "4.2.2"-raf@^3.4.1:version "3.4.1"resolved "https://registry.yarnpkg.com/raf/-/raf-3.4.1.tgz#0742e99a4a6552f445d73e3ee0328af0ff1ede39"