Mikolaj Leszczynski
02/16/2024, 2:20 PMGuilherme Delgado
02/16/2024, 2:27 PMMikolaj Leszczynski
02/16/2024, 4:07 PMGuilherme Delgado
02/16/2024, 4:34 PMGuilherme Delgado
02/21/2024, 2:42 PMGuilherme Delgado
02/21/2024, 2:44 PMwasmJs
, desktop
e android
and iOS
(also with a SwiftUI sample)Guilherme Delgado
02/21/2024, 2:44 PMGuilherme Delgado
02/21/2024, 2:45 PMJacob Rhoda
02/21/2024, 9:11 PMstate
changes, rather than the state Flow? In that case, does it use KMP-NativeCoroutines (or potentially SKIE) to observe the sideEffect
flow?Guilherme Delgado
02/22/2024, 9:28 AMstateFlow
and the KMM-ViewModel library helps with the lifecycles. Then I use KMP-NativeCoroutines to extends it to iOS to asyncAwait, etc.Guilherme Delgado
02/22/2024, 9:28 AMprivate val _uiState = MutableStateFlow(viewModelScope, TimerUiState())
@NativeCoroutinesState
val uiState = _uiState.asStateFlow()
Guilherme Delgado
02/22/2024, 9:31 AMGuilherme Delgado
02/22/2024, 9:31 AMKMMViewModel
)Jacob Rhoda
02/22/2024, 1:10 PMGuilherme Delgado
02/22/2024, 2:18 PMJacob Rhoda
02/22/2024, 2:26 PMGuilherme Delgado
02/22/2024, 3:08 PMGuilherme Delgado
02/22/2024, 3:08 PMGuilherme Delgado
02/22/2024, 3:08 PMJacob Rhoda
02/22/2024, 3:47 PMGuilherme Delgado
02/22/2024, 5:14 PMGuilherme Delgado
02/22/2024, 5:15 PMdev.icerock.moko.mvvm.viewmodel.ViewModel
Guilherme Delgado
02/22/2024, 5:16 PMContainerHost
doesn’t care about VM, only the scope (viewmodelScope
in this case)Jacob Rhoda
02/22/2024, 5:17 PMJacob Rhoda
02/22/2024, 5:17 PMGuilherme Delgado
02/22/2024, 5:17 PMKMP-Coroutines
Guilherme Delgado
02/22/2024, 5:18 PMMikolaj Leszczynski
02/22/2024, 5:18 PMContainer
's only dependency is a CoroutineScope
Guilherme Delgado
02/22/2024, 5:18 PMGuilherme Delgado
02/22/2024, 5:19 PMMikolaj Leszczynski
02/22/2024, 5:19 PMGuilherme Delgado
02/22/2024, 5:19 PMGuilherme Delgado
02/22/2024, 5:20 PMMikolaj Leszczynski
02/22/2024, 5:20 PMMikolaj Leszczynski
02/22/2024, 5:21 PMFlows
and coroutinesJacob Rhoda
02/22/2024, 5:21 PMMikolaj Leszczynski
02/22/2024, 5:23 PMGuilherme Delgado
02/22/2024, 5:29 PMGuilherme Delgado
02/22/2024, 5:29 PMGuilherme Delgado
03/09/2024, 6:43 PM