Jul 18, 2021
Good explanation. Thanks for sharing.
I have some problems with this approach:
1. Having repository, which is DATA layer, emitting and knowing about LOADING which is job for the UI.
2. Having flows everywhere sometimes hurts the design, I tried something very very similar to this and it didn't pay of. Having flows everywhere can really hurt the design.
3. Retry logic is kind of meh imo.
4. SingleLiveEvent is anti pattern and should be avoided.
5. All the documentation (comments).