Nativescript-angular: Routing is slow in 3.3.0.

Created on 30 Dec 2017  ยท  9Comments  ยท  Source: NativeScript/nativescript-angular

PSST! Want to get faster responses to bug reports and important issues? Help us keep the issue tracker organized by:

  • Reporting bugs. Please include all details about the problem and provide a sample app.
  • Proposing features and enhancements.
  • Discussing implementation details.

Please move all other content to Stack Overflow.

$ tns info
All NativeScript components versions information
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Component โ”‚ Current version โ”‚ Latest version โ”‚ Information โ”‚
โ”‚ nativescript โ”‚ 3.3.0 โ”‚ 3.4.0 โ”‚ Update available โ”‚
โ”‚ tns-core-modules โ”‚ 3.2.0 โ”‚ 3.4.0 โ”‚ Update available โ”‚
โ”‚ tns-android โ”‚ 3.3.1 โ”‚ 3.4.0 โ”‚ Update available โ”‚
โ”‚ tns-ios โ”‚ โ”‚ 3.4.0 โ”‚ Not installed โ”‚

Create an app from SideKick of NS-ng with RadSideDrawer and every page has 1 - 2 sec lag in routing. This issue is very old and it has not been entertained yet.

needs more info

Most helpful comment

I am using Nativescript 5 and it takes 4 to 5 seconds to navigate between components

All 9 comments

Hi @Sharique-Hasan,
Could you try upgrading your NativeScirpt to the latest available version 3.4 while using the npm install nativescript -g command and all dependencies in the project, while using the below-attached sample package.json file and to verify if you will have the same behavior.

{
  "description": "NativeScript Application",
  "license": "SEE LICENSE IN <your-license-filename>",
  "readme": "NativeScript Application",
  "repository": "<fill-your-repository-here>",
  "nativescript": {
    "id": "org.nativescript.i1145"
  },
  "scripts": {
    "lint": "tslint \"app/**/*.ts\""
  },
  "dependencies": {
    "@angular/animations": "4.4.6",
    "@angular/common": "4.4.6",
    "@angular/compiler": "4.4.6",
    "@angular/core": "4.4.6",
    "@angular/forms": "4.4.6",
    "@angular/http": "4.4.6",
    "@angular/platform-browser": "4.4.6",
    "@angular/router": "4.4.6",
    "nativescript-angular": "4.4.1",
    "nativescript-pro-ui": "3.2.0",
    "nativescript-theme-core": "1.0.4",
    "reflect-metadata": "0.1.10",
    "rxjs": "5.5.2",
    "tns-core-modules": "3.4.0",
    "zone.js": "0.8.18"
  },
  "devDependencies": {
    "codelyzer": "3.2.2",
    "nativescript-dev-sass": "1.3.5",
    "nativescript-dev-typescript": "0.5.1",
    "tslint": "5.8.0",
    "typescript": "2.4.2"
  }
}

After upgrading all dependencies. remove the platforms while using:
tns platform remove android
tns platform remove ios
and delete node_modules folder.

Then try rebuilding the project with tns run <platform_name>

I did that. I have a component used in SideDrawer and all of my routing is done from there. When I do the routing from there, it takes around 2 3 seconds to start a navigation which compels the user to tap again or tap twice for navigation. therefore this multiple quick tapping usually freezes the app and crash it

Hi @Sharique-Hasan,
Please provide sample project, which could be used for debugging or make the needed changes in the below-attached one.

Also, it would help if you provide any info about the device, which you are using for testing and if this is iOS or Android related issue.

Thank you in advance for your cooperation.
Archive.zip

Hi @Sharique-Hasan many things can influence a route delay. I'd be curious to see if you have a sample project as requested by @tsonevn as well.

I ll provide it.

On Jan 9, 2018 8:08 AM, "Nathan Walker" notifications@github.com wrote:

Hi @Sharique-Hasan https://github.com/sharique-hasan many things can
influence a route delay. I'd be curious to see if you have a sample project
as requested by @tsonevn https://github.com/tsonevn as well.

โ€”
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/NativeScript/nativescript-angular/issues/1145#issuecomment-356166715,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACYjwSUw74cLK0003RKURJnDXjqGe5Vdks5tItgfgaJpZM4RPndg
.

Any updates

Hi @MarkJAmes1217,
We are still waiting for a sample project, which will help us in investigating further the issue.

@MarkJAmes1217 @Sharique-Hasan the latest nativescript-angular and tns-core-modules are significantly improved in terms of in-app navigation so can you guys try your application with updated dependencies.

Closing due to inactivity and as the test projects were never provided for further investigation but please do let me know if you are still experiencing troubles.

I am using Nativescript 5 and it takes 4 to 5 seconds to navigate between components

Was this page helpful?
0 / 5 - 0 ratings