mirror of
https://github.com/logseq/logseq.git
synced 2026-05-02 01:46:35 +00:00
use atom to replace some high frequency used state vars
This commit is contained in:
@@ -470,7 +470,7 @@
|
||||
(when-let [pos (some-> (state/get-input) cursor/pos)]
|
||||
(state/set-editor-last-pos! pos)))
|
||||
:onStop (fn [_event]
|
||||
(when-let [block (get-in @state/state [:editor/block :block/uuid])]
|
||||
(when-let [block (get @(get @state/state :editor/block) :block/uuid)]
|
||||
(editor-handler/edit-block! block :max (:block/uuid block))
|
||||
(when-let [input (state/get-input)]
|
||||
(when-let [saved-cursor (state/get-editor-last-pos)]
|
||||
|
||||
Reference in New Issue
Block a user