Skip to content

Commit

Permalink
Merge pull request #50 from konglinlin/patch-1
Browse files Browse the repository at this point in the history
处理swiper内存溢出
  • Loading branch information
AnnaSearl authored Nov 17, 2020
2 parents a61225d + f7f9759 commit 7f70782
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/swiper/swiper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ const InternalSwiper: React.FC<SwiperProps> = (props: SwiperProps) => {
});
};
getSwiperWidth();
return () => {
clearInterval(intervalId.current);
}
}, []);

// Seamless switching
Expand Down

0 comments on commit 7f70782

Please sign in to comment.