Skip to content
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

feat: Hooks and API simplifications #288

Merged
merged 8 commits into from
May 23, 2019
Merged

feat: Hooks and API simplifications #288

merged 8 commits into from
May 23, 2019

Conversation

jquense
Copy link
Member

@jquense jquense commented Mar 15, 2019

No description provided.

this.context.show == null ? this.props.show : this.context.show;

const alignEnd =
this.context.alignEnd == null
Copy link
Member

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?

Copy link
Member Author

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

src/DropdownMenu.js Outdated Show resolved Hide resolved
@@ -21,22 +33,15 @@ const propTypes = {
*/
children: PropTypes.func.isRequired,
};

function DropdownToggle({ children }) {
Copy link
Member

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?

Copy link
Member Author

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

src/Overlay.js Show resolved Hide resolved
www/gatsby-config.js Show resolved Hide resolved
src/RootCloseWrapper.js Outdated Show resolved Hide resolved
src/RootCloseWrapper.js Outdated Show resolved Hide resolved
src/utils/mergeRefs.js Show resolved Hide resolved
@jquense jquense changed the title WIP: Hooks and API simplifications feat: Hooks and API simplifications May 23, 2019
@jquense jquense merged commit 9f98306 into master May 23, 2019
@jquense
Copy link
Member Author

jquense commented May 23, 2019

gonna clean up the lint in a min

"warning": "^4.0.2"
"react-popper": "^1.3.3",
"uncontrollable": "^6.1.0",
"warning": "^4.0.3"
},
"peerDependencies": {
"react": ">=16.3.0",
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants