Problem
The initial report-load skeleton on several report surfaces reads the stored isLoadingInitialReportActions flag. Like other stored loading flags, it is a shadow of the request queue and can be stranded by a reload or dropped response, leaving the skeleton up with no request running.
Solution
Move clean, screen-level consumers onto the queue-derived, per-report useIsReportLoadPending(reportID) hook, which reads whether an OpenReport request for that report is currently in the SequentialQueue. Extend the hook to accept reportID: string | undefined. Migrated: MoneyReportHeaderNextStep, MoneyRequestReportView, ReportFooter. The flag and its writers are untouched for a separate removal PR.
PR
#96395
Issue Owner
Current Issue Owner: @mallenexpensify
Problem
The initial report-load skeleton on several report surfaces reads the stored
isLoadingInitialReportActionsflag. Like other stored loading flags, it is a shadow of the request queue and can be stranded by a reload or dropped response, leaving the skeleton up with no request running.Solution
Move clean, screen-level consumers onto the queue-derived, per-report
useIsReportLoadPending(reportID)hook, which reads whether anOpenReportrequest for that report is currently in the SequentialQueue. Extend the hook to acceptreportID: string | undefined. Migrated: MoneyReportHeaderNextStep, MoneyRequestReportView, ReportFooter. The flag and its writers are untouched for a separate removal PR.PR
#96395
Issue Owner
Current Issue Owner: @mallenexpensify