How to fix bug with two-way controll swiper in reactjs
问题 So, I have two swipers with two-way controlls: function GroupSchedule({ setModalIsOpen, setModalContent, isFetched }) { const [thumbsSwiper, setThumbsSwiper] = useState(null); const [lessonsSwiper, setLessonsSwiper] = useState(null); return ( <> <TopBar setModalIsOpen={setModalIsOpen} /> <Swiper slidesPerView={4} centeredSlides onSwiper={setThumbsSwiper} controller={{ control: lessonsSwiper }} > {...slides1} </Swiper> { isFetched ? <Loader /> : <Swiper spaceBetween={5} slidesPerView={1}