ComposeMobiusLoopStateHolder
Holds the State<M> and Consumer<E> created by rememberMobiusLoop.
For easy access, the model state and eventConsumer can be destructured:
val (modelState, eventConsumer) = rememberMobiusLoop(Model()) {
Mobius.loop(Update(), effectHandler)
}
Content copied to clipboard