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

refactor(with-state, structured-list, combobox): replace unsafe lifecycle methods #5418

Merged
merged 3 commits into from
Feb 25, 2020

Conversation

abbeyhrt
Copy link
Contributor

@abbeyhrt abbeyhrt commented Feb 21, 2020

Refs #4902

This removes and replaces the functionality of the unsafe lifecycle methods from withState, StructuredList, and Combobox.

Changelog

Removed

  • unsafe lifecycle methods

Testing / Reviewing

Make sure that StructuredList, Combobox, and the components that use withState (Dropdown, DatePicker, and Combobox) work as expected

@abbeyhrt abbeyhrt requested a review from a team as a code owner February 21, 2020 19:42
@ghost ghost requested review from emyarod and tw15egan February 21, 2020 19:42
@netlify
Copy link

netlify bot commented Feb 21, 2020

Deploy preview for carbon-elements ready!

Built with commit 426e7ea

https://deploy-preview-5418--carbon-elements.netlify.com

@netlify
Copy link

netlify bot commented Feb 21, 2020

Deploy preview for carbon-components-react ready!

Built with commit 426e7ea

https://deploy-preview-5418--carbon-components-react.netlify.com

constructor(props) {
super(props);
this.state = {
initialState: this.props.initialState,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you mean this.state = this.props.initialState?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, my bad!

Copy link
Member

@emyarod emyarod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me

Copy link
Contributor

@asudoh asudoh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍 - Thanks @abbeyhrt!

@abbeyhrt abbeyhrt merged commit c4c0da0 into carbon-design-system:master Feb 25, 2020
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