-
Notifications
You must be signed in to change notification settings - Fork 278
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
feat: allow complete channel list throttled reload on internet connection recovery #2123
Conversation
Co-authored-by: Oliver Lazoroski <[email protected]>
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## develop #2123 +/- ##
===========================================
+ Coverage 83.21% 83.24% +0.03%
===========================================
Files 293 293
Lines 7013 7032 +19
Branches 1997 2003 +6
===========================================
+ Hits 5836 5854 +18
Misses 848 848
- Partials 329 330 +1
☔ View full report in Codecov by Sentry. |
# [10.14.0](v10.13.1...v10.14.0) (2023-10-11) ### Features * allow complete channel list throttled reload on internet connection recovery ([#2123](#2123)) ([252cac3](252cac3))
🎉 This PR is included in version 10.14.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
# [11.0.0-rc.1](v10.13.1...v11.0.0-rc.1) (2023-10-12) ### Bug Fixes * **emoji-mart:** new reactions ([#1947](#1947)) ([2050708](2050708)) ### Features * allow complete channel list throttled reload on internet connection recovery ([#2123](#2123)) ([252cac3](252cac3)) ### BREAKING CHANGES * **emoji-mart:** `reactionOptions` signature has changed, see [release guide](https://github.com/GetStream/stream-chat-react/blob/7a19e386aa3adcc5741a7f0d92bc816a1a424094/docusaurus/docs/React/release-guides/new-reactions.mdx) for more information
🎉 This PR is included in version 11.0.0-rc.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎯 Goal
Allow to load the most recent updates to the ChannelList after the internet connection loss. The
StreamChat
client's recovery mechanism has the following shortcomings:On the other side, the SDK's recovery mechanism just reloads the channel list based on the filters, sort and options parameters originally provided to
ChannelList
through props.This is an opt-in feature that has to be enabled as described in the documentation.
Currently it is not possible to load both the latest updates that would include new channels at the top and the originally loaded channels due to the fact that after re-querying the originally loaded channels we loose track of the next page for the channels pagination.