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
Expensify Card - Add shipping details RHP appears twice after refreshing page and opening it #80403
Version Number: 9.3.8-0 Reproducible in staging?: Yes Reproducible in production?: No If this was caught during regression testing, add the test name, ID and link from BrowserStack:#78266 Email or phone of affected tester (no customers):applausetester+snjoidnjios@applause.expensifail.com Issue reported by: Applause Internal Team Bug source: Exploratory - Significant User Experience Deterioration Device used: Mac 26.1 / Chrome App Component: Money Requests
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
Identify the pull request that introduced this issue and revert it.
Classification: Frontend bug Causing PR: #78266 - "Feat: use sub page hook" by @MrMuzyk (High confidence) Related Issues: None
Recommendation: REVERT
The issue is caused by a race condition in the new useSubPage hook where two navigation actions occur when opening the Missing Personal Details flow without a subPage parameter. This causes the RHP to be pushed onto the stack twice.
Labels: Removing DeployBlocker label (keeping DeployBlockerCash as this is a frontend bug requiring an App PR fix)
📋 Detailed Analysis
Evidence
PR #78266 introduced a new useSubPage hook to replace the previous useSubStep approach. The key change is that navigation is now URL-based, with each sub-page having its own route parameter.
The bug occurs due to the interaction between:
IssueCardMessage.tsx line 48: Calls Navigation.navigate(ROUTES.MISSING_PERSONAL_DETAILS.getRoute()) with NO arguments
useSubPage/index.tsx lines 25-34: Contains a useEffect that runs once on mount and navigates to startPageName when no urlPageName exists
Verification
Files affected by the bug:
/home/runner/work/App/App/src/components/ReportActionItem/IssueCardMessage.tsx - Triggers the navigation
/home/runner/work/App/App/src/hooks/useSubPage/index.tsx - Contains the problematic useEffect
/home/runner/work/App/App/src/pages/MissingPersonalDetails/MissingPersonalDetailsContent.tsx - Uses the hook
Activity
melvin-bot commentedon Jan 24, 2026
@arosiclair recently merged #78266, but they are OOO right now, so I'll auto-assign someone else.
melvin-bot commentedon Jan 24, 2026
Triggered auto assignment to @lydiabarclay (
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 Jan 24, 2026
Triggered auto assignment to @Beamanator (
DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.melvin-bot commentedon Jan 24, 2026
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon Jan 24, 2026
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
OSBotify commentedon Jan 24, 2026
🔍 Investigation Summary
Classification: Frontend bug
Causing PR: #78266 - "Feat: use sub page hook" by @MrMuzyk (High confidence)
Related Issues: None
Recommendation: REVERT
The issue is caused by a race condition in the new
useSubPagehook where two navigation actions occur when opening the Missing Personal Details flow without a subPage parameter. This causes the RHP to be pushed onto the stack twice.Labels: Removing
DeployBlockerlabel (keepingDeployBlockerCashas this is a frontend bug requiring an App PR fix)📋 Detailed Analysis
Evidence
PR #78266 introduced a new
useSubPagehook to replace the previoususeSubStepapproach. The key change is that navigation is now URL-based, with each sub-page having its own route parameter.The bug occurs due to the interaction between:
Navigation.navigate(ROUTES.MISSING_PERSONAL_DETAILS.getRoute())with NO argumentsuseEffectthat runs once on mount and navigates tostartPageNamewhen nourlPageNameexistsVerification
Files affected by the bug:
/home/runner/work/App/App/src/components/ReportActionItem/IssueCardMessage.tsx- Triggers the navigation/home/runner/work/App/App/src/hooks/useSubPage/index.tsx- Contains the problematic useEffect/home/runner/work/App/App/src/pages/MissingPersonalDetails/MissingPersonalDetailsContent.tsx- Uses the hookConfirmed PR #78266 modifies these files:
src/hooks/useSubPage/index.tsx(new file)src/components/ReportActionItem/IssueCardMessage.tsx(changed navigation call)src/pages/MissingPersonalDetails/MissingPersonalDetailsContent.tsx(refactored to use new hook)Root Cause
The bug is a double navigation issue:
When "Add shipping details" button is clicked, it calls:
With no arguments,
getRoute()returns"missing-personal-details"(no subPage param)The
MissingPersonalDetailsContentcomponent mounts anduseSubPagehook initializesThe hook's
useEffect(lines 25-34) detects nourlPageNameand executes:This creates a second navigation action that pushes another RHP onto the stack
After refresh, when the user reopens the flow, both navigation actions execute, resulting in the RHP appearing twice
Why it reproduces after refresh specifically:
useEffectuses ahasInitializedref to run only once per component lifecycleTechnical Details
The problematic code in
useSubPage/index.tsx:The issue is that
forceReplace: truedoesn't prevent the double navigation when the initial navigation hasn't completed yet.5 remaining items
MrMuzyk commentedon Jan 26, 2026
On it
arosiclair commentedon Feb 9, 2026
Deployed