-
-
Notifications
You must be signed in to change notification settings - Fork 239
fix: View not added to this instance. #2187
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
Conversation
This fix helps page-router-outlet remove the temporary presence of a component from AppHostView.
This occurs when page-router-outlet is the direct child of root view.
My '_addView' addition cooperates with the following line to ensure that component is passed from one parent to another with success: https://github.com/NativeScript/nativescript-angular/blob/master/nativescript-angular/router/page-router-outlet.ts#L374
I tested it and had no issues, but still I'm not an Angular expert so I ask that my contribution is tested thoroughly.
CatchABus
commented
Aug 30, 2020
I'm closing this since NS team has done some amazing work on Angular, including a fix for this issue.
Uh oh!
There was an error while loading. Please reload this page.
PR Checklist
What is the current behavior?
When pressing 'back' to exit application, an Activity-related exception is thrown.
This behaviour is also met when creating a basic angular application using 'tns create'.
So far, it's confirmed in android platform.
What is the new behavior?
Exception issues will be fixed using a small hack. It would be great if AppHostView parent behaviour was improved in the future.
Fixes: NativeScript/NativeScript#8667