I am returning to the forever topic in android community: one time events withing MVVM (User events, Ui Events).
I run through community posts and chats and see that there are currently 2 main paths:
1. Recommended by [G] team which is to reduce the events to the state. (And deal with resetting the state after the consumption to ensure it won't run again).
2. Using different to state observable for events/effects. Aka private val _uiEffects = MutableSharedFlow<UiEffect>(extraBufferCapacity = 100) or channels, doesn't matter.
3. Neither (you might add what you are doing in the comments if you wish)
I am not triggering another round of the discussion but curious what you guys do lately.
So react please with 1️⃣ 2️⃣ 3️⃣