swiper
swiper copied to clipboard
Only update context when values change to avoid extra re-renders
Currently the context is changing whenever the SwiperSlide is re-rendered since it isn't memoized. This fixes that to reduce re-renders of child components.
Would be good to see the CodeSandbox illustrating both issue and fix
Closing due to inactivity and/or no responses from issue author