nativescript-angular icon indicating copy to clipboard operation
nativescript-angular copied to clipboard

Routing is slow in 3.3.0.

Open Sharique-Hasan opened this issue 8 years ago • 9 comments

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.

Sharique-Hasan avatar Dec 30 '17 14:12 Sharique-Hasan

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>

tsonevn avatar Jan 02 '18 07:01 tsonevn

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

Sharique-Hasan avatar Jan 03 '18 07:01 Sharique-Hasan

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

tsonevn avatar Jan 03 '18 11:01 tsonevn

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.

NathanWalker avatar Jan 09 '18 03:01 NathanWalker

I ll provide it.

On Jan 9, 2018 8:08 AM, "Nathan Walker" [email protected] 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 .

Sharique-Hasan avatar Jan 09 '18 06:01 Sharique-Hasan

Any updates

MarkJAmes1217 avatar May 25 '18 13:05 MarkJAmes1217

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

tsonevn avatar May 28 '18 08:05 tsonevn

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

NickIliev avatar Jul 17 '18 10:07 NickIliev

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

Samide47 avatar Mar 23 '19 15:03 Samide47