Skip to content

Conversation

@khushal87
Copy link
Member

@khushal87 khushal87 commented May 13, 2025

The goal of the PR is inspired by GetStream/stream-chat-react#2573. I was trying to reply to a message where I noticed that when replying to a poll message, and then if you reply to some other message, the poll message doesn't go away from the UI, and that is because of https://github.com/GetStream/stream-chat-react-native/blob/develop/package/src/components/Reply/Reply.tsx#L180 not resetting as it should. React added this change in the past to the useStateStore hook they have, which we never added to fix a similar bug. This is a possible fix to the issue, as previously changing the store in the hook would keep the previously calculated state and return it.

Prev

Simulator.Screen.Recording.-.iPhone.16.Pro.-.2025-05-13.at.10.36.13.mp4

Now

Simulator.Screen.Recording.-.iPhone.16.Pro.-.2025-05-13.at.10.35.48.mp4

@khushal87 khushal87 requested a review from isekovanic May 13, 2025 05:05
@Stream-SDK-Bot
Copy link
Contributor

SDK Size

title develop branch diff status
js_bundle_size 466 KB 466 KB +83 B 🟢

@khushal87 khushal87 requested a review from oliverlaz May 13, 2025 06:15
@khushal87 khushal87 merged commit a15126f into develop May 13, 2025
6 checks passed
@khushal87 khushal87 deleted the use-sync-external-store branch May 13, 2025 08:36
This was referenced May 20, 2025
@stream-ci-bot
Copy link
Contributor

🎉 This PR is included in version 7.0.1 🎉

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.

5 participants