mirror of
https://github.com/penpot/penpot.git
synced 2026-04-28 12:48:31 +00:00
🐛 Fix persistence loop on dev code hot reload
This commit is contained in:
parent
1b9dea01e2
commit
9334138510
@ -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…
x
Reference in New Issue
Block a user