mirror of
https://github.com/penpot/penpot.git
synced 2026-02-12 22:53:02 +00:00
Use debounce for persistence.
This commit is contained in:
@@ -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 %))))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user