Vsevolod Kaganovych
03/01/2020, 8:41 AMRxJava perviously: presentation layer knows nothing about RxJava, we only pass callback from UseCases with Success or Error. But now we switch to Flow a here’s what I need to understand: I don’t want a ViewModel to know anything about the Flow, so I pass a job to a ViewModel to unsubscribe from it and callbacks according to state and use mainScope() function in every UseCase, so I don’t use a ViewModelScope . I need to know your thoughts about it. By doing this I’m sure that if I need to switch in future to other framework than coroutines flow I would do it pretty smoothly.Dico
03/02/2020, 1:22 AM