You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Due for payment 2025-11-03] [$250] Android - Reports - Skeleton loader constantly shown when switching reports with arrow navigation #71268
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
Prerequisite: Account has at least one workspace.
Prerequisite 2: Delayed submissions and approvals enabled.
Open the Expensify app.
Open any workspace chat.
Create two manual expenses.
Navigate to "Reports" > "Submit"
Tap on FAB and select "Create Report"
Add a manual expense to report.
Note that when you land on report again, arrows to navigate between reports appear on top of report.
Use arrow navigation several times, to switch between both reports.
Note that after switching between reports a few times, skeleton loader appears constantly when navigating to the last created report.
Expected Result:
Skeleton loader shouldn´t be displayed when navigating between reports using arrow navigation.
Actual Result:
When creating a second report while on "Reports" > "Submit" and navigating between reports with arrow navigation, skeleton loader is displayed everytime the user navigates to the last created report.
changed the title [-]Android - Reports - Skeleton loader constantly shown when switching reports with arrow navigation[/-][+][$250] Android - Reports - Skeleton loader constantly shown when switching reports with arrow navigation[/+]on Oct 1, 2025
🚨 Edited by proposal-police: This proposal was edited at 2025-10-02 16:10:16 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
Skeleton loader constantly shown when switching reports with arrow navigation
What is the root cause of that problem?
When we navigate quickly using the arrow buttons, the route parameter updates immediately, but the Onyx data for the report may take a short time to update around 0.16s to 0.25s
This triggers the skeleton loader, which is why we see the loading skeleton. If we click normally, the skeleton doesn’t appear. This issue only occurs with rapid clicks, making the UI seem slower than it actually is.
What changes do you think we should make in order to solve the problem?
To resolve this issue, we should debounce the shouldWaitForReportSync to avoid skeleton flashing during rapid navigation
Note: We will apply a debounce solution; the current source code will implement it in a PR if available.
Screen.Recording.2025-10-02.at.23.22.20.mov
What alternative solutions did you explore? (Optional)
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
Solution 1: Use reportCache in SearchMoneyRequestReportPage so that shouldWaitForReportSync is false. This way, we don’t need to wait and the loading skeleton won’t appear
Solution 2: Debounce goToNextReport and goToPrevReport
Solution 3: we should add a short delay when clicking the arrow buttons to reduce render load and lighten the UI performance impact.
changed the title [-][$250] Android - Reports - Skeleton loader constantly shown when switching reports with arrow navigation[/-][+][Due for payment 2025-11-03] [$250] Android - Reports - Skeleton loader constantly shown when switching reports with arrow navigation[/+]on Oct 27, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.2.38-5 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@situchan@CortneyOfstad The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: N/A
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Regression Test Proposal
Precondition:
Account has at least one workspace.
Delayed submissions and approvals enabled.
Test:
Open workspace chat.
Create two manual expenses.
Navigate to "Reports" > "Submit"
Tap on FAB and select "Create Report"
Add a manual expense to report.
Note that when you land on report again, arrows to navigate between reports appear on top of report.
Use arrow navigation several times, to switch between both reports.
Verify that while navigating between reports several times, skeleton loader doesn't show.
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
Activity
melvin-bot commentedon Sep 25, 2025
Triggered auto assignment to @CortneyOfstad (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.melvin-bot commentedon Sep 30, 2025
@CortneyOfstad Eep! 4 days overdue now. Issues have feelings too...
CortneyOfstad commentedon Oct 1, 2025
Getting eyes on this!
[-]Android - Reports - Skeleton loader constantly shown when switching reports with arrow navigation[/-][+][$250] Android - Reports - Skeleton loader constantly shown when switching reports with arrow navigation[/+]melvin-bot commentedon Oct 1, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021973461503559490277
melvin-bot commentedon Oct 1, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia (
External)huult commentedon Oct 2, 2025
🚨 Edited by proposal-police: This proposal was edited at 2025-10-02 16:10:16 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
Skeleton loader constantly shown when switching reports with arrow navigation
What is the root cause of that problem?
When we navigate quickly using the arrow buttons, the route parameter updates immediately, but the Onyx data for the report may take a short time to update around 0.16s to 0.25s
App/src/components/MoneyRequestReportView/MoneyRequestReportNavigation.tsx
Lines 83 to 85 in 56b6976
reportIDFromRouteis the new report ID (from the route params)report?.reportIDis still the old report ID (from Onyx data that hasn't updated yet)App/src/pages/Search/SearchMoneyRequestReportPage.tsx
Line 53 in 49f9ce2
This makes
shouldWaitForReportSyncreturntrueApp/src/components/MoneyRequestReportView/MoneyRequestReportView.tsx
Line 169 in 9923c1e
This triggers the skeleton loader, which is why we see the loading skeleton. If we click normally, the skeleton doesn’t appear. This issue only occurs with rapid clicks, making the UI seem slower than it actually is.
What changes do you think we should make in order to solve the problem?
To resolve this issue, we should debounce the
shouldWaitForReportSyncto avoid skeleton flashing during rapid navigationApp/src/pages/Search/SearchMoneyRequestReportPage.tsx
Line 53 in 49f9ce2
const shouldWaitForReportSync = report?.reportID !== reportIDFromRoute; const [debouncedShouldWaitForReportSync, setDebouncedShouldWaitForReportSync] = useState(false); const debounceTimeoutRef = useRef<NodeJS.Timeout | undefined>(undefined); // Debounce the shouldWaitForReportSync to avoid skeleton flashing during rapid navigation useEffect(() => { // Clear any existing timeout if (debounceTimeoutRef.current) { clearTimeout(debounceTimeoutRef.current); } if (shouldWaitForReportSync) { // Only show skeleton after a short delay (300ms) to avoid flashing during rapid navigation debounceTimeoutRef.current = setTimeout(() => { setDebouncedShouldWaitForReportSync(true); }, 300); } else { // Immediately hide skeleton when sync is complete setDebouncedShouldWaitForReportSync(false); } return () => { if (!debounceTimeoutRef.current) { return; } clearTimeout(debounceTimeoutRef.current); }; }, [shouldWaitForReportSync]);App/src/pages/Search/SearchMoneyRequestReportPage.tsx
Line 137 in 49f9ce2
to
shouldWaitForReportSync={debouncedShouldWaitForReportSync}Note: We will apply a debounce solution; the current source code will implement it in a PR if available.
Screen.Recording.2025-10-02.at.23.22.20.mov
What alternative solutions did you explore? (Optional)
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
Solution 1: Use
reportCacheinSearchMoneyRequestReportPageso thatshouldWaitForReportSyncisfalse. This way, we don’t need to wait and the loading skeleton won’t appearSolution 2: Debounce
goToNextReportandgoToPrevReportSolution 3: we should add a short delay when clicking the arrow buttons to reduce render load and lighten the UI performance impact.
App/src/components/MoneyRequestReportView/MoneyRequestReportNavigation.tsx
Lines 83 to 85 in 56b6976
InteractionManager.runAfterInteractions(() => { requestAnimationFrame(() => { Navigation.setParams({ reportID: reportId, }); }); });Solution 4: Remove check
shouldWaitForReportSync={shouldWaitForReportSync}40 remaining items
[-][$250] Android - Reports - Skeleton loader constantly shown when switching reports with arrow navigation[/-][+][Due for payment 2025-11-03] [$250] Android - Reports - Skeleton loader constantly shown when switching reports with arrow navigation[/+]melvin-bot commentedon Oct 27, 2025
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Oct 27, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.2.38-5 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2025-11-03. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Oct 27, 2025
@situchan @CortneyOfstad The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
CortneyOfstad commentedon Oct 28, 2025
Hey @situchan! Please complete the checklist before Nov 3 so there is no delay in the payment summary. Thank you!
situchan commentedon Nov 3, 2025
BugZero Checklist:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: Add ability to cycle via reports v2 #69221 (comment)
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: N/A
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Regression Test Proposal
Precondition:
Test:
Do we agree 👍 or 👎
CortneyOfstad commentedon Nov 3, 2025
Payment Summary
@huult — paid $250 via Upwork
@situchan — paid $250 via Upwork
Regression Test
https://github.com/Expensify/Expensify/issues/564528