jonataslaw / getx

Open screens/snackbars/dialogs/bottomSheets without context, manage states and inject dependencies easily with Get.
MIT License
10.39k stars 1.63k forks source link

Fix route observer #3182

Closed jonataslaw closed 3 months ago

jonataslaw commented 3 months ago

There were some cases that when several routes were removed, Get.previousRoute would give the wrong value.

This occurred because in GetObserver, we had a parameter that was not as reliable for measuring the previous route.

This PR fixes this inconsistency and adds tests so that this does not occur in future changes.