ionViewDidEnter and ionViewDidLeave fire in wrong order when selecting the same page

Hi, I have a project based of the sidemenu template. I have just noticed that if I select the same page again from the side menu that I receive a ionViewDidEnter and then a ionViewDidLeave rather than the other way around. So I had my page cleanup happening after the page setup (and the page was left in a non working state)

Could this be a problem, or am I missing something here?

Thanks in advance