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

Controlled Carousel using afterSlide and slideIndex results in infinite loop #980

Open
panigrah opened this issue Oct 25, 2022 · 1 comment

Comments

@panigrah
Copy link

This was closed in #416 - but still there in latest.

###Recreating issue
Sandbox with behavior

https://codesandbox.io/s/inspiring-nightingale-6felod?file=/src/App.js

Am using the latest Nuka 5.4, React 18.2

Describe the Problem

Controlled Carousel ends up in an infinite loop if the "next" and "prev" buttons are clicked really fast.

@fritz-c
Copy link
Contributor

fritz-c commented Oct 25, 2022

Try with beforeSlide:
https://codesandbox.io/s/laughing-tree-gzoru1?file=/src/App.js

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

2 participants