Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
newapx opened this issue Jan 4, 2018 · 2 comments

Comments

@newapx
Copy link

newapx commented Jan 4, 2018

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
@NickIliev
Copy link

@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.

@newapx
Copy link
Author

newapx commented Jan 8, 2018

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
Projects
None yet
Development

No branches or pull requests

2 participants