Join Slack
Powered by
are there any examples that make use of Labels?
# mvikotlin
l
Lawrence
05/26/2022, 4:37 PM
are there any examples that make use of Labels?
✅ 1
a
Arkadii Ivanov
05/26/2022, 4:39 PM
Do you use coroutines or Reaktive extensions?
l
Lawrence
05/26/2022, 4:41 PM
i am using coroutines
a
Arkadii Ivanov
05/26/2022, 4:41 PM
Here is an example
https://github.com/arkivanov/MVIKotlin/blob/0b6844bbdf2692306a996213600e8688dab4393c/sample/coroutines/shared/src/commonMain/kotlin/com/arkivanov/mvikotlin/sample/coroutines/shared/details/store/DetailsStore.kt#L25
l
Lawrence
05/26/2022, 4:46 PM
Ah i see and you are binding it to the lifecycle methods over here
https://github.com/arkivanov/MVIKotlin/blob/0b6844bbdf2692306a996213600e8688dab439[…]mvikotlin/sample/coroutines/shared/details/DetailsController.kt
Awesome. I will try using this pattern with Decompose. Thank you!
a
Arkadii Ivanov
05/26/2022, 4:54 PM
Yep. With decompose it should be pretty much similar. Use the Component's lifecycle.
87
Views
Open in Slack
Previous
Next