You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm using Panzoom to create a zoomable/pannable canvas that includes draggable elements that can move around the canvas.
I'm having an issue where panning and zooming re-renders all children of <Panzoom>, creating huge performance bottlenecks, especially when there is a large quantity of children.
Is there a way to prevent this? Perhaps wrapping the Panzoom component in a React.memo?
The text was updated successfully, but these errors were encountered:
Hi, I'm using Panzoom to create a zoomable/pannable canvas that includes draggable elements that can move around the canvas.
I'm having an issue where panning and zooming re-renders all children of
<Panzoom>
, creating huge performance bottlenecks, especially when there is a large quantity of children.Is there a way to prevent this? Perhaps wrapping the Panzoom component in a
React.memo
?The text was updated successfully, but these errors were encountered: