You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem you're passing new gallery items on the render(anti-pattern): items={products.map(product => galleryItems(product))}. Each time, the gallery gets new items and calculates the initial props. The property slideToIndex not included in this process(startIndex only). Save items in the state or specify startIndex property together with slideToIndex.
Maybe in one of the next releases i'll implement a new logic and include both properties for initial calculation. But this is not an obvious case, and additional research is needed.
Hey,
Is this a bug or did I implement it wrong?
The slide stays in the current position on click.
The text was updated successfully, but these errors were encountered: