mnogueron/react-easy-panzoom

Prevent re-renders of children

devinhalladay opened this issue · 1 comments

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?

@mnogueron do you still maintain this repo?