use-life-cycle-interface support for inheritance
See original GitHub issueIf I have the following, would it be possible for the rule use-life-cycle-interface
to not throw a lint error?
class Parent implements OnInit {
public ngOnInit() {
}
}
class Child extends Parent {
public ngOnInit() {
super.ngOnInit();
}
}
Issue Analytics
- State:
- Created 7 years ago
- Reactions:5
- Comments:10 (2 by maintainers)
Top Results From Across the Web
Lifecycle - Android Developers
An implementation of Lifecycle that can handle multiple observers. Defines an object that has an Android Lifecycle. Fragment and ...
Read more >How do I resolve error message: "Inheritance from an interface ...
It seems like you are either directly or indirectly (through some other library) depending on Lifecycle 2.5.0-alpha01 . As per this issue:.
Read more >A misconception about Angular life-cycle methods
Explaining how life-cycle methods gets called when a component class extends another. Inheritance is one of the best ways to reuse code.
Read more >AndroidX Lifecycle on steroids (aka multiple inheritance)
Lifecycle -aware components perform actions in response to a change in the lifecycle status of another component, such as activities and ...
Read more >Lifecycle hooks - Angular
For example, the OnInit interface has a hook method named ngOnInit() . If you implement this method in your component or directive class,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Still happening, same error with inheritance
This issue should be re-opened.