mirror of
https://github.com/penpot/penpot.git
synced 2025-06-09 07:01:39 +02:00
✨ More performance improvements
This commit is contained in:
parent
07d552c86b
commit
cf77ebde6a
7 changed files with 141 additions and 104 deletions
|
@ -24,7 +24,8 @@
|
|||
(let [shape (unchecked-get props "shape")
|
||||
background? (unchecked-get props "background?")
|
||||
{:keys [id x y width height]} (:selrect shape)
|
||||
pdata (ugp/content->path (:content shape))
|
||||
content (:content shape)
|
||||
pdata (mf/use-memo (mf/deps content) #(ugp/content->path content))
|
||||
props (-> (attrs/extract-style-attrs shape)
|
||||
(obj/merge!
|
||||
#js {:d pdata}))]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue