Alvin Dizon
06/02/2023, 1:17 PMUiMessage
class that wraps a message meant for Toasts/Snackbars together with a random UUID, are there any other ways?mkrussel
06/02/2023, 1:40 PMFrancesc
06/02/2023, 4:24 PMnull
). Once a new toast needs to be displayed, set the message in the state to the new prompt. In the UI you would have a LaunchEffect
keyed on the message itself.Alvin Dizon
06/03/2023, 10:09 AMwhen the message is cleared, notify the viewmodel, so that the state can be updated (setting the message to@Francesc I think this was the part that I was missing--I wasn't clearing the toast message in my state data class after showing the Toast. Thanks!)null