Skip to content

Multiple swiper controls causes RangeError: Maximum call stack size exceeded #7955

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

Open
5 of 6 tasks
mttetc opened this issue Apr 10, 2025 · 0 comments
Open
5 of 6 tasks
Labels

Comments

@mttetc
Copy link

mttetc commented Apr 10, 2025

Check that this is really a bug

  • I confirm

Reproduction link

https://codesandbox.io/p/sandbox/flamboyant-shape-qrkmlz?file=%2Fsrc%2FApp.js

Bug description

If I try to pass an array of Swiper instances as controller I get
RangeError
Maximum call stack size exceeded
Changing states to refs is not a solution

Expected Behavior

I need all swiper instances to be synced and controlled by each other

Actual Behavior

No response

Swiper version

11.2.6

Platform/Target and Browser Versions

Chrome

Validations

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
  • Make sure this is a Swiper issue and not a framework-specific issue

Would you like to open a PR for this bug?

  • I'm willing to open a PR
@mttetc mttetc added the React label Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant