Hook for navigating back to a page?

for example we are in page a. then we navigate to page b.
when i navigate back to a the constructor or componentDidmount doesn’t execute.
what hook can i use for this purpose??

It happens because previous page is still in DOM. You can listen for page’s pageBeforeIn event instead to know you are coming back to this page