routemaster icon indicating copy to clipboard operation
routemaster copied to clipboard

[Map-Swap] `canGoBack` broken afterwards

Open hffmnn opened this issue 4 years ago • 0 comments

Steps:

  1. Login (triggers a map swap)
  2. Navigate to a subview
  3. Logout (triggers a map swap)
  4. Login (triggers a map swap)

Expected: Routemaster.of(context).history.canGoBack returns false and no back button is visible.

Experienced: Routemaster.of(context).history.canGoBack returns true, the back button is visible. Pressing the back button does nothing (Routemaster.of(context).pop() triggers no navigation).

Video

https://user-images.githubusercontent.com/352753/142463424-68180862-aa96-4c81-a1aa-778af61c7269.mov

hffmnn avatar Nov 18 '21 17:11 hffmnn