You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's easier to describe how it happens in my Slack-like messaging app:
A user creates a channel, creating a POST request to my .NET server which uses the stream-chat-net library to create a channel and immediately sends the list of users that were added to the channel as a system message.
The user should see just one channel is added to the ChannelList, because the socket connection sends them an update when they're added to the channel.
Instead, the user sees two channels.
I can easily reproduce this if I'm using Slow 4G throttling in Chrome. Without throttling, I think that my client can see and respond to these millisecond-difference requests in time. When both requests are coming in at once, however, maybe there's a data race.
To Reproduce
On the client: connect to chat and watch channel list for updates, enable Slow 4G throttling for a simulated user experience.
On the server:
Create a channel with the user watching as a member
Send a system message immediately after
The user should see two channels that are identical in the ChannelList:
And I do get an error from React in the console that the two ChannelPreviews have the same key.
Package version
stream-chat-react: 12.10.0
stream-chat-css:
stream-chat-js: 8.55
Desktop (please complete the following information):
OS: macOS
Browser Chrome
Version 133
The text was updated successfully, but these errors were encountered:
Hey, @lukewilson2002, thank you for your report - I believe I know what's the issue. I'll prepare a PR with the fix ASAP and once it's merged, the issue will get closed - we'll issue a release right after. :)
Hey again, @lukewilson2002, my apologies - I missed the version of the SDK you're using! We've fixed the issue you reported in v12.11.0, please upgrade to the latest and let me know if the issue persists.
Describe the bug
It's easier to describe how it happens in my Slack-like messaging app:
A user creates a channel, creating a POST request to my .NET server which uses the stream-chat-net library to create a channel and immediately sends the list of users that were added to the channel as a system message.
The user should see just one channel is added to the ChannelList, because the socket connection sends them an update when they're added to the channel.
Instead, the user sees two channels.
I can easily reproduce this if I'm using Slow 4G throttling in Chrome. Without throttling, I think that my client can see and respond to these millisecond-difference requests in time. When both requests are coming in at once, however, maybe there's a data race.
To Reproduce
On the client: connect to chat and watch channel list for updates, enable Slow 4G throttling for a simulated user experience.
On the server:
The user should see two channels that are identical in the ChannelList:
And I do get an error from React in the console that the two ChannelPreviews have the same key.
Package version
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: