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:
parent
e964ef9bef
commit
94203d907e
1 changed files with 8 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue