Adam Hurwitz
1 min readOct 15, 2019

--

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.

--

--

Adam Hurwitz

An account about nothing | Researcher and product consultant