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

1.4.0 #112

Merged
merged 8 commits into from
Dec 21, 2018
Merged

1.4.0 #112

merged 8 commits into from
Dec 21, 2018

Conversation

bvaughn
Copy link
Owner

@bvaughn bvaughn commented Dec 21, 2018

Resolves #100, #104, #106, #111

  • List and Grid components now "overscan" (pre-render) in both directions when scrolling is not active. When scrolling is in progress, cells are only pre-rendered in the direction being scrolled. This change has been made in an effort to reduce visible flicker when scrolling starts without adding additional overhead during scroll (which is the most performance sensitive time).
  • Grid components now support separate overscanColumnsCount and overscanRowsCount props. Legacy overscanCount prop will continue to work, but with a deprecation warning in DEV mode.
  • Replaced setTimeout with requestAnimationFrame based timer, to avoid starvation issue for isScrolling reset.
  • Renamed List and Grid innerTagName and outerTagName props to innerElementType and outerElementType to formalize support for attaching arbitrary props (e.g. test ids) to List and Grid inner and outer DOM elements. Legacy innerTagName and outerTagName props will continue to work, but with a deprecation warning in DEV mode.
  • List re-renders items if direction prop changes.

@bvaughn bvaughn merged commit 8ff411c into master Dec 21, 2018
@bvaughn bvaughn deleted the overscan-tweaks branch December 21, 2018 23:06
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.

None yet

1 participant