0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 23:49:45 -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)
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 []