mirror of
https://github.com/penpot/penpot.git
synced 2025-02-03 04:49:03 -05:00
🐛 Fix websocket unexpected exception on exportation module
A regression caused by the previous commit that refactos the websockets API and its state management.
This commit is contained in:
parent
ebe8fdcba8
commit
9c194ee3cb
1 changed files with 5 additions and 0 deletions
|
@ -55,6 +55,7 @@
|
||||||
(rx/filter (ptk/type? ::initialize) stream))]
|
(rx/filter (ptk/type? ::initialize) stream))]
|
||||||
|
|
||||||
(->> (rx/merge
|
(->> (rx/merge
|
||||||
|
(rx/of #(assoc % :ws-conn ws))
|
||||||
(->> (ws/get-rcv-stream ws)
|
(->> (ws/get-rcv-stream ws)
|
||||||
(rx/filter ws/message-event?)
|
(rx/filter ws/message-event?)
|
||||||
(rx/map :payload)
|
(rx/map :payload)
|
||||||
|
@ -69,6 +70,10 @@
|
||||||
(defn finalize
|
(defn finalize
|
||||||
[]
|
[]
|
||||||
(ptk/reify ::finalize
|
(ptk/reify ::finalize
|
||||||
|
ptk/UpdateEvent
|
||||||
|
(update [_ state]
|
||||||
|
(dissoc state :ws-conn))
|
||||||
|
|
||||||
ptk/EffectEvent
|
ptk/EffectEvent
|
||||||
(effect [_ _ _]
|
(effect [_ _ _]
|
||||||
(l/trace :hint "event:finalize" :fn "effect")
|
(l/trace :hint "event:finalize" :fn "effect")
|
||||||
|
|
Loading…
Add table
Reference in a new issue