Skip to content

Generic Virtualizer#25451

Merged
Mitch-At-Work merged 3 commits into
microsoft:masterfrom
Mitch-At-Work:user/mifraser/list-virtualizer
Jan 18, 2023
Merged

Generic Virtualizer#25451
Mitch-At-Work merged 3 commits into
microsoft:masterfrom
Mitch-At-Work:user/mifraser/list-virtualizer

Conversation

@Mitch-At-Work

@Mitch-At-Work Mitch-At-Work commented Oct 31, 2022

Copy link
Copy Markdown
Contributor

V9 Virtualizer Draft

  • Code is up-to-date with the master branch
  • Your changes are covered by tests (if possible) - basic tests for unstable to ensure virtualization is working.
  • You've run yarn change locally

Current Behavior

Currently, Virtualization is provided by several OSS libraries that enable scroll detection and positioning of components, these libraries, while excellent, do not adhere to the same design philosophy as V9 in terms of composability and user access.

New Behavior

This Virtualizer is intended to be a composable, generic wrapper for long-length children with minimal DOM changes, it uses the intersection observer library to optimize and remove scroll callback loops and instead only initiate calculations and re-renders when required.

This library can be used vertically or horizontally, in regular or reverse order, is compatible with generic types and a multitude of List, Grid, or Table implementations. If you wish to provide a scroll view, the ref may be passed in to optimize further, however it is not required.

Related Issue(s)

TBD

Fixes #

Loading
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.

9 participants