Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detail page: Cast and Crew tab #103

Closed
Khanhtran47 opened this issue Aug 16, 2022 · 4 comments · Fixed by #123 or #194
Closed

Detail page: Cast and Crew tab #103

Khanhtran47 opened this issue Aug 16, 2022 · 4 comments · Fixed by #123 or #194
Assignees
Labels
design need to add or change design feature New feature or request

Comments

@Khanhtran47
Copy link
Owner

Khanhtran47 commented Aug 16, 2022

Already add cast and crew tab in #123
things left to do: We have many items from both cast and crew (about 100 → 500 items), so we need to install a package for virtualizing list and use in List component

https://tanstack.com/virtual/v3/docs/guide/introduction

@Khanhtran47 Khanhtran47 added feature New feature or request design need to add or change design labels Aug 16, 2022
Khanhtran47 added a commit that referenced this issue Aug 21, 2022
@ctuanle
Copy link
Collaborator

ctuanle commented Aug 21, 2022

@Khanhtran47 cái này m muốn render hết cả mấy trắm người ra á ? t nghĩ k cần thiết lắm đâu, nếu t là người xem chẳng hạn, t quan tâm cỡ 20 - 30 diễn viên đầu là cùng 😅

@Khanhtran47
Copy link
Owner Author

Khanhtran47 commented Aug 21, 2022

@Khanhtran47 cái này m muốn render hết cả mấy trắm người ra á ?

@ctuanle k nơi, t nghĩ lm kiểu infinite scroll ý, đều thay vì scroll thì add 1 button load more ở dưới, ai muốn xem tiếp thì ấn ý
với thêm cái virtual phía trên để nó virtual mấy cái đang hiển thị, t định thêm cái infinite scroll ni nơi chỗ search với recommendation phim đồ luôn

@ctuanle
Copy link
Collaborator

ctuanle commented Aug 21, 2022

@Khanhtran47 có nghĩa là mấy trăm người đó được load sẵn rồi, giờ thay vì render hết 1 lần thì dùng cái "virtual" này để render trước 1 ít rồi lúc scroll mới render tiếp từng đợt á hầy ?

@Khanhtran47
Copy link
Owner Author

@Khanhtran47 có nghĩa là mấy trăm người đó được load sẵn rồi, giờ thay vì render hết 1 lần thì dùng cái "virtual" này để render trước 1 ít rồi lúc scroll mới render tiếp từng đợt á hầy ?

@ctuanle ừ, kiểu scroll đến mô thì hấn render trong view, mấy cái scroll qua cũng ẩn luôn, theo t hiểu về cái virtual ni là rứa

có example của remix luôn 🚀
https://github.dev/remix-run/remix/tree/main/examples/infinite-scrolling

@Khanhtran47 Khanhtran47 linked a pull request Oct 7, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design need to add or change design feature New feature or request
Projects
None yet
2 participants