0
Fork 0
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:
Andrey Antukh 2022-11-21 16:12:24 +01:00 committed by Andrés Moya
parent 1b9dea01e2
commit 9334138510
2 changed files with 2 additions and 5 deletions

View file

@ -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)

View file

@ -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?