From c97b1199987d6c6cb11329e30378611e49ee6f6b Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 5 May 2020 13:33:32 +0200 Subject: [PATCH] :bug: Fix routing unresponsivenes in some conditions. --- frontend/src/uxbox/util/router.cljs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/uxbox/util/router.cljs b/frontend/src/uxbox/util/router.cljs index b889be5f7d..e2c073d472 100644 --- a/frontend/src/uxbox/util/router.cljs +++ b/frontend/src/uxbox/util/router.cljs @@ -126,7 +126,8 @@ history (:history state) router (:router state)] (rx/merge - (rx/of (on-change router (.getToken history))) + (->> (rx/of (on-change router (.getToken history))) + (rx/observe-on :asap)) (->> (rx/create (fn [sink] (let [key (e/listen history "navigate" #(sink (.-token %)))] (fn []