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
[Due for Payment 03-11-2026] Reduce Onyx subscription overhead in LHN avatar rendering #82544
Each LHN row currently renders ReportActionAvatars, a general-purpose component that calls useReportActionAvatars internally. This hook subscribes to multiple Onyx keys (personal details, reports, transactions) to compute avatar icons on every render — even though the LHN already has pre-computed optionItem.icons available.
With ~20 visible rows, this results in ~200 redundant Onyx subscriptions that re-trigger on unrelated data changes, causing unnecessary re-renders and degrading scroll performance.
Problem:
When the LHN renders 20+ visible chat rows, each row's ReportActionAvatars component creates ~10 redundant Onyx subscriptions via useReportActionAvatars to recompute icon data that is already available in pre-computed form, resulting in ~200 unnecessary subscriptions that consume memory, process change events on every Onyx update, and degrade scrolling and interaction performance.
Solution:
Replace ReportActionAvatars in OptionRowLHN with a new LHNAvatar component that accepts pre-computed optionItem.icons directly, eliminating the useReportActionAvatars hook and its ~10 Onyx subscriptions per row.
The component is split into three files in LHNOptionsList/:
LHNAvatar.tsx — Orchestrator that selects layout (single / subscript / diagonal) and renders single avatars. No Onyx subscriptions.
LHNAvatarSubscript.tsx — Workspace icon + user avatar in subscript position.
LHNAvatarDiagonal.tsx — Two overlapping avatars for group chats, with style maps.
All components maintain 1:1 functional parity
For a typical 20-row LHN, this eliminates ~200 unnecessary Onyx subscriptions while keeping identical visual output, tooltips, and accessibility.
ManualNavigateToInboxTab span reduced 1230ms -> 1099ms
The design team is preparing Avatar's matrix for LHN cases that could occur, I need to validate it again as we discussed with the reviewer as part of the PR
changed the title [-]Reduce Onyx subscription overhead in LHN avatar rendering[/-][+][Due for Payment 03-11-2026] Reduce Onyx subscription overhead in LHN avatar rendering[/+]on Mar 9, 2026
Activity
melvin-bot commentedon Feb 16, 2026
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.abbasifaizan70 commentedon Feb 16, 2026
I can work on this if it's open for external contributors.
melvin-bot commentedon Feb 19, 2026
@mallenexpensify, @JS00001, @BartekObudzinski Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
JS00001 commentedon Feb 19, 2026
The PR is in review
BartekObudzinski commentedon Feb 20, 2026
The design team is preparing Avatar's matrix for LHN cases that could occur, I need to validate it again as we discussed with the reviewer as part of the PR
9 remaining items
JS00001 commentedon Mar 9, 2026
@shubham1206agra I think you still need payment here, right?
shubham1206agra commentedon Mar 9, 2026
@JS00001 Yes
[-]Reduce Onyx subscription overhead in LHN avatar rendering[/-][+][Due for Payment 03-11-2026] Reduce Onyx subscription overhead in LHN avatar rendering[/+]melvin-bot commentedon Mar 9, 2026
Current assignee @mallenexpensify is eligible for the Awaiting Payment assigner, not assigning anyone new.
mallenexpensify commentedon Mar 9, 2026
Payment Summary
Contributor+: @shubham1206agra due $250 via NewDot (on March 11th)
garrettmknight commentedon Apr 2, 2026
$250 approved for @shubham1206agra