ishan0102 / engblogs

learn from your favorite tech companies
https://engblogs.dev
MIT License
162 stars 16 forks source link

Infinite scroll #39

Closed ishan0102 closed 12 months ago

ishan0102 commented 1 year ago

Having pagination clutters the UI and hinders flow. I doubt anyone is using the page search feature anyway, all that really matters is new posts. We should be using infinite scroll, rendering new posts as users scroll down. This should make prefetching easier as now we just need to fetch the next chunk, rather than the current previous/next logic. The chunk size of 12 can remain the same.