mirror of
https://github.com/logseq/logseq.git
synced 2026-05-02 09:56:31 +00:00
perf: slow switch to the editor mode for long pages
This commit is contained in:
@@ -717,7 +717,7 @@
|
||||
(and
|
||||
;; FIXME: this does not work on CI tests
|
||||
util/node-test?
|
||||
(:editor/editing? @state/state))))
|
||||
(:editor/editing @state/state))))
|
||||
(state/close-modal!)
|
||||
(hide-context-menu-and-clear-selection e)))))))
|
||||
[state route-match main-content]
|
||||
@@ -742,7 +742,7 @@
|
||||
home? (= :home route-name)
|
||||
native-titlebar? (state/sub [:electron/user-cfgs :window/native-titlebar?])
|
||||
window-controls? (and (util/electron?) (not util/mac?) (not native-titlebar?))
|
||||
edit? (:editor/editing? @state/state)
|
||||
edit? (:editor/editing @state/state)
|
||||
default-home (get-default-home-if-valid)
|
||||
logged? (user-handler/logged-in?)
|
||||
fold-button-on-right? (state/enable-fold-button-right?)
|
||||
|
||||
Reference in New Issue
Block a user