Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Back button causing unexpected behaviour #43

Open
pranavkonidena opened this issue Apr 3, 2024 · 0 comments
Open

Back button causing unexpected behaviour #43

pranavkonidena opened this issue Apr 3, 2024 · 0 comments
Assignees
Labels
bug Something isn't working P1 Needs fix ASAP!

Comments

@pranavkonidena
Copy link
Member

Expected Behavior

Nothing should happen while pressing back after logging out. Nothing should happen when pressing back on the login screen.

Current Behavior

The user is redirected to the home screen while pressing the back button after clicking on logout. Also, pressing the back button on the login page causes the app to enter splash screen forever.

Possible Solution

We need to check the pop option used in navigator routing, as if the stack pops unexpectedly, such errors may occur.

Steps to Reproduce

  1. Go to the Profile Section
  2. Click on Logout
  3. Press Back button

Possible Implementation

Try checking for possible edge cases in routing, and consider adding a conditional before popping off the navigation stack.

@pranavkonidena pranavkonidena self-assigned this Apr 3, 2024
@pranavkonidena pranavkonidena added bug Something isn't working good first issue Good for newcomers P1 Needs fix ASAP! and removed good first issue Good for newcomers labels Apr 3, 2024
@pranavkonidena pranavkonidena moved this to Todo in Mobile Dev Apr 3, 2024
@pranavkonidena pranavkonidena moved this from Todo to In Progress in Mobile Dev Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P1 Needs fix ASAP!
Projects
Status: In Progress
Development

No branches or pull requests

1 participant