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

Clearing timeout on unmount #4

Closed
wants to merge 2 commits into from
Closed

Conversation

zachrburke
Copy link

This fixes a warning that happens when calling setState on an unmounted component. The cause is setTimeout will still run after the component was unmounted.

Ran into this when working on a wizard where you got onto the next step before the ripple can finish animating.

@codecov-io
Copy link

Codecov Report

Merging #4 into master will decrease coverage by 8.69%.
The diff coverage is 50%.

Impacted file tree graph

@@           Coverage Diff            @@
##           master      #4     +/-   ##
========================================
- Coverage     100%   91.3%   -8.7%     
========================================
  Files           1       1             
  Lines          20      23      +3     
  Branches        2       2             
========================================
+ Hits           20      21      +1     
- Misses          0       2      +2
Impacted Files Coverage Δ
src/index.js 91.3% <50%> (-8.7%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update eca113a...9e742b8. Read the comment docs.

rwu823 added a commit that referenced this pull request Dec 9, 2017
@rwu823
Copy link
Owner

rwu823 commented Dec 10, 2017

@rwu823 rwu823 closed this Dec 10, 2017
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.

3 participants