Description
Environment
Provide version numbers for the following components (information can be retrieved by running tns info
in your project folder or by inspecting the package.json
of the project):
- CLI: 6.0.3
- Cross-platform modules:6.0.6
- Android Runtime: 6.0.0
- iOS Runtime: (N/A) 6.0.2
- Plugin(s): Using nativescript-vue, but seems like the problem isn't related to that.
Describe the bug
The runtime error I am seeing is as follows:
- On the Android version of the application, I start on a page, and do an unanimated transition to a second page.
- From the second page, I do an animated transition to a third page.
- From the third page, I call frame.goBack() to go back to the first page.
- Once on the first page again, you cannot navigate anywhere and the navigatedTo event for the first page and navigatedFrom event from the third page are not called.
Very specific, I know. I have a specific reason for using an unanimated transition from one page to the next in my app as well.
To Reproduce
To reproduce:
- Have a page that transitions to a second page via an unanimated navigation
- Have that second page transition to a third page via an animated navigation.
- Have the third page call frame.goBack() to get to the first page.
- Bug should be seen.
Expected behavior
I should be able to navigate after that, and those two callbacks should be called.
Sample project
Go to the following link on an Android device and click on the buttons. After navigating back to the first page, notice that the navigatedTo and navigatedFrom events are not fired, and the button to navigate to the second page is now broken.
https://play.nativescript.org/?template=play-vue&id=ZzwUCJ&v=2
Additional context
Note: if you change the Page1 -> Page2 transition to being animated and give it the transition 'slideLeft' the problem no longer occurs. Also, interestingly, I believe the navigatingFrom and navigatingTo events are still fired.