mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
perf(): initialize in willLoad
This commit is contained in:
@@ -17,7 +17,7 @@ export class Reorder {
|
||||
|
||||
@State() custom: boolean;
|
||||
|
||||
componentDidLoad() {
|
||||
componentWillLoad() {
|
||||
this.custom = this.el.childElementCount > 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -48,10 +48,13 @@ export class RippleEffect {
|
||||
}
|
||||
}
|
||||
|
||||
componentDidLoad() {
|
||||
componentWillLoad() {
|
||||
if (this.useTapClick === undefined) {
|
||||
this.useTapClick = !!document.querySelector('ion-tap-click');
|
||||
}
|
||||
}
|
||||
|
||||
componentDidLoad() {
|
||||
this.tapClickChanged(this.useTapClick);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user