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

remove componentWillMount #1228

Merged
merged 1 commit into from
Jan 10, 2019
Merged

remove componentWillMount #1228

merged 1 commit into from
Jan 10, 2019

Conversation

boygirl
Copy link
Contributor

@boygirl boygirl commented Jan 10, 2019

Some odd behavior was happening when switching from componentWillMount to componentDidMount, so instead, render will set up events if they have not already been set up. This ensures that the first render has the correct events. Events are subsequently updated when props update.

@boygirl boygirl merged commit ec887e0 into master Jan 10, 2019
@boygirl boygirl deleted the task/cWM-to-cDM branch January 10, 2019 00: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.

1 participant