Skip to content
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

ResumeEvent in a component's constructor not triggering #10488

Open
3 tasks done
SeanKelly369 opened this issue Feb 6, 2024 · 0 comments
Open
3 tasks done

ResumeEvent in a component's constructor not triggering #10488

SeanKelly369 opened this issue Feb 6, 2024 · 0 comments
Labels
bug-pending-triage Reported bug, pending triage to confirm.

Comments

@SeanKelly369
Copy link

Issue Description

The event life cycle of "resumeEvent" fails to trigger in an Angular component, even when placed in a constructor. However, when using the now deprecated syntax, it executes successfully.

Reproduction

The following works fine, but it is using deprecated syntax ->

import { on as applicationOn, resumeEvent } from "@nativescript/core/application";

// called in the constructor
applicationOn(resumeEvent, () => {
  const scrollView = <ScrollView>this.scrollView.nativeElement;
  scrollView.callLoaded();
});
import { Application } from "@nativescript/core/application";

/// called in the constructor
Application.resumeEvent, () => {
  const scrollView = <ScrollView>this.scrollView.nativeElement;
  scrollView.callLoaded();
};

Relevant log output (if applicable)

No response

Environment

Relevent dependencies are ->

"dependencies": {
  "@angular/animations": "~16.2.0",
  "@angular/common": "~16.2.0",
  "@angular/compiler": "~16.2.0",
  "@angular/core": "~16.2.0",
  "@angular/forms": "~16.2.0",
  "@angular/platform-browser": "~16.2.0",
  "@angular/platform-browser-dynamic": "~16.2.0",
  "@angular/router": "~16.2.0",
  "@auth0/angular-jwt": "5.2.0",
  "@nativescript/angular": "^16.0.0",
  "@nativescript/core": "8.6.1",
  "intl": "^1.2.5",
  "nativescript-insomnia": "^2.0.0",
  "ngx-cookie-service": "~16.0.0",
  "node-polyfill-webpack-plugin": "^2.0.1",
  "reflect-metadata": "~0.1.13",
  "rxjs": "^7.8.0",
  "rxjs-compat": "^6.6.7",
  "webpack": "^5.89.0",
  "zone.js": "~0.14.0"
},
"devDependencies": {
  "@angular-devkit/build-angular": "~16.2.0",
  "@angular/compiler-cli": "~16.2.0",
  "@angular/localize": "~16.2.0",
  "@nativescript/android": "8.6.2",
  "@nativescript/ios": "8.6.3",
  "@nativescript/types": "8.6.1",
  "@nativescript/webpack": "~5.0.18",
  "@ngtools/webpack": "~16.2.0",
  "@types/node": "~20.9.0",
  "ng-packagr": "16.2.3",
  "ts-node": "~10.9.1",
  "ts-patch": "~3.0.0",
  "tslib": "2.6.2",
  "typescript": "~5.1.0",
  "utf-8-validate": "~6.0.0"
}

Please accept these terms

@SeanKelly369 SeanKelly369 added the bug-pending-triage Reported bug, pending triage to confirm. label Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-pending-triage Reported bug, pending triage to confirm.
Projects
None yet
Development

No branches or pull requests

1 participant