mirror of
https://github.com/penpot/penpot.git
synced 2025-06-20 14:47:01 +02:00
🎉 Add missing memoization to frame wrapper on viewer.
This commit is contained in:
parent
a14073d170
commit
162fe5219c
1 changed files with 2 additions and 1 deletions
|
@ -88,7 +88,8 @@
|
||||||
width (* (:width frame) zoom)
|
width (* (:width frame) zoom)
|
||||||
height (* (:height frame) zoom)
|
height (* (:height frame) zoom)
|
||||||
vbox (str "0 0 " (:width frame 0) " " (:height frame 0))
|
vbox (str "0 0 " (:width frame 0) " " (:height frame 0))
|
||||||
frame-wrapper (exports/frame-wrapper objects)]
|
frame-wrapper (mf/use-memo (mf/deps objects)
|
||||||
|
#(exports/frame-wrapper objects))]
|
||||||
|
|
||||||
[:svg {:view-box vbox
|
[:svg {:view-box vbox
|
||||||
:width width
|
:width width
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue