-
-
Notifications
You must be signed in to change notification settings - Fork 14
Back navigation in nested page router outlets fails after consecutive invocations #49
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
Comments
I'm also struggling with nested page router outlets, NativeScript 8.1 and Angular 13. I see the same behaviour as described above. |
I am also having same issue with nested routes in bottom navigation, it works first time but not second time once you have cleared history. |
I'm having similar problems after upgrading to Angular 13 with NS 8.1. |
Hi There, |
Hello! This is an issue with the rubber band solution that we had to put in place due to a change in route reuse strategy in Angular 13. Unfortunately we are still due to a massive refactor at the Routing side, which should solve the routing issues with NativeScript+Angular (hopefully). I've packed #54 into the following tgz, please try it and confirm it's working well on your projects: |
Hello @edusperoni ! |
Hi @edusperoni ,
Each on both Android and iOS, both running on NS 8.1 (have not tried 8.2-alphas, but let me know if that is a prerequisite/preferred due to the ongoing FragmentManager changes). On iOS and 1) worked fine, and I cannot reproduce the "back by outlet name"-error @boris01 gets.
When I replace As for one of our production apps: |
@timdoege that error isn't related to angular, but with tabs/core. You can try the latest ui-material-tabs plugin that was just released and see if it fixes it, as it does contain a fragment fix in it. |
@edusperoni Yes, your are right - I just thought the "back by outlet name" worked in the old Angular 12 sample, but I just tried Angular 12 again and am getting the same ui-bottom-navigation error, so nothing wrong with the Angular-part here. I noticed your update with the fragment manager from yesterday on the "tabs"-plugin, so you may be right that the Back to your Angular 13 build: I did a thorough test of our larger production app on Android, too, and it worked fine, so big thumbs up from here on that! |
@timdoege please try with the latest nativescript alpha as well. It seems this issue will only be really solved when we refactor fragments on android. If you can find the exact version of bottom nav that introduced the bug I can try to fix it in the other repo. I'm leaving this issue open and I should have time this week to do the last touches on the "backByOutlet". Then we'll merge and publish |
backing by outlet now searches for the outlet recursively. PR is ready for review and will be merged and released soon |
@edusperoni I'm using your nativescript-angular-13.0.2-custom.0.tar.gz custom plugin, |
It's released in the latest alpha at the moment, I'll check if we can release it as latest this week |
@edusperoni Thanks a lot! |
Environment
Provide version numbers for the following components (information can be retrieved by running
tns info
in your project folder or by inspecting thepackage.json
of the project):There seems to be something a bit off using back-navigation after upgrading from Angular 12 to Angular 13.
During the first back navigation everything looks normal, but repeating the exact same navigation a second time starts with a blank screen (animated sliding in from the left) and then the actual content comes sliding in from the right after a small delay.
I cannot reproduce this using the smallest sample (
ns create ns81-ng13 --ng
) but using this sample with bottom navigation and nested page router outlets:https://github.com/timdoege/ns-login-tab-navigation-ng13
This is just the same app as this one:
NativeScript/login-tab-navigation-ng#21
The Angular 12 version does not have this behaviour (just testing by entering player details and pressing Back()).
In my larger project, I do get this new error message now
when the back navigation is off.
The text was updated successfully, but these errors were encountered: