When using the swiper my components did not respond to prop updates. However, I found the issue and saved the changes using package-patch. The problem was the props were not added to the cloned children of the swiper. Here is the fix for those interested and for the maintainer. Hope this helps!
Original:
{cloneElement(el, { activeIndex: this.getActiveIndex(), index: i, isActive: i === this.getActiveIndex() })}
Updated:
{cloneElement(el, { ...el.props, activeIndex: this.getActiveIndex(), index: i, isActive: i === this.getActiveIndex() })}
When using the swiper my components did not respond to prop updates. However, I found the issue and saved the changes using package-patch. The problem was the props were not added to the cloned children of the swiper. Here is the fix for those interested and for the maintainer. Hope this helps!
Original:
Updated: