0
Fork 0
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:
Andrey Antukh 2020-04-10 17:26:16 +02:00 committed by Alonso Torres
parent a14073d170
commit 162fe5219c

View file

@ -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