mirror of
https://github.com/penpot/penpot.git
synced 2025-01-07 15:39:42 -05:00
Add dedupe on state persistence stream.
This commit is contained in:
parent
e4dc761107
commit
d833543368
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue