Update Ui when change state in another page
Describe the missing piece of documentation
Hi I have a question about the stacked I have a grocery app and I have a cart I want the user to select some product I update my cart on another page can you give me some info how to handle it with stacked?
Hi @MansoorJafari9 , how are you? Please, next time this should go in discussions.
Are you talking about a mobile app? I need more context. If you are talking about a mobile app, if you navigate to another view after the product was added to the cart, the view should show the correct info because the view is created after the event.
Using my intuition I think the problem is that you are storing the product added to the cart in the viewmodel of the first page and because of that is not accesible by any other page. If that is the case, you should store the information of the cart in a service so you can share it between views and services. If that is not the case, please expand on your user case.