swiper icon indicating copy to clipboard operation
swiper copied to clipboard

Only update context when values change to avoid extra re-renders

Open cvbuelow opened this issue 1 year ago • 1 comments

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.

cvbuelow avatar Nov 14 '23 19:11 cvbuelow

Would be good to see the CodeSandbox illustrating both issue and fix

nolimits4web avatar Nov 15 '23 17:11 nolimits4web

Closing due to inactivity and/or no responses from issue author

nolimits4web avatar Feb 27 '24 10:02 nolimits4web