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

Document example of passing data from child to parent #621

Open
WildOrangutan opened this issue Oct 13, 2023 · 1 comment
Open

Document example of passing data from child to parent #621

WildOrangutan opened this issue Oct 13, 2023 · 1 comment

Comments

@WildOrangutan
Copy link

Hey,

would it be possible to add a simple example in documentation, that demonstrates how to pass result from child to parent, when using Appyx navigation?

Or maybe add a sample in demos/ and link it to documentation.

Thank you!

@Xen4n
Copy link

Xen4n commented Mar 16, 2024

I think you have at least 2 simple variants:

  1. Pass state from Parent Node to Child Node in constructor and collect state changes in real time wherever you need
  2. Or awaits Node.onChildFinished and get data from finished Child Node

Also there is discussion about same question.

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