@Rick Clephas I want to do an approach that sounds very similar to that of
@Casey Brooks:
• VM in combination with a "MVI-ish" style of state, events and reducer for UI updates
• Using a flow (or just the state) in the UI to collect state changes, sending events back to the VM for the reducer/state transition
• Handling lifecycle of the injected dependencies with the lifecycle of the VM
My idea was that with a shared VM I have only to implement the logic of state transitions and events once. Not sure if that answers the question and if my ideas really applicable to the way VM could be used in the different platforms.
Btw. I saw that there's an
issue from
@John O'Reilly in your lib about it. Not sure if he had a similar use case in mind.