mirror of
https://github.com/penpot/penpot.git
synced 2025-01-23 06:58:58 -05:00
🐛 Fix persistence loop on dev code hot reload
This commit is contained in:
parent
1b9dea01e2
commit
9334138510
2 changed files with 2 additions and 5 deletions
|
@ -315,10 +315,7 @@
|
|||
|
||||
ptk/WatchEvent
|
||||
(watch [_ _ _]
|
||||
(rx/merge
|
||||
(rx/of (dwn/finalize file-id))
|
||||
(->> (rx/of ::dwp/finalize)
|
||||
(rx/observe-on :async))))))
|
||||
(rx/of (dwn/finalize file-id)))))
|
||||
|
||||
(declare go-to-page)
|
||||
(declare ^:private preload-data-uris)
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
ptk/WatchEvent
|
||||
(watch [_ _ stream]
|
||||
(log/debug :hint "initialize persistence")
|
||||
(let [stoper (rx/filter #(= ::finalize %) stream)
|
||||
(let [stoper (rx/filter (ptk/type? ::initialize-persistence) stream)
|
||||
commits (l/atom [])
|
||||
|
||||
local-file?
|
||||
|
|
Loading…
Add table
Reference in a new issue