stream-chat-react
stream-chat-react copied to clipboard
bug: thread paginates over all its messages when open
Describe the bug
When a thread is open, it is not scrolled to the bottom as main message list is. Because of that more HTTP requests are fired in order to retrieve the previous page of replies. This recursively repeats until the whole thread history is retrieved.
To Reproduce
- Create a thread with large number of messages.
- Reload the page and open the thread
- Thread starts to load all the thread messages
Expected behavior
- Thread should be scrolled at the bottom when open
- Only one HTTP request to
/repliesshould be executed on thread open
Screenshots
If applicable, add screenshots to help explain your problem.
Package version
- stream-chat-react: 8.1.2
- stream-chat-js: 6.5.0
close after fixing https://github.com/GetStream/stream-chat-react/issues/1749