mirror of
https://github.com/logseq/logseq.git
synced 2026-05-01 01:16:27 +00:00
Refactor page loading
This commit is contained in:
@@ -77,6 +77,11 @@
|
||||
(when-let [result-atom (get-in @query-state [k :result])]
|
||||
(reset! result-atom new-result)))
|
||||
|
||||
(defn swap-new-result!
|
||||
[k f]
|
||||
(when-let [result-atom (get-in @query-state [k :result])]
|
||||
(swap! result-atom f)))
|
||||
|
||||
(defn kv
|
||||
[key value]
|
||||
{:db/id -1
|
||||
|
||||
Reference in New Issue
Block a user