Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent re-renders of children #55

Open
devinhalladay opened this issue Oct 21, 2020 · 1 comment
Open

Prevent re-renders of children #55

devinhalladay opened this issue Oct 21, 2020 · 1 comment

Comments

@devinhalladay
Copy link

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?

@devinhalladay
Copy link
Author

@mnogueron do you still maintain this repo?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant