mirror of
https://github.com/penpot/penpot.git
synced 2026-09-11 06:28:47 +00:00
🐛 Fix problem with token performance
This commit is contained in:
parent
d6dc0fe1a7
commit
6e2dc0c3dc
@ -332,9 +332,14 @@
|
|||||||
|
|
||||||
(defn process-shape-changes!
|
(defn process-shape-changes!
|
||||||
[objects shape-changes]
|
[objects shape-changes]
|
||||||
(->> (rx/from shape-changes)
|
(let [shape-changes
|
||||||
(rx/mapcat (fn [[shape-id props]] (process-shape! (get objects shape-id) props)))
|
(->> shape-changes
|
||||||
(rx/subs! #(api/request-render "set-wasm-attrs"))))
|
;; We don't need to update the model for shapes not in the current page
|
||||||
|
(filter (fn [[shape-id _]] (shape-in-current-page? shape-id))))]
|
||||||
|
(when (d/not-empty? shape-changes)
|
||||||
|
(->> (rx/from shape-changes)
|
||||||
|
(rx/mapcat (fn [[shape-id props]] (process-shape! (get objects shape-id) props)))
|
||||||
|
(rx/subs! #(api/request-render "set-wasm-attrs"))))))
|
||||||
|
|
||||||
;; `conj` empty set initialization
|
;; `conj` empty set initialization
|
||||||
(def conj* (fnil conj (d/ordered-set)))
|
(def conj* (fnil conj (d/ordered-set)))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user