Problem
PureReportActionItem is a 2,200+ line monolith with 100+ if/else if branches. Every render evaluates the full chain and runs all top-level hooks (useOnyx, useMemo) regardless of which action type is actually being displayed.
Proposed fix
Extract groups of related branches into focused child components (PolicyChangeLogContent, ApprovalFlowContent, PaymentContent, etc.), then move action-type-specific hooks into those children so they only run when needed.
Issue Owner
Current Issue Owner: @LukasMod
Problem
PureReportActionItemis a 2,200+ line monolith with 100+if/else ifbranches. Every render evaluates the full chain and runs all top-level hooks (useOnyx,useMemo) regardless of which action type is actually being displayed.Proposed fix
Extract groups of related branches into focused child components (
PolicyChangeLogContent,ApprovalFlowContent,PaymentContent, etc.), then move action-type-specific hooks into those children so they only run when needed.Issue Owner
Current Issue Owner: @LukasMod