Skip to content

Back button causing unexpected behaviour #43

@pranavkonidena

Description

@pranavkonidena

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.

Metadata

Metadata

Labels

P1Needs fix ASAP!bugSomething isn't working

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions