Skip to content

Do not render ChatBubbleCell when not displayed #65926

@mountiny

Description

@mountiny

Coming from here

Background
In the Reports -> Expenses view, the ChatBubbleCell component is rendered for every transaction row as part of the transaction list interface, regardless of whether the chat bubble column is actually displayed or needed in that view.

Problem
When the chat bubble isn't displayed in the current view, rendering ChatBubbleCell unnecessarily consumes CPU cycles and increases rendering time, which degrades overall performance.

Solution
Add conditional rendering logic in TransactionItemRow to only render ChatBubbleCell when it is actually needed. This eliminates unnecessary component instantiation, reduces CPU usage, and improves rendering performance when the chat bubble column isn't needed.

Issue OwnerCurrent Issue Owner: @JmillsExpensify

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions