mirror of
https://github.com/penpot/penpot.git
synced 2025-07-31 23:19:30 +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]
|
||||
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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue