From 6044e8a4c23a49567f928c5d858f8fc02c9be119 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Fri, 15 Apr 2016 23:26:50 +0300 Subject: [PATCH] Add a small delay for history fetching (beter user experience). --- src/uxbox/data/history.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uxbox/data/history.cljs b/src/uxbox/data/history.cljs index 405b35d74..e32ce868b 100644 --- a/src/uxbox/data/history.cljs +++ b/src/uxbox/data/history.cljs @@ -114,8 +114,8 @@ (rx/take 1))] (->> (rx/filter udp/page-synced? s) (rx/take-until stoper) + (rx/delay 1000) (rx/map (comp :id :page)) - (rx/pr-log "watcher:") (rx/mapcat #(rx/of (fetch-page-history %) (fetch-pinned-page-history %)))))))