mirror of
https://github.com/logseq/logseq.git
synced 2026-02-01 22:47:36 +00:00
chore: remove unused file graph tx-meta options
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
;; (prn :debug
|
||||
;; :tx-meta tx-meta
|
||||
;; :tx-data tx-data)
|
||||
(let [{:keys [from-disk? new-graph? initial-pages? end?]} tx-meta
|
||||
(let [{:keys [initial-pages? end?]} tx-meta
|
||||
tx-report {:tx-meta tx-meta
|
||||
:tx-data tx-data}]
|
||||
(when (= repo (state/get-current-repo))
|
||||
@@ -50,11 +50,6 @@
|
||||
(state/pub-event! [:init/commands])
|
||||
(ui-handler/re-render-root!)))
|
||||
|
||||
(or from-disk? new-graph?)
|
||||
(do
|
||||
(d/transact! conn tx-data tx-meta)
|
||||
(ui-handler/re-render-root!))
|
||||
|
||||
:else
|
||||
(do
|
||||
(state/set-state! :db/latest-transacted-entity-uuids
|
||||
|
||||
@@ -530,12 +530,9 @@
|
||||
|
||||
(defn invoke-hooks
|
||||
[conn {:keys [tx-meta] :as tx-report} context]
|
||||
(let [{:keys [from-disk? new-graph? transact-new-graph-refs?]} tx-meta]
|
||||
(let [{:keys [transact-new-graph-refs?]} tx-meta]
|
||||
(when-not transact-new-graph-refs?
|
||||
(cond
|
||||
(or from-disk? new-graph?)
|
||||
{:tx-report tx-report}
|
||||
|
||||
;; Rebuild refs for a new DB graph using EDN or when EDN data is imported.
|
||||
;; Ref rebuilding happens here because transact-pipeline doesn't rebuild refs
|
||||
;; for these cases
|
||||
|
||||
Reference in New Issue
Block a user