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

Autoplay and stop on hover causes a warning. #148

Closed
ghost opened this issue Jul 4, 2017 · 0 comments
Closed

Autoplay and stop on hover causes a warning. #148

ghost opened this issue Jul 4, 2017 · 0 comments

Comments

@ghost
Copy link

ghost commented Jul 4, 2017

When using autoplay and the stop on hover functionality this can cause setTimeout issues because the autoplay function is not being cleared properly.

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.

Related to issue: #142

Reproduce by setting up the carousel with autoplay and stop on hover, then render the page and click the next and previous buttons a couple of times, move mouse away from the carousel or navigate away from the page the carousel is on, this will trigger the setState error as described.

leandrowd added a commit that referenced this issue Jul 4, 2017
#148 Autoplay and stop on hover causes a warning.
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

No branches or pull requests

1 participant