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
[$500] Upon returning from the Referral Section, a black page appears and modals are floating #35969
BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributors
Version Number: 1.4.37-1 Reproducible in staging?: y Reproducible in production?: y If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers): Logs:https://stackoverflow.com/c/expensify/questions/4856 Expensify/Expensify Issue URL: Issue reported by: Applause internal team Slack conversation:
Action Performed:
1, Profile
2, Share code
3, Click on "Get $250," then the referral section opens. Click on the back icon from the referral section.
Expected Result:
When we navigate back from the referral section, it should redirect back to the share code section.
Actual Result:
Upon returning from the referral section, a black page appears and modals are floating.
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
changed the title [-]Upon returning from the Referral Section, a black page appears and modals are floating[/-][+][$500] Upon returning from the Referral Section, a black page appears and modals are floating[/+]on Feb 6, 2024
Please re-state the problem that we are trying to solve in this issue.
Upon returning from the Referral Section, a black page appears and modals are floating
What is the root cause of that problem?
the referral details component calls theHeaderPageLayout which calls the HeaderWithBackButton component and passes the props to it, so the referral page we don't pass a onBackButtonPressprop to the header page layout, thats why the default back behavior is executed which goes back to the home page
What changes do you think we should make in order to solve the problem?
we need to add onBackButtonPress={Navigation.goBack}
OR we can modify the HeaderWithBackButton itself to onBackButtonPress = () => Navigation.goBack()
I don't see the need of waiting for #35626 (seems like taking a while to fix) while the behavior is weird which requires urgent fix and the solution is straightforward.
In that case, i would be available to provide a quick fix to the issue :) @aimane-chnaif , we just need to add the onBackButtonPress={Navigation.goBack} prop and we’re good to go
@adamgrzybowski is going to sense check whether his solution on the main issue addressing goBack bugs will fix this. Let's hold on making a PR until then!
BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributors
Activity
[-]Upon returning from the Referral Section, a black page appears and modals are floating[/-][+][$500] Upon returning from the Referral Section, a black page appears and modals are floating[/+]melvin-bot commentedon Feb 6, 2024
Job added to Upwork: https://www.upwork.com/jobs/~0151c67071986a4446
melvin-bot commentedon Feb 6, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @aimane-chnaif (
External)melvin-bot commentedon Feb 6, 2024
Triggered auto assignment to @kevinksullivan (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.abzokhattab commentedon Feb 6, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Upon returning from the Referral Section, a black page appears and modals are floating
What is the root cause of that problem?
the referral details component calls the
HeaderPageLayoutwhich calls theHeaderWithBackButtoncomponent and passes the props to it, so the referral page we don't pass aonBackButtonPressprop to the header page layout, thats why the default back behavior is executed which goes back to the home pageWhat changes do you think we should make in order to solve the problem?
we need to add
onBackButtonPress={Navigation.goBack}OR we can modify the HeaderWithBackButton itself to
onBackButtonPress = () => Navigation.goBack()allgandalf commentedon Feb 6, 2024
I guess this is been handled under one issue: #35626
aimane-chnaif commentedon Feb 7, 2024
I don't see the need of waiting for #35626 (seems like taking a while to fix) while the behavior is weird which requires urgent fix and the solution is straightforward.
allgandalf commentedon Feb 7, 2024
In that case, i would be available to provide a quick fix to the issue :) @aimane-chnaif , we just need to add the
onBackButtonPress={Navigation.goBack}prop and we’re good to goaimane-chnaif commentedon Feb 7, 2024
@abzokhattab proposed first.
Let's get engineer's thoughts whether to fix or hold.
🎀 👀 🎀 C+ reviewed
melvin-bot commentedon Feb 7, 2024
Triggered auto assignment to @techievivek, see https://stackoverflow.com/c/expensify/questions/7972 for more details.
trjExpensify commentedon Feb 7, 2024
@adamgrzybowski is going to sense check whether his solution on the main issue addressing
goBackbugs will fix this. Let's hold on making a PR until then!adamgrzybowski commentedon Feb 7, 2024
@trjExpensify Should be fixed by #36050
hayata-suenaga commentedon Feb 7, 2024
The issue is tracked in this GH issue. Closing this in favor of that one 🙇