-
Notifications
You must be signed in to change notification settings - Fork 215
feat: Hooks and API simplifications #288
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
Conversation
src/DropdownMenu.js
Outdated
| this.context.show == null ? this.props.show : this.context.show; | ||
|
|
||
| const alignEnd = | ||
| this.context.alignEnd == null |
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.
shouldn't props win over context in general?
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.
probably...this was the way it was i think
| children: PropTypes.func.isRequired, | ||
| }; | ||
|
|
||
| function DropdownToggle({ children }) { |
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 this essentially soft-deprecated in favor of the hook now?
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.
maybe, i'm not convinced the pure hook api here is the best option, at least not until there is a proper popper.js hooks api
|
gonna clean up the lint in a min |
| "warning": "^4.0.3" | ||
| }, | ||
| "peerDependencies": { | ||
| "react": ">=16.3.0", |
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.
we should bump up the peer dependencies as we are using hooks now
No description provided.