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

Virtualizer component or virtualising props on collections components #7361

Open
mJarsater opened this issue Nov 13, 2024 · 1 comment
Open

Comments

@mJarsater
Copy link

mJarsater commented Nov 13, 2024

Provide a general summary of the feature here

In #5912 and https://react-spectrum.adobe.com/releases/2024-07-22.html a "custom" virtulizer component is mentioned, but there is no documentation for how to implement/use it. We have multiple ComboBoxes/Selects that have a lot on items (1000+) and without virtulization they quickly become very non performant. Therefor we would love a Virtualizer component with a predictable API from react-aria-components.

🤔 Expected Behavior?

Some type of Virtualizer component would be great. If this is to complex and needs to be done "under the hood" it would be great if there were props exposed on the ListBox from virtualizing.

😯 Current Behavior

No virtualization is done out-of-theb-box and there seems to be no docs on how to achieve it.

💁 Possible Solution

No response

🔦 Context

We are multiple ComboBoxes/Selects that have a lot on items (1000+) and without virtulization they quickly become very non performant.

💻 Examples

https://codesandbox.io/p/sandbox/fy26mm

🧢 Your Company/Team

No response

🕷 Tracking Issue

No response

@mJarsater mJarsater changed the title Virtualizer Virtualizer component or virtualising props on collections components Nov 13, 2024
@LFDanLu
Copy link
Member

LFDanLu commented Nov 14, 2024

Hey, sorry about that, we plan to release docs covering the RAC virtualizer in the future but just haven't gotten the time due to other priorities. Can you try doing something like this: https://codesandbox.io/p/sandbox/pedantic-black-vrd8rh? Otherwise, you can look at some of our stories for an example of how to use UNSTABLE_Virtualizer for now.

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

No branches or pull requests

2 participants