You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello again,
I almost study each GitHub KMM sample your's is the best.
I have a question if you plz.
private val _event: MutableSharedFlow<Event> = MutableSharedFlow()
val event = _event.asSharedFlow()
private val _effect: Channel<Effect> = Channel()
val effect = _effect.receiveAsFlow()
what is the clear difference between effects and events?
and why events are MutableSharedFlow where _effect is Channel
The text was updated successfully, but these errors were encountered:
Event are UI action to ViewModel. UI -> ViewModel
Effect are single shot event from ViewModel to UI (don't have state) like show toast, show snack bar, show dialog or navigation action.
Hello again,
I almost study each GitHub KMM sample your's is the best.
I have a question if you plz.
what is the clear difference between effects and events?
and why events are MutableSharedFlow where _effect is Channel
The text was updated successfully, but these errors were encountered: