Skip to content

[Due for payment 2025-07-28] [$250] Reduce re-renders in MoneyRequestReportPreview component #65524

@mountiny

Description

@mountiny

Coming from here

Problem

When multiple onLayout callbacks fire for the same component, each triggers a separate re-render, which causes unnecessary performance overhead.

Solution

Batch all measurements using refs and trigger a single re-render only when all required dimensions are collected. This reduces re-renders from 3-4 down to 2 maximum, improving component's performance by 50-75%.

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021941427589708741811
  • Upwork Job ID: 1941427589708741811
  • Last Price Increase: 2025-07-05
Issue OwnerCurrent Issue Owner: @sonialiap

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions