Skip to content

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

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

@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.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

@mxschmitt mxschmitt deleted the hooks branch July 3, 2019 12:00
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.

4 participants