Skip to content

perf(react-aria-components): import from individual packages instead of react-aria and react-stately #8704

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bhovhannes
Copy link
Contributor

@bhovhannes bhovhannes commented Aug 11, 2025

Import from individual packages instead of react-aria and react-stately to download less when RSP is used at a runtime and is not tree-shaken by the bundler.

This is related to #8707. It does not address the issue completely, but improves situation a bit.

✅ Pull Request Checklist:

  • Included link to corresponding React Spectrum GitHub Issue.
  • Added/updated unit tests and storybook for this change (for new code or code which already has tests).
  • Filled out test instructions.
  • Updated documentation (if it already exists for this component).
  • Looked at the Accessibility Practices for this feature - Aria Practices

📝 Test Instructions:

Pipeline should pass. No api changes.

🧢 Your Project:

@bhovhannes bhovhannes force-pushed the main-hb-rac-imports-optimization branch from 814caeb to 8e30822 Compare August 12, 2025 07:00
@bhovhannes bhovhannes marked this pull request as ready for review August 12, 2025 09:54
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant