student-hub / acs-upb-mobile

A mobile application for students at ACS UPB.
MIT License
27 stars 22 forks source link

Sometimes pop() will throw errors on web #284

Closed RazvanRotaru closed 2 years ago

RazvanRotaru commented 2 years ago

(App)Navigator.pop() will sometimes throw errors. If I am not mistaken, the reason why this is happening is because the page on which you should pop cannot always be recreated. Looking here, you can see the logic behind navigating backwards. Until a provision method for every page will be developed (from its URI), this behavior is prone to happen.

Steps to reproduce the behavior:

  1. Go to TimeTablePage
  2. Click on Classes
  3. Click on ChooseClasses
  4. Click Save
  5. See error

    • Browser: Chrome