nolimits4web / swiper

Most modern mobile touch slider with hardware accelerated transitions
https://swiperjs.com
MIT License
39.67k stars 9.75k forks source link

Thumbs Module not working on Strict Mode #7565

Open JavoByte opened 4 months ago

JavoByte commented 4 months ago

Check that this is really a bug

Reproduction link

https://codesandbox.io/p/devbox/swiper-react-thumbs-gallery-forked-6j6tf2?file=%2Fsrc%2Fmain.jsx%3A7%2C37

Bug description

Running the Thumbs example using StrictMode and hydrateRoot breaks with Cannot convert undefined or null to object. It seems this is due to Swiper instance being destroyed.

Expected Behavior

Thumbs works in strict mode

Actual Behavior

No response

Swiper version

11.1.3

Platform/Target and Browser Versions

macOS Chrome

Validations

Would you like to open a PR for this bug?

chenershisi commented 1 month ago

same issue