Alex
04/14/2024, 8:45 AMSnackbarHostState
in the ViewModel
? Seems like an unnecessary dance to from event -> state -> lambda in compose -> snackbarhoststate (which internally converts the event into a state again) -> callback to viewmodel that the state was “consumed”.
Using viewModelScope
to launch the snackbar would just suspend the launch call until the view is available it seems.. which is fine?Stylianos Gakis
04/14/2024, 10:53 AMFrancesc
04/14/2024, 4:06 PMTobias Preuss
04/18/2024, 8:02 PMAlex
04/22/2024, 6:42 PMAlex
04/22/2024, 6:43 PMTobias Preuss
04/22/2024, 7:39 PMAlex
04/22/2024, 7:46 PM