Result from other view/state
MvandeRuitenbeek opened this issue · 1 comments
Fantastic framework, loving it thanks!!
Could you include a sample on how to get result from another view?
E.g.: From the Country detail screen, I would have a button that navigates to a Friend Picker screen where I can select who of my friends were there. Now after selecting some friends, how do I get that information back into the Country Detail screen/state?
many thanks again!
Consider first, the CountryDetailState class should contain properties for all data you want to show on the CountryDetail screen.
In your specific case, in the FriendPicker screen, you would typically save the selected friend into a datalayer source (e.g. local db or local settings).
Then in the "callOnInit" function of the CountryDetailScreen you would populate such data from the repository/datalayer.