mirror of
https://github.com/penpot/penpot.git
synced 2025-06-03 04:11:39 +02:00
♻️ Use rx streams for style dictionary interface
This commit is contained in:
parent
9f414b6ecd
commit
31f642ed25
6 changed files with 115 additions and 122 deletions
|
@ -30,9 +30,9 @@
|
|||
ptk/WatchEvent
|
||||
(watch [_ state _]
|
||||
(let [data (dsh/lookup-file-data state)]
|
||||
(->> (rx/from (-> (get data :tokens-lib)
|
||||
(ctob/get-active-themes-set-tokens)
|
||||
(sd/resolve-tokens+)))
|
||||
(->> (get data :tokens-lib)
|
||||
(ctob/get-active-themes-set-tokens)
|
||||
(sd/resolve-tokens)
|
||||
(rx/mapcat #(rx/of (end))))))))
|
||||
|
||||
(defn stop-on
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue