akiran / akiran/react-slick

Slider breaks when adding new images

Aperta
#1,740 0 commenti 3 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
11.9k
Fork
2.1k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

In https://stackblitz.com/edit/react-slick-slider-issues-3cemya, calling **randomuser API** and passing the initial data to the slider. Keeping track of the **current slideindex** using **afterChange** and on each update calling **useEffect** to fetch new data from the **randomuser API** and then concatenate the new results to the old results. sometimes the slider breaks when adding new data and resets to normal after few seconds.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.