Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: fix real time editor sync not updating content

Abdullah Atta9575561832db
diff --git a/apps/web/src/components/editor/index.tsx b/apps/web/src/components/editor/index.tsx
index 7895a80a8..695c33389 100644
--- a/apps/web/src/components/editor/index.tsx
+++ b/apps/web/src/components/editor/index.tsx
@@ -237,7 +237,7 @@ function EditorView({
| ReadonlyEditorSession
| DeletedEditorSession;
}) {
- const lastChangedTime = useRef<number>(Date.now());
+ const lastChangedTime = useRef<number>(0);
const root = useRef<HTMLDivElement>(null);
const toggleProperties = useEditorStore((store) => store.toggleProperties);