Skip to content
Discussion options

You must be logged in to vote

Think our best example for a common presenter is the tacos sample, we also cover a this in a bit more detail in the composite presenter issue #1801 (comment). That approach mostly comes down to how coordinated or isolated the presentation needs to be, and how ephemeral the state is.

For the outlined case I can still see a shared data layer handling the common state. With the screens sharing an identifier/session key of some sort that is used to retrieve and edit the state. The data layer (or business logic) can handle cleanup, memory/disk persistence etc. Some possible state restoration and testing advantages with that too.

Replies: 1 comment

Comment options

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