Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49083

Ionic 5 - Reset data from ionic-selectable for show different details

$
0
0

Hi Everyone, i’m migrating a Ionic project from Ionic v3 to Ionic v5.

I have a problem that i’m going to relate:

At a Page 1, I select data in an ionic-selectable, by clicking at a list item I navigate foward to Page 2 to show details from the data that I selected at Page 1.

When, I go back to Page 1 (this.navController.navigateBack(‘url-page1’)), to repeat the process, but this time selecting a different data at Page 1. When I navigate foward to Page 2 to show the details from the new data that I selected, it shows the data from my first try, and not the details from the data the I just selected.

How can I reset the data information at Page 1 when going back from Page 2 to Page 1, so I can select new data to show the correct detail at Page 2?
How can I handle the state of ionic-selectable? Should I somehow reload Page 1 before selecting new data (I tried this, but just got a loop of reload)?

Thanks for who can help me in any away

4 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 49083

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>