takahirom
07/27/2021, 1:28 AMrepeatOnLifecycle(). I think that repeatOnLifecycle() can reduce resource waste by continuing to subscribe such as Repository, but should I use it even if I fetch() a data and put the data in MutableStateFlow?
It seems that it is better to set Repository to a Single source of truth, but I think that there are some apps that do not.
I am also wondering if the same should be done in the following case using StateFlow.
https://developer.android.com/kotlin/flow/stateflow-and-sharedflow?hl=en