Open coderschoolreview opened 5 years ago
Thank you very much!
Vào 18:02, Th 2, 19 thg 8, 2019 CoderSchooler <notifications@github.com đã viết:
- giao diện khá ổn, có điều content trong news card đang bị lệch
- các item nên sử dụng stateless component
- sao bạn cần viết đoạn này nhỉ if (page === 2), bạn có thể detect response trả về, nếu rỗng tức là đã đến page cuối cùng và không cần fetch data nữa
- key của các item đang bị duplicate do bạn fetch lại dữ liệu của trang trước
- overall, need more effort
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ledutu/AssignmentWeek5/issues/1?email_source=notifications&email_token=AMUUJC4OQV6D2A7PN4BBY33QFJ4U5A5CNFSM4IM6BF2KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HF6PTCA, or mute the thread https://github.com/notifications/unsubscribe-auth/AMUUJC7FLOAXNWI2PXIYXLTQFJ4U5ANCNFSM4IM6BF2A .
if (page === 2)
, bạn có thể detect response trả về, nếu rỗng tức là đã đến page cuối cùng và không cần fetch data nữa