akiran / akiran/react-slick

How do react-slick always start on the first slide?

Open
#1,621 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
11.9k
Forks
2.1k
PR merge metrics
No merged PRs in 30d

Description

My slide points to several end points of an image api, but always when I change the end point direction to the react-slide and it always returns to the previous state, but the beforeChange method returns currentIndex equal to zero. Already tried to use the goTo method to return to the position after loading new data and nothing happens.

What is the best way to solve this?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.