fix: new typing chars are not saved after Enter pressed

This happens when writing fast or on an old device, the reason is that
the user can still write something after Enter pressed and before the
data is transacted and UI refreshed.
This commit is contained in:
Tienson Qin
2024-06-18 21:16:27 +08:00
parent 082bdc1664
commit b9fc96e3dd
4 changed files with 63 additions and 66 deletions

View File

@@ -121,6 +121,7 @@
:block/component-editing-mode? false
:editor/op (atom nil)
:editor/start-pos (atom nil)
:editor/async-unsaved-chars (atom nil)
:editor/hidden-editors #{} ;; page names
:editor/draw-mode? false
@@ -314,8 +315,7 @@
:ui/select-query-cache (atom {})
:favorites/updated? (atom 0)
:db/async-query-loading (atom #{})
:db/async-queries (atom {})
})))
:db/async-queries (atom {})})))
;; Block ast state
;; ===============