Skip to content

[Due for payment 2026-05-12][IOURequestStepScan Decomposition] perf: selectors on derived hooks + export IOU getters #89381

Description

@cristipaval

Part of IOURequestStepScan Decomposition Plan — see rinej's split design comment.

Parent: #85583

Problem

Monolithic IOURequestStepScan pulls in coarse subscriptions via shared hooks; until those hooks use narrow selectors, unrelated Onyx updates can still force broad re-renders.

Solution

Add selectors to useReportIsArchived, useDefaultExpensePolicy, usePolicyForMovingExpenses, and useReportAttributes (including exporting useReportAttributesByID where needed), and export getAllTransactionDrafts() and getAllReportNameValuePairs() from src/libs/actions/IOU/index.ts so variants can reuse stable getters.

Issue OwnerCurrent Issue Owner: @mallenexpensify

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionDailyKSv2

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions