mirror of https://github.com/penpot/penpot.git
Add dedupe on state persistence stream.
This commit is contained in:
parent
e4dc761107
commit
d833543368
|
|
@ -18,6 +18,7 @@
|
|||
:projects-by-id])
|
||||
stream (->> (l/focus-atom lens st/state)
|
||||
(rx/from-atom)
|
||||
(rx/dedupe)
|
||||
(rx/debounce 1000)
|
||||
(rx/tap #(println "[save]")))]
|
||||
(rx/on-value stream #(dl/persist-state %))))
|
||||
|
|
|
|||
Loading…
Reference in New Issue