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

added TODOs to the lifecycle methods deprecated in react 16.3 #843

Merged
merged 2 commits into from
May 17, 2018

Conversation

chandlerprall
Copy link
Contributor

Completes the first step in #763 by adding TODOs to the locations where EUI uses the React lifecycle methods that were deprecated in 16.3. Each comment includes a suggestion for how to move that instance off the deprecated method.

Copy link
Contributor

@cjcenizal cjcenizal left a comment

Choose a reason for hiding this comment

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

📡 These all look fantastic! Great notes. Just had one suggestion about comment consistency.

@@ -248,6 +248,7 @@ export class EuiBasicTable extends Component {
this.props.onChange(criteria);
}

// @TODO: React 16.3 - getDerivedStateFromProps
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you also update the other TODO comments inside src to follow the form @TODO? This way we won't miss them if we grep for @TODO. Either that or change these @TODO to TODO for consistency, either way is fine to me.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed to match existing TODO format

@chandlerprall chandlerprall merged commit 1248967 into elastic:master May 17, 2018
@chandlerprall chandlerprall deleted the react-16-3-todos branch May 17, 2018 21:36
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.

None yet

2 participants