Also, is there a simpler example that just uses it...
# mvikotlin
k
Also, is there a simpler example that just uses it for Jetpack Compose on Android?
a
Not something I am aware of 🤔 But it should pretty straightforward. Just create a Store in a ViewModel, I guess.
👍 1
k
next dumb question...how do you subscribe to events out of a Store and where do you put the Provider? The JB compose sample seems to need Decompose' Value? So there's no way to do this w/ just MVIKotlin? 🤔
Been digging at this for a few hours and still trying to get my mental model right for this... 😞
a
Where do you need to subscribe to a Store? Are you looking for a way to convert a Store to Compose State?
k
yes...exactly...that's what the above seems to do.
trying to subscribe to state changes from a Store to feed Compose
a
k
Should be part of the libs IMHO...and at least documented 🙂 Thanks.
🤔 1