-
Notifications
You must be signed in to change notification settings - Fork 292
fix(VirtualizedMessageList): use memoized values as hook dependencies directly #1761
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
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1761 +/- ##
===========================================
- Coverage 83.58% 83.55% -0.04%
===========================================
Files 256 256
Lines 6239 6239
Branches 1675 1675
===========================================
- Hits 5215 5213 -2
- Misses 869 871 +2
Partials 155 155
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
petyosi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe that we had a bug where processedMessages were incorrectly rebuilt with a new object identity at some point, hence the .length usage (which, of course, is not correct but we are not aware of any issues because of it).
Given that, I would say that this change should not touch on that.
37b8d22 to
7b45558
Compare
@petyosi I have reverted the changes and added the explanatory comment for future reference. |
f51f2a6
|
🎉 This PR is included in version 10.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎯 Goal
Avoid unnecessary re-renders caused by regenerating a new array of message group style keys (
Object.keys()was called directly in the hook dependency array).