1

I am currently working on a messaging platform and previously, we just load all the messages at once as there are not that many messages. Now that that there are many messages, it is starting to take a long time to load everything.

As such, I would like to implement lazy loading but I can't find any documentation explaining how I can do load the latest 20 messages and load more when I scroll up to view the earlier messages (Just like any messaging platform). Is there any way to implement this?

Mervyn
  • 11
  • 3
  • check similar questions you must find your answer about lazy loading as it is widely implemented as example of quick search : https://stackoverflow.com/questions/42845058/react-lazy-load-infinite-scroll-solutions – Ali Jul 16 '22 at 06:40

0 Answers0