♻️ Use rx streams for style dictionary interface

This commit is contained in:
Florian Schroedl 2025-05-09 11:01:09 +02:00 committed by Andrés Moya
parent 9f414b6ecd
commit 31f642ed25
6 changed files with 115 additions and 122 deletions

View file

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