mirror of
https://github.com/penpot/penpot.git
synced 2025-03-13 16:21:57 -05:00
🐛 Temporary disable memoization on layers.
This commit is contained in:
parent
9734bc9325
commit
26b2b89b69
1 changed files with 2 additions and 2 deletions
|
@ -93,7 +93,7 @@
|
|||
(declare layer-item)
|
||||
|
||||
(mf/defc layer-item
|
||||
{::mf/wrap [#(mf/memo' % layer-item-memo-equals?)]}
|
||||
;; {::mf/wrap [#(mf/memo' % layer-item-memo-equals?)]}
|
||||
[{:keys [index item selected objects] :as props}]
|
||||
(let [selected? (contains? selected (:id item))
|
||||
collapsed? (mf/use-state false)
|
||||
|
@ -238,4 +238,4 @@
|
|||
[:span (:name page)]
|
||||
#_[:div.tool-window-close {:on-click on-click} i/close]]
|
||||
[:div.tool-window-content
|
||||
[:& layers-tree]]]))
|
||||
[:& layers-tree {:key (:id page)}]]]))
|
||||
|
|
Loading…
Add table
Reference in a new issue