Skip to content

Virtualizer: Export Virtualizer from react-aria #10000

@AlexVipond

Description

@AlexVipond

Provide a general summary of the feature here

Background: Virtualizer is written inside react-aria, but currently only exported from react-aria-components.

Problem: Some projects just install react-aria, not react-aria-components, usually due to a technical preference for React Aria's hooks. These projects cannot import Virtualizer unless they separately install react-aria-components.

Solution: Export Virtualizer from react-aria

🤔 Expected Behavior?

It should be possible to import Virtualizer from react-aria

😯 Current Behavior

It is not possible to import Virtualizer from react-aria

💁 Possible Solution

Export Virtualizer from react-aria

🔦 Context

See general summary.

The only thing I might add is a couple thoughts on the obvious question: why not just install react-aria-components, and let tree-shaking handle the rest?

Reasons:

  • It's best practice for disk space and project cleanliness not to install packages unless they're absolutely necessary
  • In some professional projects, there are strict security rules around installing new packages, and the process to approve a new package can be long

💻 Examples

No response

🧢 Your Company/Team

No response

🕷 Tracking Issue

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions