-
Notifications
You must be signed in to change notification settings - Fork 859
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
[Portal] Kill old portal and replace with new one #1460
Conversation
benoitgrelard
commented
Jun 9, 2022
•
edited
Loading
edited
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.
;)
@@ -4,7 +4,7 @@ import { composeEventHandlers } from '@radix-ui/primitive'; | |||
import { useComposedRefs } from '@radix-ui/react-compose-refs'; | |||
import { createContextScope } from '@radix-ui/react-context'; | |||
import * as DismissableLayer from '@radix-ui/react-dismissable-layer'; | |||
import { UnstablePortal } from '@radix-ui/react-portal'; | |||
import { Portal } from '@radix-ui/react-portal'; |
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.
Is there a reason we alias in some places but not others?
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.
Yes, because a lot of the new components now expose their own Portal
part so it would clash.
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.
Was just about to update my comment, should we be consistent? does it matter?
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.
I don't think it matter much, and generally I think we only alias when the need is there.
I just realised I fucked this up here, because it was merged into The order of merging should have been the other way around… |