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

Use debounce for persistence.

This commit is contained in:
Andrey Antukh 2015-12-28 20:06:26 +02:00
parent f28d54936f
commit 17eafb8563

View file

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