mirror of
https://github.com/penpot/penpot.git
synced 2025-02-13 18:48:37 -05: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)
|
||||
height (* (:height frame) zoom)
|
||||
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
|
||||
:width width
|
||||
|
|
Loading…
Add table
Reference in a new issue