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:
parent
598a235bb8
commit
c97b119998
1 changed files with 2 additions and 1 deletions
|
@ -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 []
|
||||||
|
|
Loading…
Add table
Reference in a new issue