perf(): initialize in willLoad

This commit is contained in:
Manu Mtz.-Almeida
2018-02-20 21:57:47 +01:00
parent 09e0dc1333
commit fd5d5992bc
2 changed files with 5 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ export class Reorder {
@State() custom: boolean;
componentDidLoad() {
componentWillLoad() {
this.custom = this.el.childElementCount > 0;
}

View File

@@ -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);
}