-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[HOLD for payment 2023-10-02] Avoid re-render when no iouReport #27970
Comments
Triggered auto assignment to @adelekennedy ( |
Bug0 Triage Checklist (Main S/O)
|
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.73-1 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 2023-10-02. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
@mountiny, @adelekennedy, @situchan Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
The checklist is not relevant in this case, not a regression but performance improvement The only payment here is $500 to @situchan @adelekennedy are you able to help please? |
Sent offer to @situchan |
payment made! |
Problem
When there is no iouReport for a message
getIOUReportIDFromReportActionPreview
will return undefined which then gets added to theONYXKEYS.COLLECTION.REPORT
which then becomesreport_
. This causes onyx to return all reports and the value is not properly cached since it returns a new map for each call. This causes basically allReportActionItem
to render twice, once with iouReport undefined and then with iouReport set to a map of all reports. If we don't have a report id then we should not try to get a report from onyx for it so we can return undefined for the key and use {} for the default value. Messages with no iouReport will now only render once.Before:
You can see here 1 / 2 render is an update to iouReport.
After:
Now all ReportActionItem only render once.
The text was updated successfully, but these errors were encountered: