-
-
Notifications
You must be signed in to change notification settings - Fork 241
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
Cannot reattach ActivatedRouteSnapshot created from a different route #1993
Comments
Hi @imerljak, |
@tsonevn Sorry I dont have the available time right now to provide a sample project. As soon as i am able i will see it done. Thanks. |
@tsonevn I've edited the issue with the sample project repo. I've created a simple project based on the Sidebar template (same I've used before). While setting up the sample project I could narrow the problem down to the Angular Resolve. The issue happens only when I'm using a resolver to fetch the route data. Causing the exception consistently whenever I keep navigating between the 'resolved' route and its siblings. At first I thought the cause might be because I'm reusing the resolver service in multiple routes, but that was not the case while testing the sample. The exception is present even if only one route has a resolve. One more thing that I detected, is that (as you'll be able to see on the project) there's not even the need to subscribe to the |
@vahidvdn I believe not (not directly at least). |
Hi @imerljak, |
What's the status on this? |
Any progress here? It's very annoying bug :( |
any update please |
ANy info? @tsonevn |
Having trouble with this problem, too. Any news? |
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):✔ Component nativescript has 6.1.2 version.
✔ Component tns-core-modules has 6.1.1 version.
✔ Component tns-android has 6.1.1 version.
✔ Component tns-ios has 6.1.1 version.
Describe the bug
Bug type: Runtime
I get this error consistently (but i couldn't pinpoint the reason so it seems to be a bit random).
I have a simple routing schema with lazy modules, and inside such a module i have a couple of routes that are related (not children). The error occurs at times when I'm navigating between these routes, it seems to be triggered more often if I try to navigate as fast as possible without giving the page much time to live between changes.
To Reproduce
Navigate between sibling routes.
Expected behavior
Should navigate correctly but it crashes at times with an exception and render the route inaccessible until reloading the module by navigating away from it and back again.
Sample project
Sample project can be found here
Additional context
StackTrace
Routing Definitions
app-routing.module.ts
tracking-routing.module.ts
- That's where I'm having trouble with navigation.The text was updated successfully, but these errors were encountered: