https://kotlinlang.org logo
Title
k

kenkyee

10/15/2021, 3:11 PM
Also, is there a simpler example that just uses it for Jetpack Compose on Android?
a

Arkadii Ivanov

10/15/2021, 3:30 PM
Not something I am aware of 🤔 But it should pretty straightforward. Just create a Store in a ViewModel, I guess.
👍 1
k

kenkyee

10/15/2021, 8:06 PM
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

Arkadii Ivanov

10/15/2021, 8:12 PM
Where do you need to subscribe to a Store? Are you looking for a way to convert a Store to Compose State?
k

kenkyee

10/15/2021, 8:19 PM
yes...exactly...that's what the above seems to do.
trying to subscribe to state changes from a Store to feed Compose
a

Arkadii Ivanov

10/15/2021, 8:22 PM
k

kenkyee

10/15/2021, 9:29 PM
Should be part of the libs IMHO...and at least documented 🙂 Thanks.
🤔 1