0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 00:10:11 -05:00

Add dedupe on state persistence stream.

This commit is contained in:
Andrey Antukh 2016-01-02 18:02:40 +02:00
parent e4dc761107
commit d833543368

View file

@ -18,6 +18,7 @@
:projects-by-id]) :projects-by-id])
stream (->> (l/focus-atom lens st/state) stream (->> (l/focus-atom lens st/state)
(rx/from-atom) (rx/from-atom)
(rx/dedupe)
(rx/debounce 1000) (rx/debounce 1000)
(rx/tap #(println "[save]")))] (rx/tap #(println "[save]")))]
(rx/on-value stream #(dl/persist-state %)))) (rx/on-value stream #(dl/persist-state %))))