Skip to content

Reacting to a distant descendant workflow #326

Answered by rjrjr
doug-precocity asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for the question.

OutputT is the canonical way for events to move from children to ancestors, and even across a few layers hierarchy it can make sense to keep propagating them up — the button workflow's Click output becomes the middle workflow's RecordUpdated output, etc.

But we do go for bus-like things sometimes, and in that case, yeah, you're on your own. For us the latter approach is usually less like a bus and more like a repository or other model object, injected via Dagger.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rjrjr
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