mirror of
https://github.com/penpot/penpot.git
synced 2025-01-23 15:09:10 -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
|
ptk/WatchEvent
|
||||||
(watch [_ _ _]
|
(watch [_ _ _]
|
||||||
(rx/merge
|
(rx/of (dwn/finalize file-id)))))
|
||||||
(rx/of (dwn/finalize file-id))
|
|
||||||
(->> (rx/of ::dwp/finalize)
|
|
||||||
(rx/observe-on :async))))))
|
|
||||||
|
|
||||||
(declare go-to-page)
|
(declare go-to-page)
|
||||||
(declare ^:private preload-data-uris)
|
(declare ^:private preload-data-uris)
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
ptk/WatchEvent
|
ptk/WatchEvent
|
||||||
(watch [_ _ stream]
|
(watch [_ _ stream]
|
||||||
(log/debug :hint "initialize persistence")
|
(log/debug :hint "initialize persistence")
|
||||||
(let [stoper (rx/filter #(= ::finalize %) stream)
|
(let [stoper (rx/filter (ptk/type? ::initialize-persistence) stream)
|
||||||
commits (l/atom [])
|
commits (l/atom [])
|
||||||
|
|
||||||
local-file?
|
local-file?
|
||||||
|
|
Loading…
Add table
Reference in a new issue