-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Export HiddenContext
from the utils in react-aria-components
#6459
Conversation
Looks like there are failing tests but they are not triggered because of the changes in this PR, but by something else. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Question for the team: are we ok exporting forwardRefType
?
I'm not sure about making our hacks into public APIs. Let's think about this a bit more. 😅 |
@devongovett Exporting |
This comment was marked as off-topic.
This comment was marked as off-topic.
What would be the reason to do so, @sadeghbarati ? My particular use case is to introduce a custom popover component (in place of the one provided by React Aria). |
This comment was marked as off-topic.
This comment was marked as off-topic.
This is a separate issue, let's keep the discussion there. |
My concern is that it feels very "implementation-detail"-y. I think we want to allow creating custom popovers to work with select/combobox, but as it is, this seems quite difficult to document, and hard for us to maintain over time if we end up changing the implementation. Seems like we need a more official API, but I'm not sure what that would be yet. In the meantime, does it work if you use |
@devongovett Using simply a I think we can leave it at just exporting the What do you think? |
adcd5b9
to
7bbe0bc
Compare
This will give user land components the opportunity to use the context to replace components like the Popover in the Select component without breaking the functionality of the Select.
…ents that are like the ones in `react-aria-components`
resolved by #6640 |
This will give user land components the opportunity to use the context to replace components like the Popover in the Select component without breaking the functionality of the Select.
Also, export the
forwardRefType
so that we can build components just like they are built insidereact-aria-components
.Closes #6453
✅ Pull Request Checklist:
Added/updated unit tests and storybook for this change (for new code or code which already has tests).Updated documentation (if it already exists for this component).📝 Test Instructions:
react-aria-components
:PopoverReplacement
instead of thePopover
in the JSX created in point 1:The select should continue to work as usual and have the options pre-populated, even when the popover replacement is not visible yet, e.g. during SSR.
🧢 Your Project:
react-aria-components