Ionic 2 setRoot bug

Hi,

When i try to use method this.nav.setRoot(mainPage) from navComponent. the method starts two times constructor in mainPage

Ok, i solve this problem. This methon need to be in life cycle hook -> ionViewDidEnter