Another solution to the multiple click events ‘bug’ above is to use Jose Alcérreca’s Event pattern for one time UI events when saving LiveData, outlined in the post LiveData with SnackBar, Navigation and other events (the SingleLiveEvent case). This is similar to the Queue the next work, strategy above. The LiveData events will be observed in the order they are initiated.

I’ve implemented this in the Coinverse open app to manage updating data in the view state and UI effects in view effects.

Creator of Coinverse - The 1st Crypto News Audiocast App @ bit.ly/play-coin

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store