Skip to content

Error: Currently in page back navigation - component should be reattached instead of activated. #1151

Open

Description

@newapx

There is an error upon transition (on Android)

this.routerExtensions.navigate ([path], {
     clearHistory: true,
    });

The path, already is in a stack opened earlier

Versions:

nativescript     - 3.4.0
tns-core-modules - 3.4.0
tns-android -  3.4.0

nativescript-angular: 5.0.0,
angular: 5.1.3

Activity

  1. NickIliev commented on Jan 8, 2018

    @NickIliev

    @newapx please provide more details on how to reproduce the issue.
    I have created this test application while using a routing with clearHistory but was not able to reproduce an error.

  2. newapx commented on Jan 8, 2018

    @newapx
    Author

    Thanks for response.
    I could not reproduce an error on a test project.

    In mine application transition at the same time was caused
    this.routerExtensions.back()
    and transition with

    this.routerExtensions.navigate ([path], {
         clearHistory: true,
    });
    

    because of the strange behavior of skipWhile at EventEmitter.

    I excluded one of transitions and there is no error any more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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