-
-
Notifications
You must be signed in to change notification settings - Fork 173
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
perf: improve performance #4552
Conversation
...wherever possible. FullChat is quite heavy because of `contacts`, so it'd be nice to get rid of it wherever possible, for performance.
...in "Search in chat".
By replacing `getFullChatById` with `getBasicChatInfo`.
By using `getBasicChatInfo` instead of `getFullChatById`.
...wherever possible. Such that `getBasicChatInfo()` is preferred over `getFullChatById()`.
f151794
to
17984a8
Compare
Rebased |
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.
Reviewed by reading.
The changes for switchedChatAt from useState to useRef seem reasonable, although I did not really investigate the whole scroll behaviour
Yes, the idea is that |
Review commit-by-commit recommended.