mirror of
https://github.com/penpot/penpot.git
synced 2026-08-01 19:06:18 +00:00
Use debounce for persistence.
This commit is contained in:
parent
f28d54936f
commit
17eafb8563
@ -17,7 +17,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/sample 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 %))))
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user