Skip to content

fix: improve channel preview display hooks and long title issue#3002

Merged
khushal87 merged 2 commits intodevelopfrom
channel-preview-hooks-improvements
Mar 11, 2025
Merged

fix: improve channel preview display hooks and long title issue#3002
khushal87 merged 2 commits intodevelopfrom
channel-preview-hooks-improvements

Conversation

@khushal87
Copy link
Member

@khushal87 khushal87 commented Mar 10, 2025

The goal of the PR is to improve the channel preview display hooks to use useMemo instead of a combination of useState and useEffect for the calculation that would take an additional render.

Also, the title logic for the channel preview is improved for channels that have long names. This was a UI issue that was easily noticeable and looked bad.

I am open to discussion if anything doesn't seem correct here.

Linear - https://linear.app/stream/issue/RN-151/improve-channel-preview-hooks-performance-and-seek-for-improvements

@Stream-SDK-Bot
Copy link
Contributor

Stream-SDK-Bot commented Mar 10, 2025

SDK Size

title develop branch diff status
js_bundle_size 466 KB 466 KB 0 B 🟢

@khushal87 khushal87 merged commit 7dc6f52 into develop Mar 11, 2025
6 checks passed
@khushal87 khushal87 deleted the channel-preview-hooks-improvements branch March 11, 2025 07:55
@github-actions github-actions bot mentioned this pull request Mar 12, 2025
@stream-ci-bot
Copy link
Contributor

🎉 This PR is included in version 6.6.8 🎉

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants