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

Rewrote EuiDelayHide for React 16.3 lifecycle #879

Merged
merged 1 commit into from
May 25, 2018

Conversation

chandlerprall
Copy link
Contributor

@chandlerprall chandlerprall commented May 25, 2018

Relates to #763

For this one, simply moving the old lifecycle into componentDidUpdate created a nice infinite setState loop. I scrapped the old logic and rewrote so there is less for the DelayHide to keep track of, and it's easier to follow.

@cjcenizal cjcenizal requested review from sorenlouv and removed request for cjcenizal May 25, 2018 21:18
@cjcenizal
Copy link
Contributor

@sqren Can I hand this one off to you since you're the original author? I'm on PTO. 😎

Copy link
Member

@sorenlouv sorenlouv left a comment

Choose a reason for hiding this comment

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

Looks much cleaner. Nice work!

@chandlerprall chandlerprall merged commit d148539 into elastic:master May 25, 2018
@chandlerprall chandlerprall deleted the react-16-3-delay-hide branch May 25, 2018 22:46
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

3 participants