[No QA] perf: remove redundant reportNameValuePairs collection subscription from LHN#86644
Conversation
…ction-sub-from-lhn # Conflicts: # src/components/LHNOptionsList/LHNOptionsList.tsx # src/components/LHNOptionsList/OptionRowLHNData.tsx # src/components/LHNOptionsList/types.ts
|
@hungvu193 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] |
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariScreen.Recording.2026-03-31.at.15.52.25.mov |
|
Found this issue while testing, the last text message isn't updated with this report. I'll double-check with staging to verify:
|
|
@hungvu193 Could you provide more details or steps to reproduce, becasue I couldn't reproduce that |
Yeah let me veirfy from end first, I'll keep you posted. |
|
just double check and it's not related, that's workspace name 😅 . We're good to go here. |
|
🚧 @JS00001 has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/JS00001 in version: 9.3.51-0 🚀
Bundle Size Analysis (Sentry): |
|
No help site changes are required. I reviewed the changes in this PR — it's a pure internal performance optimization that removes a redundant This PR does not alter any:
Since the help site docs under |
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.3.51-10 🚀
|

Explanation of Change
LHNOptionsListsubscribed to the entireCOLLECTION.REPORT_NAME_VALUE_PAIRSviauseOnyx, then passed scoped entries as props to eachOptionRowLHNData. However,OptionRowLHNDataalready has its own per-itemuseOnyxsubscription for the same data (reportNameValuePairsEntry). The collection subscription was redundant.The collection sub appeared in both
renderItemdeps (16 deps) andextraData(9 deps). Any NVP change for any report (e.g., archiving) invalidated the entire FlashList, causing all visible rows to re-render.This PR removes the collection subscription and the prop fallback, relying solely on the per-item subscription that was already in place.
Profiling Results (React DevTools Profiler, archiving a report):
Reassure benchmark: zero regression on existing SidebarLinks tests.
Fixed Issues
$ #86649
PROPOSAL:
Tests
Offline tests
N/A
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand 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.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari