Skip to content

added a clearTimeout() to autoPlay() to fix a warning #142

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

Closed
wants to merge 1 commit into from

Conversation

ptshih
Copy link

@ptshih ptshih commented Jun 23, 2017

It seems like the timers being created in autoPlay() weren't being cleared for some reason... I have some suspicions but haven't been able to find the root cause. In the meantime, forcing a clearTimeout() before creating another setTimer() seems to fix the problem. See warning below:

Warning: setState(...): Can only update a mounted or mounting component. This usually means you called setState() on an unmounted component. This is a no-op. Please check the code for the Carousel component.

@ptshih
Copy link
Author

ptshih commented Jun 23, 2017

Nevermind, the issue can still be reproduced, will look into it more.

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