Skip to content

Communicating with parent components #468

Answered by arkivanov
QuasiStellar asked this question in Q&A
Discussion options

You must be logged in to vote

If you need to push a component then deliver it's result to the previous component, (like startActivityForResult in Android), then please see the docs.

In general, you can pass callbacks from parent components to children, so that you can call a callback from the child component and act accordingly in the parent.

If you are fine with having shared classes between child components (e.g.. coupling child components with a shared InstanceKeeper.Instance), then you can scope that instance in the parent component and pass it via constructor to child components.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by QuasiStellar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #467 on August 30, 2023 16:12.