Skip to content

Advice for workflows with dynamic content based on input #1103

Answered by rjrjr
zoltish asked this question in Q&A
Discussion options

You must be logged in to vote

CreatorWorkflow, which has an optional back button if navigated to from B

We always treat this kind of thing as a view concern, and keep our workflows/controller/presenter code out of the loop. In fact this use case is the exact reason that we introduced ViewEnvironment, along with BackStackConfig as the very first ViewEnvironmentKey.

We frequently have things like CreatorWorkflow that sometimes are used in the middle of a wizard-style backstack nav set, but sometimes are the first entry. In these cases, the CreatorScreen : Screen rendering is always provided with an onGoBack event handler, which always results in a CreatorWorkflow.Outputs.GoBack output event. It is up to the view code …

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@zoltish
Comment options

@rjrjr
Comment options

Answer selected by zoltish
@zoltish
Comment options

@zoltish
Comment options

@rjrjr
Comment options

rjrjr Sep 5, 2023
Maintainer

@zoltish
Comment options

Comment options

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