fix: remove getReportNameValuePairs in method canUserPerformWriteAction final part#73174
Conversation
|
@DylanDylann Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
@thelullabyy Please give an explanation on how we fix the regression |
|
@DylanDylann Added |
Reviewer Checklist
Screenshots/VideosScreen.Recording.2025-10-21.at.22.22.38.movAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
| }, | ||
| }); | ||
|
|
||
| return useDeepCompareRef(archivedReportsIdSet) ?? new Set<string>(); |
There was a problem hiding this comment.
Can you please add a code comment here that explains why useDeepCompareRef is necessary?
There was a problem hiding this comment.
@tgolen I added. Please check if it's clear enough
tgolen
left a comment
There was a problem hiding this comment.
Yeah, that looks great. Thank you!
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/tgolen in version: 9.2.37-1 🚀
|
|
🚀 Deployed to production by https://github.com/blimpich in version: 9.2.37-8 🚀
|
Explanation of Change
Fix regression in #73081
We use
useArchivedReportsIdSetin hereApp/src/components/Search/index.tsx
Line 276 in c7b3a44
which is recalculate every time render leads to callback here in loop
App/src/components/Search/index.tsx
Line 378 in c7b3a44
Fix: Adjust to
useArchivedReportsIdSetnot recalculate everytimeFixed Issues
$#67103
PROPOSAL:
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screen.Recording.2025-10-21.at.22.26.07.mov
Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop