Skip to content
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

fix: use the client pagination indicators for ChannelStateContext's hasMore and hasMoreNewer flags #2478

Merged
merged 3 commits into from
Aug 22, 2024

Conversation

MartinCupela
Copy link
Contributor

🎯 Goal

Use the pagination flags from the the client, which actually performs the queries and thus share the information btw React components that are siblings (ChannelList queries channels and Channel will know, what channels have less than the 1st page size message count).

depends on GetStream/stream-chat-js#1332

src/components/Channel/Channel.tsx Outdated Show resolved Hide resolved
Copy link

codecov bot commented Aug 22, 2024

Codecov Report

Attention: Patch coverage is 58.33333% with 5 lines in your changes missing coverage. Please review.

Project coverage is 85.48%. Comparing base (28e26ca) to head (f675ec6).
Report is 18 commits behind head on release-v11.

Files Patch % Lines
src/components/Channel/Channel.tsx 58.33% 5 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##           release-v11    #2478   +/-   ##
============================================
  Coverage        85.48%   85.48%           
============================================
  Files              393      395    +2     
  Lines             9122     9131    +9     
  Branches          2356     2358    +2     
============================================
+ Hits              7798     7806    +8     
- Misses            1122     1123    +1     
  Partials           202      202           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@MartinCupela MartinCupela merged commit eb13bd5 into release-v11 Aug 22, 2024
8 checks passed
@MartinCupela MartinCupela deleted the fix/client-pagination-indicators branch August 22, 2024 14:47
github-actions bot pushed a commit that referenced this pull request Aug 22, 2024
## [11.23.7](v11.23.6...v11.23.7) (2024-08-22)

### Bug Fixes

* use the client pagination indicators for ChannelStateContext's hasMore and hasMoreNewer flags ([#2478](#2478)) ([eb13bd5](eb13bd5))
@stream-ci-bot
Copy link
Collaborator

🎉 This PR is included in version 11.23.7 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit that referenced this pull request Aug 22, 2024
## [12.0.0-rc.9](v12.0.0-rc.8...v12.0.0-rc.9) (2024-08-22)

### Bug Fixes

* use the client pagination indicators for ChannelStateContext's hasMore and hasMoreNewer flags ([#2478](#2478)) ([eb13bd5](eb13bd5))
@stream-ci-bot
Copy link
Collaborator

🎉 This PR is included in version 12.0.0-rc.9 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants