-
Notifications
You must be signed in to change notification settings - Fork 361
Closed
Labels
Description
Issue
We're getting reports from users getting stuck on an infinite loading status on the ChannelList component.
This happens in a situation with bad connection, but with offline enabled and available data, which gets wiped.
Related code looks like in stream-chat-js, so I created issue there but posting here for visibility too.
GetStream/stream-chat-js#1584
Thank you! Let me know if this makes sense
Steps to reproduce
Steps to reproduce the behavior:
With a bad connection...
- Offline sync manager tries to client.sync() but this fails with a timeout
- Offline data gets deleted
- Querying channels fails due to timeout, and isLoading is not cleared
- See loading status, even if we a) should have offline data, and b) should instead show an error if we didn't have data
Expected behavior
- Loading state should be false when we have an error after all queryChannels requests have failed
- Offline data should not be wiped when a sync request fails.
Reactions are currently unavailable