use atom to replace some high frequency used state vars

This commit is contained in:
rcmerci
2023-06-01 00:13:28 +08:00
parent d0d56cc65a
commit 628a8b3826
11 changed files with 143 additions and 99 deletions

View File

@@ -1284,7 +1284,7 @@
([{:keys [force? skip-properties? current-block] :as opts}]
;; non English input method
(when-not (or (state/editor-in-composition?)
(:editor/skip-saving-current-block? @state/state))
@(:editor/skip-saving-current-block? @state/state))
(when (state/get-current-repo)
(when-not (state/get-editor-action)
(try