question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

infiniteLoop is broken since 3.2.22

See original GitHub issue

Describe the bug The infiniteLoop option does not work anymore with version 3.2.22. The carousel does not go in a loop but jumps from the end to the start or from start to end.

To Reproduce Install version 3.2.22 and create a carousel with at least 2 slides. Go to the last slide and then one more. It should go the first slide in a loop but instead it jumps back to the first slide.

Expected behavior It should go in a loop.

Additional context The infiniteLoop option works as expected with 3.2.21. Installing this exact version “fixes” it. The weird thing is that if you install the newest version and then comment out the only change made to the code (https://github.com/leandrowd/react-responsive-carousel/commit/8cc7480c055d5824a23708a003be0941a364e8a2) it does not fix the problem. So this change does not seem to cause the bug. Maybe the build process changed and the bug was introduced there?

Video from the storybook You can see the bug in the storybook demo. As you can see the infiniteLoop option is enabled but it just jumps back. I would like to show the difference to the previous version but i don’t know if thats possible in storybooks.

https://user-images.githubusercontent.com/63549997/153608318-760ca202-b8f4-4c6c-9958-7ba9414a456e.mov

I would help I would like to contribute but i don’t know what else could be the problem to this instead of the only change made to the code and I don’t know about your build process. Maybe you find the problem or can give me more info where to look.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:9
  • Comments:7

github_iconTop GitHub Comments

1reaction
michael-harleycommented, Apr 15, 2022

Thanks for sharing this issue! For now, I’ll revert to 3.2.21 👍

0reactions
thomcrielaardcommented, Dec 15, 2022

same issue i am facing reverted back to version 3.2.21 and now its working fine

Good suggestion, I’ll try that soon!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Home Assistant 2022.2.3 update, History page infinite loading
Hello all, today I updated my Home Assistant (Synology NAS docker) to version 2022.2.3. After update and restart I can't access anymore to ......
Read more >
Can't login to App Store - "review your a… - Apple Community
When I am trying to login on my MacBook's App Store, I am brought to an infinite login loop. Here is what happens:....
Read more >
Halo Infinite Patch: February 3rd, 2022 | BTB Fix Round 2
Its combat game with broken combat.
Read more >
Debugging Infinite Loops | CodeHS Knowledge Base
Infinite loops occur when loops have no exit condition - no way to stop - so when the program is run it loops...
Read more >
VS2022 hangs during build for SDK style projects post ...
This has been happening since VS 2019 Preview. ... specifically it is the cl.exe process that hangs in what appears to be an...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found