You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is no docs about the loop indexing. There is only your official demo with the loop.
I have added printing slide indexes to your demo, and after last slide indexes are broken.
Here is a console log of it:
processSlideChange 1
processSlideChange 2
processSlideChange 3
processSlideChange 4
processSlideChange 5
processSlideChange 6
processSlideChange 7
processSlideChange 8
processSlideChange 7
processSlideChange 8
processSlideChange 7
processSlideChange 8
Expected Behavior
indexing of slides should be the next:
processSlideChange 1
processSlideChange 2
...
processSlideChange 7
processSlideChange 8
processSlideChange 1
processSlideChange 2
...
processSlideChange 7
processSlideChange 8
Actual Behavior
Here is a console log of broken indexing:
processSlideChange 1
processSlideChange 2
processSlideChange 3
processSlideChange 4
processSlideChange 5
processSlideChange 6
processSlideChange 7
processSlideChange 8
processSlideChange 7
processSlideChange 8
processSlideChange 7
processSlideChange 8
Check that this is really a bug
Reproduction link
https://codesandbox.io/p/devbox/swiper-react-infinite-loop-forked-34sp8c?file=%2Fsrc%2FApp.jsx
Bug description
There is no docs about the loop indexing. There is only your official demo with the loop.
I have added printing slide indexes to your demo, and after last slide indexes are broken.
Here is a console log of it:
processSlideChange 1
processSlideChange 2
processSlideChange 3
processSlideChange 4
processSlideChange 5
processSlideChange 6
processSlideChange 7
processSlideChange 8
processSlideChange 7
processSlideChange 8
processSlideChange 7
processSlideChange 8
Expected Behavior
indexing of slides should be the next:
processSlideChange 1
processSlideChange 2
...
processSlideChange 7
processSlideChange 8
processSlideChange 1
processSlideChange 2
...
processSlideChange 7
processSlideChange 8
Actual Behavior
Here is a console log of broken indexing:
processSlideChange 1
processSlideChange 2
processSlideChange 3
processSlideChange 4
processSlideChange 5
processSlideChange 6
processSlideChange 7
processSlideChange 8
processSlideChange 7
processSlideChange 8
processSlideChange 7
processSlideChange 8
Swiper version
11.0.7
Platform/Target and Browser Versions
windows/Chrome
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: