mirror of https://github.com/logseq/logseq
perf: skip loading classes for the initial data
re-init commands after pages has been loadedpull/10933/head
parent
6c6cc8ec34
commit
bd9ebaf3fd
|
@ -115,7 +115,7 @@
|
|||
[db]
|
||||
(->> (d/datoms db :avet :block/type)
|
||||
(keep (fn [e]
|
||||
(when (contains? #{"closed value" "class"} (:v e))
|
||||
(when (contains? #{"closed value"} (:v e))
|
||||
(d/pull db '[*] (:e e)))))))
|
||||
|
||||
(defn get-initial-data
|
||||
|
|
|
@ -51,6 +51,7 @@
|
|||
(do
|
||||
(util/profile "transact initial-pages" (d/transact! conn tx-data tx-meta))
|
||||
(when end?
|
||||
(state/pub-event! [:init/commands])
|
||||
(ui-handler/re-render-root!)))
|
||||
(do
|
||||
(let [tx-report (d/transact! conn tx-data tx-meta)]
|
||||
|
|
Loading…
Reference in New Issue