Refactor page loading

This commit is contained in:
Tienson Qin
2022-03-24 22:21:31 +08:00
parent b5576c8a22
commit ee897c244b
5 changed files with 82 additions and 22 deletions

View File

@@ -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