Replies: 1 comment
-
Can you be more specific? Maybe an example of a screen you're trying to create? The simplest example is just something like this data class CompositeState(
// ... other parent state properties,
val nestedState: NestedState
)
class CompositePresenter(val nestedPresenterFactory: NestedPresenter.Factory) : Presenter<CompositeState> {
@Composable override fun present(): CompositeState {
val nestedPresenter = remember { nestedPresenterFactory.create() }
val nestedState = nestedPresenter.present()
return CompositeState(..., nestedState)
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Please, help with a sample of a complex screen that consists of several presenters as in the documentation regarding Presenter.Factory.
I can't understand how it works, because one presenter is given per screen. How can I combine them to make a "whole screen"?
Beta Was this translation helpful? Give feedback.
All reactions