Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Navigation issue causing navigatedTo/navigatedFrom not to fire, and all further navigation to cease #7685

Copy link
Copy link
Open
@ChaseXC

Description

@ChaseXC
Issue body actions

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:

  1. On the Android version of the application, I start on a page, and do an unanimated transition to a second page.
  2. From the second page, I do an animated transition to a third page.
  3. From the third page, I call frame.goBack() to go back to the first page.
  4. 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:

  1. Have a page that transitions to a second page via an unanimated navigation
  2. Have that second page transition to a third page via an animated navigation.
  3. Have the third page call frame.goBack() to get to the first page.
  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.