mirror of
https://github.com/penpot/penpot.git
synced 2026-05-11 02:58:25 +00:00
🎉 Add missing memoization to frame wrapper on viewer.
This commit is contained in:
parent
a14073d170
commit
162fe5219c
@ -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…
x
Reference in New Issue
Block a user