akiran / akiran/react-slick

Lazyload fails to load items on previous page

Aperta
#1,906 1 commento 0 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

I have a setup of 21 items and 6 items per page as example. When switching from the first page to the last (by pressing previous page) it will only render 3 items.

This is only an issue with `lazyLoad={true}`

Sandbox:
https://codesandbox.io/s/react-slick-playground-forked-f2t97?fontsize=14&hidenavigation=1&theme=dark

![image](https://user-images.githubusercontent.com/9765622/95752720-bec7d500-0ca0-11eb-9776-719f0ff2d497.png)

Just press the left arrow once and you will only see 3 kittens, instead of the expected 6

![image](https://user-images.githubusercontent.com/9765622/95752749-cb4c2d80-0ca0-11eb-8b66-5eebda504e81.png)

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.