-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
Controller module + loop=true causes destroy() to crash #6491
Comments
@nolimits4web this still occurs in the reproduction example on the latest version of Swiper. |
Hey, main account here. |
Check that this is really a bug
Reproduction link
https://codesandbox.io/p/sandbox/swiper-react-infinite-loop-forked-04uv5n?selection=%5B%7B%22endColumn%22%3A18%2C%22endLineNumber%22%3A51%2C%22startColumn%22%3A18%2C%22startLineNumber%22%3A51%7D%5D&file=%2Fsrc%2FApp.jsx
Bug description
I know this issue likely goes outside the bounds of React but since I only have reproduction case for React I thought I'd just put it here.
The issue is fairly simple in nature.
When using the Controller module and loop=true together the component crashes when unmounted.
Expected Behavior
No error thrown
Actual Behavior
An error is thrown
Swiper version
9.1.0 as well as 9.0.5
Platform/Target and Browser Versions
Test case in Chrome on windows. Error observed via Sentry in a multitude of browsers on both iOS and Android.
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: