-
Notifications
You must be signed in to change notification settings - Fork 270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: sending the very first message breaks virtualized list #2228
Comments
Hey @teimurjan thank you for the report. Could you please confirm the repro steps? Thank you |
I'm getting a similar error message with |
@teimurjan @Peterl561 we had this issue in the past, but after the fix for v10 and v11 I have a hard time to reproduce the issue. The reason for this in the past was the optimistic UI update and subsequent updates from the back-end with different message timestamps. This lead to message swaps based on the updated timestamp and sudden index discrepancy. And yes, it was reserved to Could you please share a video of the user behavior when the issue appears? On my end it works, please see the attached video: vml_msg_swap_test.webm |
@MartinCupela We have the same issue with "stream-chat-react": "10.22.2". I've added custom |
Hey @MartinCupela. The issue happens only when
![]()
![]()
Screen.Recording.2024-01-13.at.15.10.41.mov
![]()
![]() |
🎉 This issue has been resolved in version 11.8.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Describe the bug
When I try to send the very first message using
VirtualizedMessageList
, I receive an errorTypeError: Cannot read properties of undefined (reading 'id')
.After a small investigation, I found out that the error is happening here. I've added the following logs before the return:
It logs the following things a couple of times:
Finally, before the error I get:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The error should not be thrown.
Screenshots
Package version
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: