mirror of
https://github.com/penpot/penpot.git
synced 2026-03-15 06:56:06 +00:00
Improve performance and many of unexpected conflicts on page save.
This commit is contained in:
@@ -176,10 +176,10 @@
|
||||
(deftype PagePersisted [data]
|
||||
ptk/UpdateEvent
|
||||
(update [_ state]
|
||||
;; TODO: update only the version instead of complete unpacking
|
||||
;; this will improve the application responsiveness when multiple
|
||||
;; updates are performed
|
||||
(assoc-page state data)))
|
||||
(let [{:keys [id version]} data]
|
||||
(-> state
|
||||
(assoc-in [:pages id :version] version)
|
||||
(assoc-packed-page data)))))
|
||||
|
||||
(defn- page-persisted?
|
||||
[event]
|
||||
|
||||
Reference in New Issue
Block a user