mirror of
https://github.com/logseq/logseq.git
synced 2026-04-26 07:05:10 +00:00
enhance: editor experience
1. back to use container id + editing block id instead of block dom ref to decide which block is in editing, to simplify edit-block! and reduce browser gc. 2. set next editing block ahead of receiving the data changes from db worker, so the editor feels a bit faster.
This commit is contained in:
@@ -380,7 +380,7 @@
|
||||
(code-handler/save-code-editor!)
|
||||
(when-let [block-id (:block/uuid config)]
|
||||
(let [block (db/pull [:block/uuid block-id])]
|
||||
(editor-handler/edit-block! block :max block-id)))))
|
||||
(editor-handler/edit-block! block :max)))))
|
||||
|
||||
(defn render!
|
||||
[state]
|
||||
|
||||
Reference in New Issue
Block a user