0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-27 00:49:28 -05:00

🐛 Fix routing unresponsivenes in some conditions.

This commit is contained in:
Andrey Antukh 2020-05-05 13:33:32 +02:00 committed by Alonso Torres
parent 598a235bb8
commit c97b119998

View file

@ -126,7 +126,8 @@
history (:history state) history (:history state)
router (:router state)] router (:router state)]
(rx/merge (rx/merge
(rx/of (on-change router (.getToken history))) (->> (rx/of (on-change router (.getToken history)))
(rx/observe-on :asap))
(->> (rx/create (fn [sink] (->> (rx/create (fn [sink]
(let [key (e/listen history "navigate" #(sink (.-token %)))] (let [key (e/listen history "navigate" #(sink (.-token %)))]
(fn [] (fn []