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

Added areEqual and shouldComponentUpdate methods #114

Merged
merged 3 commits into from
Dec 28, 2018

Conversation

bvaughn
Copy link
Owner

@bvaughn bvaughn commented Dec 28, 2018

Simplify advanced item renderer memoization techniques by exporting a shouldComponentUpdate function (for class components) and an areEquals function (for React.memo).

These newly added functions are optional to use and should not impact bundle size unless used. (Edit: Confirmed that adding a simple FixedSizeList to a create-react-app only increases gzipped size by +2.13 KB)

Relates to issue #111

@bvaughn bvaughn merged commit aee9848 into master Dec 28, 2018
@bvaughn bvaughn deleted the advanced-memoization-techniques branch December 28, 2018 01:32
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