GetStream / stream-chat-react

React Chat SDK ➜ Stream Chat 💬
https://getstream.io/chat/sdk/react/
Other
702 stars 273 forks source link

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

Closed MartinCupela closed 2 months ago

MartinCupela commented 2 months ago

🎯 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 https://github.com/GetStream/stream-chat-js/pull/1332

codecov[bot] commented 2 months ago

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 :warning:
Additional details and impacted files ```diff @@ 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 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

stream-ci-bot commented 2 months ago

:tada: This PR is included in version 11.23.7 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

stream-ci-bot commented 2 months ago

:tada: This PR is included in version 12.0.0-rc.9 :tada:

The release is available on:

Your semantic-release bot :package::rocket: