-
Notifications
You must be signed in to change notification settings - Fork 279
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: schedule cooldown removal from useCooldownTimer hook instead of CooldownTimer #2208
Conversation
…CooldownTimer Properly update CooldownTimer state with setTimeout.
Size Change: +1.27 kB (0%) Total Size: 1.67 MB
ℹ️ View Unchanged
|
Co-authored-by: Oliver Lazoroski <[email protected]>
Co-authored-by: Anton Arnautov <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #2208 +/- ##
==========================================
+ Coverage 83.80% 83.81% +0.01%
==========================================
Files 311 311
Lines 7118 7125 +7
Branches 2011 1902 -109
==========================================
+ Hits 5965 5972 +7
- Misses 818 985 +167
+ Partials 335 168 -167 ☔ View full report in Codecov by Sentry. |
## [11.1.2](v11.1.1...v11.1.2) (2023-12-13) ### Bug Fixes * disable SuggestionList during text composition ([#2205](#2205)) ([614bc99](614bc99)) * mark as read messages sent by current user ([#2211](#2211)) ([38f2363](38f2363)) * schedule cooldown removal from useCooldownTimer hook instead of CooldownTimer ([#2208](#2208)) ([9523b45](9523b45)) * show image fallbacks in image gallery modal ([#2212](#2212)) ([5ac95a1](5ac95a1)) ### Chores * **deps:** bump @stream-io/stream-chat-css from v4.1.0 to v4.2.0 ([ff554ad](ff554ad))
🎉 This PR is included in version 11.1.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎯 Goal
Schedule the cooldown removal in
useCooldownTimer
hook so that all the descendants can update their UI.Properly update CooldownTimer state with setTimeout to avoid freezing of the countdown during higher message rate influx.