kidjp85 / react-id-swiper

A library to use idangerous Swiper as a ReactJs component which allows Swiper's modules custom build
https://react-id-swiper.ashernguyen.site/
MIT License
1.49k stars 154 forks source link

Cannot access swiper object using ref #448

Open kapokyue opened 4 years ago

kapokyue commented 4 years ago

I am using react-id-swiper@4.0.0

I created a example (https://codesandbox.io/s/sharp-pond-kxyuw?file=/src/App.js) to shows that swiper object is undefined in ref function.

But swiper object can be accessed after the component reloaded.