From d833543368423e917f1178d2d774eb0aba73ce40 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Sat, 2 Jan 2016 18:02:40 +0200 Subject: [PATCH] Add dedupe on state persistence stream. --- frontend/uxbox/core.cljs | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/uxbox/core.cljs b/frontend/uxbox/core.cljs index 6bee84586..6bda93e68 100644 --- a/frontend/uxbox/core.cljs +++ b/frontend/uxbox/core.cljs @@ -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 %))))