0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-13 16:21:57 -05:00

Add auth to the persistente vector.

With minor mostly cosmetic changes in the ns.
This commit is contained in:
Andrey Antukh 2016-02-24 17:17:49 +02:00
parent e964ef9bef
commit 94203d907e

View file

@ -10,12 +10,16 @@
(enable-console-print!)
(def ^:const ^:private +persistent-keys+
[:auth
:pages-by-id
:shapes-by-id
:colors-by-id
:projects-by-id])
(defn- main
[]
(let [lens (l/select-keys [:pages-by-id
:shapes-by-id
:colors-by-id
:projects-by-id])
(let [lens (l/select-keys +persistent-keys+)
stream (->> (l/focus-atom lens st/state)
(rx/from-atom)
(rx/dedupe)