You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2025-02-04] Improve FloatingMessageCounter performance #55001
The FloatingMessageCounter component is used to display the number of unread messages in a chat thread.
Problem
It causes unnecessary re-renders when the user switches workspaces or when modals are opened or closed.
Solution
Wrap the scrollToBottomAndMarkReportAsRead function in useCallback to ensure it is not recreated on every render. This will prevent unnecessary re-renders during workspace switches, modal interactions, and message updates. Wrapping the function in useCallback will ensure it is only recreated when necessary, leading to smoother transitions and more efficient interactions.
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.89-8 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@jasperhuangg@mallenexpensify@OlimpiaZurek The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: N/A
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
Nope, it's just an improvement issue for existing behavior.
Activity
melvin-bot commentedon Jan 9, 2025
Triggered auto assignment to @mallenexpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.OlimpiaZurek commentedon Jan 9, 2025
Hi! I'm Olimpia from Callstack and I'd like to work on this issue.
mallenexpensify commentedon Jan 10, 2025
Hi @OlimpiaZurek , is there a discuss about this anywhere in Slack? If so, can you link to it plz? Thx
OlimpiaZurek commentedon Jan 10, 2025
Hey @mallenexpensify, here is the link to the slack thread: https://callstack-hq.slack.com/archives/C05LX9D6E07/p1736329695333529
mallenexpensify commentedon Jan 11, 2025
Thanks @OlimpiaZurek ! Assigned.
melvin-bot commentedon Jan 16, 2025
Triggered auto assignment to @jasperhuangg, see https://stackoverflow.com/c/expensify/questions/7972 for more details.
4 remaining items
melvin-bot commentedon Jan 28, 2025
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Jan 28, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.89-8 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2025-02-04. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Jan 28, 2025
@jasperhuangg @mallenexpensify @OlimpiaZurek The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
hoangzinh commentedon Jan 28, 2025
@mallenexpensify could you help to assign this issue to me? I helped to review the PR #54944
melvin-bot commentedon Feb 4, 2025
Payment Summary
Upwork Job
BugZero Checklist (@mallenexpensify)
hoangzinh commentedon Feb 4, 2025
BugZero Checklist:
Bug classification
Source of bug:
Where bug was reported:
Who reported the bug:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: https://github.com/Expensify/App/pull/18637/files#r1940947117
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: N/A
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
Nope, it's just an improvement issue for existing behavior.
hoangzinh commentedon Feb 4, 2025
Requested payment in ND
mallenexpensify commentedon Feb 5, 2025
Contributor+: @hoangzinh due $250 via NewDot
Doesn't look like we need a test case or update of one for this, plz comment if you disagree
garrettmknight commentedon Feb 11, 2025
$250 approved for @hoangzinh