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 2026-07-23] [Perf] Add selectors and dedupe Onyx subscriptions in the MoneyRequestReportPreview subtree #95706
An audit of the MoneyRequestReportPreview subtree found leftover Onyx
subscriptions that re-render the previews on frequent, unrelated events
(opening a report, card changes). Most of them are multiplied by the number
of transaction cards in the carousel, so the cost adds up.
The send-message path itself is clean. These are the remaining subscriptions:
MoneyRequestReportPreviewProvider subscribes to the chat report's REPORT_METADATA and RAM_ONLY_REPORT_LOADING_STATE without selectors,
but only reads one field from each (isOptimisticReport and hasOnceLoadedReportActions). Any other change to those objects re-renders
the whole provider tree.
Each TransactionPreview card holds a raw REPORT subscription with no
selector.
TransactionPreviewContent subscribes to the entire CARD_LIST just to
look up one card, and it duplicates a POLICY subscription that its parent
(TransactionPreview) already has.
Goal
Add selectors and remove the duplicate subscription so each component
re-renders only when the data it actually reads changes:
MoneyRequestReportPreviewProvider — add a selector to REPORT_METADATA (read only isOptimisticReport) and to RAM_ONLY_REPORT_LOADING_STATE (read only hasOnceLoadedReportActions).
TransactionPreview — apply getStableReportSelector to the REPORT
subscription.
TransactionPreviewContent — replace the full CARD_LIST subscription
with a selector that returns only the one card it looks up.
TransactionPreviewContent — stop re-subscribing to POLICY; pass the
policy down from TransactionPreview instead.
This is a perf cleanup only. Behavior should stay exactly the same.
Note: TransactionPreview is a shared component used outside the carousel
too, so the last three items need regression testing in the other places it
renders (transaction threads, Search, etc.).
changed the title [-][Perf] Add selectors and dedupe Onyx subscriptions in the MoneyRequestReportPreview subtree[/-][+][Due for payment 2026-07-23] [Perf] Add selectors and dedupe Onyx subscriptions in the MoneyRequestReportPreview subtree[/+]on Jul 16, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.4.35-6 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
Activity
OlimpiaZurek commentedon Jul 10, 2026
PR is ready for review: #95807
OlimpiaZurek commentedon Jul 13, 2026
PR is in review: #95807. Fixed the conflicts and addressed one minor comment.
[-][Perf] Add selectors and dedupe Onyx subscriptions in the MoneyRequestReportPreview subtree[/-][+][Due for payment 2026-07-23] [Perf] Add selectors and dedupe Onyx subscriptions in the MoneyRequestReportPreview subtree[/+]melvin-bot commentedon Jul 16, 2026
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Jul 16, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.4.35-6 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 2026-07-23. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Jul 20, 2026
@mkhutornyi Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
melvin-bot commentedon Jul 22, 2026
Triggered auto assignment to @mallenexpensify (
Awaiting Payment)melvin-bot commentedon Jul 22, 2026
Payment Summary
Upwork Job
BugZero Checklist (@mallenexpensify)
mallenexpensify commentedon Jul 24, 2026
Payment Summary
Contributor+: @mkhutornyi due $250 via NewDot
trjExpensify commentedon Aug 3, 2026
approved $250 for @mkhutornyi