akiran / akiran/react-slick

Lazyload fails to load items on previous page

未關閉
#1,906 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
JavaScript
星號
11.9k
分支
2.1k
PR 合併指標
30 天內沒有已合併 PR

描述

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)

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。