0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-12 18:18:24 -05:00

Replace debounce with sample.

This commit is contained in:
Andrey Antukh 2015-12-24 19:31:04 +02:00
parent 90dd207e88
commit f37986d5c1

View file

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