The goBack method doesnt preserve the state of the previous page. To elaborate, I have created an example https://play.nativescript.org/?template=play-tsc&id=oyM8O7&v=3.
- On the page 1, tap on change button and label changes to “Bye”.
- Click on Second Page Button and you will be taken to another page.
- If you click on Go Back button then you will be taken back to Home page again.
- However, the home page still shows “Hi” but you had left it as “Bye”.
Is there an easy way to preserve the state while navigating back using topmost().goBack();