Hi, I’am creating an app with - jetbrain compose k...
# mvikotlin
m
Hi, I’am creating an app with • jetbrain compose kmm • mvikotlin coroutine( not reaktive) • decompose how would I reach the model of the store in the decompose component?
a
First of all, you can just use StateFlow, instead of Value. Just use
store.states
extension. Unless you need to use this state in Swift, in this case Value may interop better. In this case, use the conversion extension - https://github.com/JetBrains/compose-multiplatform/blob/master/examples/todoapp/common/utils/src/commonMain/kotlin/example/todo/common/utils/StoreExt.kt