Generic Virtualizer#25451
Merged
Mitch-At-Work merged 3 commits intoJan 18, 2023
Merged
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
V9 Virtualizer Draft
masterbranchyarn changelocallyCurrent 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 #