mirror of
https://github.com/penpot/penpot.git
synced 2025-08-07 14:38:33 +02:00
Improve performance and many of unexpected conflicts on page save.
This commit is contained in:
parent
cf55aeda63
commit
87e19875e3
1 changed files with 4 additions and 4 deletions
|
@ -176,10 +176,10 @@
|
||||||
(deftype PagePersisted [data]
|
(deftype PagePersisted [data]
|
||||||
ptk/UpdateEvent
|
ptk/UpdateEvent
|
||||||
(update [_ state]
|
(update [_ state]
|
||||||
;; TODO: update only the version instead of complete unpacking
|
(let [{:keys [id version]} data]
|
||||||
;; this will improve the application responsiveness when multiple
|
(-> state
|
||||||
;; updates are performed
|
(assoc-in [:pages id :version] version)
|
||||||
(assoc-page state data)))
|
(assoc-packed-page data)))))
|
||||||
|
|
||||||
(defn- page-persisted?
|
(defn- page-persisted?
|
||||||
[event]
|
[event]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue