Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Result from other view/state #21

Closed
MvandeRuitenbeek opened this issue Jan 9, 2022 · 1 comment
Closed

Result from other view/state #21

MvandeRuitenbeek opened this issue Jan 9, 2022 · 1 comment

Comments

@MvandeRuitenbeek
Copy link

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!

@dbaroncelli
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants