JustinACoder / DebateArena

A place to have meaninful debates (at least, most of the time...)
MIT License
1 stars 0 forks source link

Load messages progressively #19

Closed JustinACoder closed 2 weeks ago

JustinACoder commented 1 month ago

The current implementation of discussions loads all messages and conversations of a user at once. If there are only a few messages and conversations, this is fine. However, a user with a lot of messages in a conversation or a lot of conversations could observe noticeable lag when loading conversations.

We should load only the first let's say 50 messages and first 20 conversations. If the user scrolls for more, we load more progressively.

JustinACoder commented 2 weeks ago

I will not implement endless scrolling for conversation list yet as it is not as important. However, we will probably have to do it at some point