Skip to content

HOC should extends PureComponent #800

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Saket23
Copy link

@Saket23 Saket23 commented Jun 2, 2021

We faced a performance issue recently while using react-sortable-hoc.
If we have a large list, such as 300 to 400, and whenever its parent re-renders all the child also re renders.

So raising the PR to change it to PureComponent to get the performance benefit.
Though I am a bit worried about folks who are already using it and have not taken care of the cons of using PureComponent.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jun 2, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 46c5b16:

Sandbox Source
react-sortable-hoc-starter Configuration

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

Successfully merging this pull request may close these issues.

1 participant