IOS webdriver page_source

Hello folks,

I have a question regarding appium webdriver page_source call on IOS. We leverage driver.page_source to get the view hierarchy of the page. It seems this call returns the elements correctly. However, within this call we see the app state is getting refreshed which causes the dynamic UI elements that we want to click on disappear. Is there any way we can avoid page refresh?

Thanks,