Skip to content
Discussion options

You must be logged in to vote

The idea is to treat component configurations as navigation arguments. Configurations should contain minimum amount of data required for component creation. The rest can be passed via constructors.

In your example however, you don't pass any data into child components. You accumulate data from multiple steps and use that after the final step confirmation. So you should either make DataDraft serializable and save it via StateKeeper (e.g. by using the saveable {} extension function), or carry properties with child configurations. I.e. add property1 to Step2 and add property1 and property2 to Confirm. You may notice that the second option duplicates property1 in Step2 and Confirm. They both …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@yedem-steve
Comment options

@arkivanov
Comment options

Answer selected by yedem-steve
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